Can't view any newly saved images; .jpg extension is missing in /var

Can't view any newly saved images; .jpg extension is missing in /var

Monday 19 January 2004 11:29:15 pm - 5 replies

Modified on Monday 19 January 2004 11:29:56 pm by Greg McAvoy-Jensen

Author Message

James Packham

Tuesday 20 January 2004 6:41:26 am

hmmm I don't think the extension should really matter too much so long as the reference in the database is correct.

I'd guess it's somekind of problem with imagemagick. Couldn't say much more to help cos of lack of experience, but it should be a good start. I'd say the lines:

"Failed executing: /usr/bin/convert '-quality' '75' '-geometry' '600x600>'"
and
"Failed converting"

seem to back this up - it looks like ez knows what it should be doing with the images, it just comes accross problems when it's trying to do it. You could try setting gd as your image processor (or whatever you want to call it) in site.ini.x.x

Regards,

~James~

Alessandro Cipriani

Tuesday 20 January 2004 8:35:28 am

i'm having the same error
no problem running the site on locale, but when i moved it on the server i had this problem

thanks
alessandro

Marco Zinn

Wednesday 21 January 2004 1:29:38 pm

Alessandro, see your other thread. You have a config error.

Greg...
Did you make sure, that PHP safe mode is off?
Is the path /usr/bin/convert okay?
"Failed executing" usually leads to these errors.

Strange is, that the extension seems to be cut off. Does this happen to all images and nodes? Can you try with a node, that creates a shorter url alias than products/bibles/the_new_oxford_annotated_nrsv_bible_with_the_apocrypha_third_edition ? Maybe there is a but with long directory names in the Image Conversion call.

Marco
http://www.hyperroad-design.com

Greg McAvoy-Jensen

Wednesday 21 January 2004 11:19:06 pm

Thank you for the ideas.

1. I haven't tried switching to GD. I actually don't know how.
2. php.ini shows safe mode is off.
3. ls -la /usr/bin/convert shows all can read and execute it.
4. I've tried a title shorter than the one which still works (it seems recent additions have this problem), but I still don't get an image.

Could this be a memory problem? ImageMagick's website suggested low memory could cause ImageMagick to cough and sputter(http://studio.imagemagick.org/www/FAQ.html#C9). Then the system's idle (99%), top shows:
Mem: 255316k av, 251724k used, 3592k free, 0k shrd, 6016k buff
Swap: 192740k av, 186572k used, 6168k free, 37480k cached

vmstat shows swap so going from 0 to 228 (idle) up to 4172 as the thing thrashes for 16 seconds putting together a web page for me (just clicking to another part of my site). It used to only take 2-6 seconds to compose the page.

Other system info: it's a 300Mhz Celeron running Red Hat 9.0. The hard drive is IDE. I was hoping to not have to upgrade, since rather than spending money on old SDRAM on an old motherboard which I can't upgrade easily, I'll have to take the plunge and buy new memory, motherboard, and processor--not the end of the world certainly, especially if it solves all my problems!

Granite Horizon, Certified Developer of eZ Publish Web Solutions
Provider of the SaaS Solution Granite Horizon In The Cloud | http://granitehorizon.com/cloud
http://granitehorizon.com | +1 916 647 6350 | California USA | @granitegreg
Blog: http://granitehorizon.com/blog

Greg McAvoy-Jensen

Monday 26 January 2004 12:11:39 pm

SOLVED!

It was a memory problem. I installed an intel 865PERL motherboard, a celeron 2.2Ghz processor, and 512MB or DDR. Thanks, everyone, for your suggestions.

Granite Horizon, Certified Developer of eZ Publish Web Solutions
Provider of the SaaS Solution Granite Horizon In The Cloud | http://granitehorizon.com/cloud
http://granitehorizon.com | +1 916 647 6350 | California USA | @granitegreg
Blog: http://granitehorizon.com/blog

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.