coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Upload => Topic started by: Ben on November 17, 2004, 03:54:39 PM

Title: Very slow batch-add
Post by: Ben on November 17, 2004, 03:54:39 PM
Dears,

I'm quite new to coppermine. After having search this forum for an anwser, i'm turning to you to fing some help.
First of all, my conf:
Hardware: PII 300Mhz / 96Mo RAM
Software: OpenBSD 3.2 / Apache 2.0.52 / Coppermine 1.3.2 / PHP 4.3.5 / GD (from PHP) / libjpeg 6b / libpng 1.2.7 / zlib 1.2.1

I uploaded 87 images (avg. image size is about 1,5Mb, max is 2Mb)
In batch-add mode (admin mode) it took more than 40 min. to create the "normal" and "thumb" images, which is quite long. using top, I could see 4 httpd process getting all the CPU usage.

Althought some my say that my hardware is in fault, I'm not sure about that. If i use resize_image (a small binary that uses libjpeg 6b) to create the images (normal + thumb) it takes less than 10 minutes.

Does anybody as any idea ?

Thanks
Benoit Bertrand
Title: Re: Very slow batch-add
Post by: Joachim Müller on November 17, 2004, 07:09:43 PM
Hm, it may sound like an easy option, or a lame excuse, but I'd say: yes, your hardware is to blame. To speed this up, you're recommended to do all the resizing on your client - there are a lot of free apps that can do nice batch-resizing and -renaming (with even better quality than GD or ImageMagick as server apps can). Then ftp-upload the whole enchilada (full-size pics, intermediates and thumbnails) to your webserver and start the batch-add process. Coppermine will respect the fact that the intermediate files and thumbnails already exist and not start the resizing process, but just add the new files to the database in no time.
The naming convention (can be changed in coppermine config) are "normal_" as prefix for intermediate size pics and "thumb_" as prefix for the thumbnails; if you have a file called "mypic.jpg", create "thumb_mypic.jpg" and "normal_mypic.jpg" on your client, upload the three files and start the batch-add process.
The recommended tool for batch-resizing pics on the client is "Irfan View (http://www.irfanview.com/)".

Joachim
Title: Re: Very slow batch-add
Post by: Ben on November 17, 2004, 09:28:00 PM
Thanks for all Joachim.

In fact, I was wandering, this afternoon, if it was possible for me to create de normal & thumb image before processing the "bach-add". Well, i've got my answer now :).
Thanks indeed for your resize tools. This will prevent me making a small shell script with resize_image.

Have a nice day,
Ben