Forums / Install & configuration / Impossible to insert images other than PNG

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

eZ debug

Timing: Jan 31 2025 01:14:28
Script start
Timing: Jan 31 2025 01:14:28
Module start 'content'
Timing: Jan 31 2025 01:14:28
Module end 'content'
Timing: Jan 31 2025 01:14:28
Script end

Main resources:

Total runtime0.2046 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0071 589.2969370.2656
Module start 'content' 0.00710.0154 959.56251,009.7344
Module end 'content' 0.02250.1820 1,969.29693,898.7891
Script end 0.2045  5,868.0859 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00452.2021200.0002
Check MTime0.00140.6789200.0001
Mysql Total
Database connection0.00070.323010.0007
Mysqli_queries0.106451.97871410.0008
Looping result0.00140.68441390.0000
Template Total0.181688.710.1816
Template load0.00100.473510.0010
Template processing0.180688.258710.1806
Override
Cache load0.00070.319110.0007
Sytem overhead
Fetch class attribute can translate value0.00140.682310.0014
XML
Image XML parsing0.00030.136310.0003
General
dbfile0.01055.1073200.0005
String conversion0.00000.002430.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs