Pages: 1
Hi,
I'm using NAS (Synology DSM213j) as Piwigo server. Because of its poor CPU, I want to make the thumbnails locally by my MacBook and then uploads them to the server. The following is my steps:
1. Install Piwigo 2.7.4 on both Server and MacBook;
2. By using FTP methods, I create some Albums (on both sides);
3. On MacBook, generating thumbnails using Piwigo;
4. Uploads the thumbnails to server (i.e. $piwigo/_data/i/);
Here comes the question: While visiting the website on server, I found that the thumbnails have been regenerated rather than using the existing files!
There has two evidence that could prove what I said:
1. I generate the thumbnails and uploads them to the server before Aug. 5th 06:00, but I found the thumbnail's created time has become the time when I visit the photo (e.g. Aug 9th 15:32);
2. The most important, when I visit Albums, there's no thumbnails. But at the same time the server CPU utilization rate reaches 100% by several `CONVERT` processes, then the thumbnails appears.
Finally, can anyone tell me how to solve this problems?
Piwigo version: 2.7.4
PHP version: 5.2.17 (cli) (built: Feb 23 2012 10:42:34)
MySQL version: Ver 14.7 Distrib 4.1.22, for none-linux-gnueabi (arm) using readline 6.1
Piwigo URL: http://www.LeoBian.com/piwigo
Note: If you need, I could provide more details.
Thanks for your time.
Last edited by LeoBian (2015-08-12 02:51:22)
Offline
Hello
i see some possibilities :
-the creation date of thumbnails is not more recent than the original pictures
-creation date can't be read
-one pixel smaller/bigger than yours
Offline
flop25 wrote:
Hello
i see some possibilities :
-the creation date of thumbnails is not more recent than the original pictures
-creation date can't be read
-one pixel smaller/bigger than yours
Dear flop25, thank you for your reply!
I followed your advice and check the associated files, here's a typical result:
Original photo file: (in $PIWIGO/galleries/albums-A) -rwxrwxrwx 1 http http 483.0K Jul 12 01:41 A01.jpg Thumbnails uploaded by local MacBook: (in $PIWIGO/_data/i/galleries/albums-A) -rw-r--r-- 1 http http 58.9K Aug 4 21:22 A01-xs.jpg -rw-r--r-- 1 http http 94.8K Aug 4 21:22 A01-sm.jpg -rw-r--r-- 1 http http 237.8K Aug 4 21:22 A01-la.jpg -rw-r--r-- 1 http http 323.5K Aug 4 21:22 A01-xl.jpg Thumbnails Regenerated by the server: (in $PIWIGO/_data/i/galleries/albums-A) -rw-r--r-- 1 http http 74.0K Aug 12 08:49 A01-xs.jpg -rw-r--r-- 1 http http 119.6K Aug 12 08:49 A01-sm.jpg -rw-r--r-- 1 http http 309.4K Aug 12 08:49 A01-la.jpg -rw-r--r-- 1 http http 420.6K Aug 12 08:49 A01-xl.jpg
The date and permission both appear to be correct, BUT the thumbnail's file size has changed!
I have no idea what happened. Does it mean that thumbnails is machine-dependent and can not be used interchangeably?
Thanks for you help.
Offline
no piwigo just check the dimensions and the time ; the filesize depends on the jpeg quality etc
so what are the dimensions in pixels?
Offline
Thank you, and I'm sorry for my late reply.
Attached to this post is the related files (Thumbnails A01-xs.jpg by MacBook and Server).
- Dimensions in pixels of the thumbnails (A01-xs.jpg) are both 432x324.
- The original file (A01.jpg) dimensions is 1600x1200.
This two thumbnails look the same except for their file size.
Have you any suggestions about that?
Last edited by LeoBian (2015-08-13 18:38:04)
Offline
the filesize doesn't matter at all
as i said Piwigo just check time and dimensions
so you say, the time is after the modification time of original picture and the dimensions are the same ; i'm wondering if the pictrues are generated again and again each time you visit them or if once the piwigo overwritten yours it stops
Offline
Thank you flop25, and with your help, I found the reason and solved this problem.
1) On server side, Piwigo -> plugins -> LocalFiles Editor, I add the following code (according Piwigo wiki):
// Library used for image resizing. Value could be 'auto', 'imagick', // 'ext_imagick' or 'gd'. If value is 'auto', library will be choosen in this // order. If choosen library is not available, another one will be picked up. $conf['graphics_library'] = 'ext_imagick'; // If library used is external installation of ImageMagick ('ext_imagick'), // you can define imagemagick directory. $conf['ext_imagick_dir'] = '/opt/bin/';//change with own path!
2) Whereas at the very beginning, on MacBook side, I add nothing. (<- This is the reason!)
After adding the similar code, everything works fine now.
In brief, thumbnails should be generated by the same image processing program/method.
flop25, once again, I appreciate your help.
Offline
Pages: 1