Announcement

#1 2012-12-19 15:58:49

daniel_san
Member
2012-12-19
7

Images not showing - resize problem

Since today's update to 2.4.6, the resizing of uploaded photos isn't working anymore, neither with ImageMagick (using Graphics Library: External ImageMagick 6.2.8) nor with gd. Piwigo is creating a folder, but not any files in _data/i/upload/.

My gallery is hosted at: www.soon-effects.com/photo

LocalFiles contains:

$conf['ext_imagick_dir'] = '/usr/share/ImageMagick-6.2.8/';
$conf['enable_i_log'] = true;

Here's my latest i.log output:

2012-12-19T15:38:04+01:00 convert "/home/.sites/449/site2061/web/photo/upload/2012/12/19/20121219155940-0580f1eb.jpg" -filter Lanczos -resize 96x144! -strip -quality 95 -interlace line "/home/.sites/449/site2061/web/photo/_data/i/upload/2012/12/19/20121219155940-0580f1eb-th.jpg" 2>&1
2012-12-19T15:38:04+01:00 perf 20121219155940-0580f1eb.jpg 3456 5184 17915904 20121219155940-0580f1eb-th.jpg 96 144 13824 1.1 5033 | 1471   0   3559 2
2012-12-19T15:38:09+01:00 convert "/home/.sites/449/site2061/web/photo/upload/2012/12/19/20121219155940-0580f1eb.jpg" -filter Lanczos -resize 96x144! -strip -quality 95 -interlace line "/home/.sites/449/site2061/web/photo/_data/i/upload/2012/12/19/20121219155940-0580f1eb-th.jpg" 2>&1
2012-12-19T15:38:09+01:00 perf 20121219155940-0580f1eb.jpg 3456 5184 17915904 20121219155940-0580f1eb-th.jpg 96 144 13824 0.9 4972 | 1463   0   3508 0
2012-12-19T15:38:22+01:00 convert "/home/.sites/449/site2061/web/photo/upload/2012/12/19/20121219155940-0580f1eb.jpg" -filter Lanczos -resize 96x144! -strip -quality 95 -interlace line "/home/.sites/449/site2061/web/photo/_data/i/upload/2012/12/19/20121219155940-0580f1eb-th.jpg" 2>&1
2012-12-19T15:38:22+01:00 perf 20121219155940-0580f1eb.jpg 3456 5184 17915904 20121219155940-0580f1eb-th.jpg 96 144 13824 0.9 4995 | 1467   0   3528 0

Thanks,
daniel_san

Offline

 

#2 2012-12-19 16:04:58

flop25
Piwigo Team
2006-07-06
7037

Re: Images not showing - resize problem

Hello
did you add/jave any htaccess file?


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#3 2012-12-19 16:33:21

daniel_san
Member
2012-12-19
7

Re: Images not showing - resize problem

Yes, I have a .htaccess file in the directory containing the Piwigo folder (eg my root directory), containing some RewriteRules and custom error page rules - which thus are also active for Piwigo..
But even with this .htaccess file deactivated (temporarily renamed), the problem persists.

Thank you very much for your help,
daniel_san

Offline

 

#4 2012-12-19 16:36:46

flop25
Piwigo Team
2006-07-06
7037

Re: Images not showing - resize problem

Okay thx it helps to debug
http://www.soon-effects.com/photo/i.php … 1eb-th.jpg !
but the  i.log output doesn't show any error...
do you still have an image which worked before? try to upload/synch it plz


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#5 2012-12-19 17:18:01

daniel_san
Member
2012-12-19
7

Re: Images not showing - resize problem

Yeah, that strange error message ('..cannot be displayed because it contains errors.') appeared before the update when I didn't have ImageMagick pointed to '/usr/share/ImageMagick-6.2.8/'.

Strange thing too is, that when I try to use gd, I get no error message when trying to upload an image, but there is an error message displayed when trying to batch resize the image. Then when I try to open that Image, I get an 'Allowed memory size of 47185920 bytes exhausted'.. (instead of the error message mentioned above)



So i.log doesn't show any error messages, not even when trying to batch resize ('Generate multiple size images') the image, neither with ImageMagick nor with gd ..

Offline

 

#6 2012-12-20 09:51:15

daniel_san
Member
2012-12-19
7

Re: Images not showing - resize problem

I just tried to synchronize the database, and when I select 'reduce to single existing albums', it shows an error - with my old (private) folder that worked before the update, as well as with the new (public) folder.

First of all, I get a php notice: "Undefined index: 7 in /home/.sites/449/site2061/web/photo/admin/site_update.php on line 147".

Second, it says "[] PWG-UPDATE-1 (wrong filename)" and below that:

    PWG-UPDATE-1: The name of directories and files must comprise only letters, numbers, "-", "_" or "."
    PWG-ERROR-NO-FS: The file or directory cannot be accessed (either it does not exist or the access is denied)

The problems I have don't seem to be with the images themselves, as images that worked before the update don't work any more (as do all other images I've tried to upload/resize).

Hope that information helps any..

Thanks,
daniel_san

Offline

 

#7 2012-12-20 10:03:03

daniel_san
Member
2012-12-19
7

Re: Images not showing - resize problem

Some more news: just tried to upload a .png and a .gif file - and they both worked! So the error only seems to occur with .jpg files..

Offline

 

#8 2012-12-20 10:04:13

rvelices
Former Piwigo Team
2005-12-29
1960

Re: Images not showing - resize problem

flop25 wrote:

http://www.soon-effects.com/photo/i.php?/upload/2012/12/19/20121219155940-0580f1eb-th.jpg !
but the  i.log output doesn't show any error...
do you still have an image which worked before? try to upload/synch it plz

Even the original http://www.soon-effects.com/photo/uploa … 80f1eb.jpg does not work in my browser

(It's a png image not a jpg one)

Offline

 

#9 2012-12-20 10:24:54

daniel_san
Member
2012-12-19
7

Re: Images not showing - resize problem

Huh strange..logged in as administrator, I can view the original image with the link you provided, rvelices.

And the jpg/png/gif-issue: I just realized, that both the png and the gif I tried to upload were really small, so problably ImageMagick didn't even try to resize them - I uploaded a small jpg just now, and that worked, too..

Offline

 

#10 2012-12-20 17:36:14

daniel_san
Member
2012-12-19
7

Re: Images not showing - resize problem

Found a solution!

I had to
1) find my hoster's the right ImageMagick path (which is /usr/bin/php_safemode/ )
2) turn off safe mode

Thanks to everybody for your help,
daniel_san

Offline

 

#11 2012-12-20 17:37:44

flop25
Piwigo Team
2006-07-06
7037

Re: Images not showing - resize problem

rvelices wrote:

flop25 wrote:

http://www.soon-effects.com/photo/i.php?/upload/2012/12/19/20121219155940-0580f1eb-th.jpg !
but the  i.log output doesn't show any error...
do you still have an image which worked before? try to upload/synch it plz

Even the original http://www.soon-effects.com/photo/uploa … 80f1eb.jpg does not work in my browser
(It's a png image not a jpg one)

wow I didn't figures this! thx


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact