Impossible to insert images other than PNG

Author Message

Pierre T.

Monday 19 May 2008 11:05:30 am

Hi all,

I'm currently running ez4 on a suse linux enterprise server (development, not production yet) for a customer who needs to display many images in articles... But the fact is that I can't insert images other than PNG in folder, articles, etc.

* For example, I CAN upload images (every formats : png, jpg, gif...) in a folder object : Insert a new object, New object, and I choose the jpeg image I want. I can see it in the media library and in /var/ezwebin_site/storage/images/xxxx but when I want to see it in the front-end of the website, it does not appear...
* In the html source code of a webpage where I inserted a jpeg image, there's no code linked to the image.
* That's not a rights problem, because I'm logged in as Administrator in the front-end.

When I insert PNG images, I have not all theses problems.

I thought It could be a problem of ImageMagick or GD, but how can I check this ?

Thanks for your support

Michael Hall

Monday 19 May 2008 4:26:17 pm

After my own recent experience forgetting to install ImageMagick, with this behaviour I'd definitely check if ImageMagick and/or GD are installed, and perhaps also the libraries for the image types you want to use such as libjpeg.

There may be EZpublish ways to do this, but if you have command line access and since you're on an RPM based system, the RPM command should tell you what is installed, eg:

rpm -q ImageMagick
rpm -q libjpeg

If you're not quite sure what a package is called, you can grep all packages for a pattern, eg:

rpm -qa | grep jpeg

Pierre T.

Tuesday 20 May 2008 1:15:53 am

Btw libjpeg & ImageMagick seem to be installed :

$ rpm -qa | grep jpeg
libjpeg-6.2.0-752.2

$ rpm -q ImageMagick
ImageMagick-6.3.0.0-5.1

Libjpeg should manage jpeg files in ez4 normally ? I'm gonna reinstall this lib and give a feedback if it works or not... Thanks for your idea Michael.

Pierre T.

Tuesday 20 May 2008 1:25:02 am

I've installed libjpeg-6.2.0-812 but it still does not work.
I can see the jpeg picture (which I uploaded) in the media library but I still can't display it in the content of a folder or article... Whatever the size of the picture is (reference, rss, tiny, large, original...).

Other thing : when i come back editing the folder where i inserted a jpeg file, I can right click on it (in the online editor) and click on Properties. In the properties popup displayed, it is written that there's no associated objects...

I can't debug the back office when I open the popup when I want to insert an object, the popup is empty. How can I check the association of a picture object to a folder eg ?

Any hint for all these things ?

[EDIT]
As I can display PNG images I tried to auto convert all images uploaded to PNG format, but it does not work :) Here is an extract of my /ezpublish_dir/settings/override/image.ini.append.php :

# The global conversion rules
# Most will be converted to jpeg except gif and xpms
ConversionRules[]
ConversionRules[]=image/gif;image/png
ConversionRules[]=image/x-xpixmap;image/png
ConversionRules[]=*;image/png
# Fallback if jpeg is disabled as output.
#ConversionRules[]=image/jpeg;image/png

Pierre T.

Tuesday 20 May 2008 8:34:11 am

Well I just find the solution... I just let the image.ini & image.ini.append.php to default.
>>> I had to download & install the package <libjpeg-devel> ! Which is a package needed to manipulate jpeg images... And I also reinstall ImageMagick with the tar.gz archive, did a :

$ ./configure
$ make
[at this step you have a problem with libjpeg-la if you don't have libjpeg-devel installed]
$ make install

And it works !

Piotrek Karaƛ

Tuesday 27 May 2008 1:37:25 am

Pierre,

Was that jpeg devel lib necessary for these rules to work:

# The global conversion rules
# Most will be converted to jpeg except gif and xpms
ConversionRules[]
ConversionRules[]=image/gif;image/png
ConversionRules[]=image/x-xpixmap;image/png
ConversionRules[]=*;image/png
# Fallback if jpeg is disabled as output.
#ConversionRules[]=image/jpeg;image/png

??

Or you've managed to get something else work?
We seem to have similar problem - ConversionRules seem not to be in operation...

Thanks,
Piotrek

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

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