Share » Forums » Install & configuration » Impossible to insert images other...

Impossible to insert images other than PNG

Impossible to insert images other than PNG

Monday 19 May 2008 11:05:30 am - 5 replies

Author Message

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

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

36 542 Users on board!

Forums menu