Forums / General / Image display trouble

Image display trouble

Author Message

Christopher Thorjussen

Sunday 02 November 2003 5:30:23 pm

I'm quite new to ezPub. I'm using the latest 3.2-3 release. I've installed all the demo sites for learning purposes, and also followed the "Building an eZ publish site". The images I've uploaded to the TSCM "Building an eZ publish site" site won't display, and the images in the gallery demo won't show either, and uploading new images to both the included 'flowers' folder and to a new test folder.. all I get in the html sources is lines like this:

<img src="/var/gallery/storage/variations/image/p/h/p" />

as you can see, the name of the images won't parse into the html files..

Any solution? It was like this in 3.2-2 also. I'm using the TSL 2.0 distribution, with apache 2.0.47 php 4.3.2 and mysql 4.0.15

Alex Jones

Monday 03 November 2003 7:00:26 am

Are you using ImageMagick or GD? I would check to make sure that one or both are installed on the server. If you are trying to use GD, you will need to change the settings in image.ini. I don't recall what they are at the moment, but a quick search of the forums should pull up a message with the fixes if you need to make the changes.

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Marco Zinn

Monday 03 November 2003 1:31:12 pm

If you're not using ImageMagick, you must change a file called settings/image.ini.append(.php)
look for "convert" and changed them to "gd".
Usually, the setup wizard should have done that for you.

Please try to insert an image into an article with the size setting of "original". This should give you the uploaded image file.
If this works, but the other sizes (and preview in admin site) don't, then your image conversion (ImageMagick's convert or the PHP-GD-Library) don't work or cannot store their results into /var/storage/....

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

Christopher Thorjussen

Monday 03 November 2003 4:00:44 pm

Sorry for not mention this.. which I should have thought of to be of necessary info. Yes, I'm using gd from withing php4. I will look into the ini settings.

Update:
I didn't have a "settings/image.ini.append(.php)" file, but i guess you meant "settings/override/image.ini.append.php" which exist:
<?php /* #?ini charset="iso-8859-1"?

[ConverterSettings]
UseConvert=false
UseGD=true
*/ ?>

Will check the "original" setting. (not done yet)

I've also found this info: http://www.ez.no/developer/ez_publish_3/documentation/configuration/troubleshooting/ez_publish_3_and_apache_2 and I've tried to apply "AcceptPathInfo On" to both httpd.conf and .htaccess with no luck.

I'm now checking my setup against this doc: http://www.ez.no/developer/ez_publish_3/documentation/configuration/troubleshooting/images_do_not_work

Note: Adding an image to the gallery demo without actually supplying a local image path+name works.. a but in the object class?

Christopher Thorjussen

Monday 03 November 2003 4:51:02 pm

There seems to be a bug in the Installer/Setup Wizard. Even though the Wizard detects that gd is to be used during setup, it fails to add some options to the "/settings/override/image.ini.append.php" file. It correctly tells eZp to use GD and not convert, but it fails to make a rule of the conversions. You can see my old original image.ini.append.php file in my previous post, and my new fixed image.ini.append.php file her:

<?php /* #?ini charset="iso-8859-1"?

[ConverterSettings]
UseConvert=false
UseGD=true

[GDSettings]
HasGD2=true

[Rules]
DefaultRule=image/jpeg;gd
Rules[]=image/jpeg;image/jpeg;gd
Rules[]=image/png;image/png;gd
Rules[]=image/gif;image/png;gd
Rules[]=image/xpm;image/png;gd
Rules[]=image/tiff;image/png;gd

*/ ?>

I don't know if the "HasGD2" setting has to be included, but php4 has gd2 included, so it seems to be the right option to set if gd is chosen by the Wizard...

I've filed a bug report on this one... http://www.ez.no/developer/ez_publish_3/bug_reports/setup_wizard_fails_to_write_rules_to_imageiniappendphp_when_using_gd

My only question now is why my original image appears to get resized into a bigger image.. but that's perhaps only the sitesetting of the gallery demo?

Alexandre Cunha

Monday 03 November 2003 6:57:22 pm

Doest solve for me ...

Some problem, tried this patch, but no images ...

http://AlexandreCunha.com

Christopher Thorjussen

Tuesday 04 November 2003 2:45:16 pm

So you are using php4 with the included gd library and doesn't get the images when you upload them? do they get uploaded into /var/storage/image/phpXXXXXX.jpg ?

Did you check this doc: http://www.ez.no/developer/ez_publish_3/documentation/configuration/troubleshooting/images_do_not_work ?

Alexandre Cunha

Tuesday 04 November 2003 4:00:08 pm

problem solved ...
after the changes to /settings/override/image.ini.append.php i uploaded the images again.

The images are stored at var\tscm\storage
at original, reference and variations folder.

axel

http://AlexandreCunha.com

Christopher Thorjussen

Wednesday 05 November 2003 10:29:23 pm

Good.

After I did what I did, the images that comes with the gallery demo site also showed up, together with those I uploaded AFTER the image.ini.append fix..

Christopher Thorjussen

Friday 07 November 2003 8:12:08 pm

-

Martin Ulrich

Saturday 08 November 2003 5:35:44 am

I use GD2 on shared server.

What I found out is, that modifying
image.ini.append or image.ini.appen.php in settings/override has absolutely no effect, which means: there are no Images.

But if I modify image.ini itself, than works fine.

(test with the last four EZ releases)

_______________________

http://artenic.de ARTENIC - Publishing mit allen Mitteln!

Gunnar Birkeland

Monday 10 November 2003 4:53:35 am

I have Ez 3.2.3 installed on a Rh9 system with php 4.2.2 and gd 1.8.4 and tried all of the above mentioned suggestions to get my images displayed (and I have cleared the caches) - but it still doesn't work. Have I forgotten something?

The symptoms are as mentioned above: When looking at the html source, the image source address seems to be wrong: <img src="/var/delta/storage/variations/image/p/h/p" width="0" height="0" border="0" alt="" />

There are files stored only in directory "/var/delta/storage/original/image/", no other directories.

Tomek Klaudel

Monday 10 November 2003 5:23:50 am

I had same problem.
(ImageMagick)
But in my case for some files variations was created for others not. Then I changed extension to lowercase. Now everything is ok :)

Best
Tomek

Christopher Thorjussen

Monday 10 November 2003 5:26:32 am

Gunnar, did you remove this part from the ini file?

[GDSettings]
HasGD2=true

You don'thave GD v2....

Gunnar Birkeland

Monday 10 November 2003 6:50:03 am

Yes, the settings are:
[GDSettings]
HasGD2=false
in image.ini

I have also tried to put them in settings/override/image.ini.append.php, bit it didn't help.

My *.png files also have lower-case extension names.

I forgot to mention: My apache version is httpd-2.0.40, should I try 1.3.xx?

Kåre Køhler Høvik

Thursday 04 December 2003 5:48:14 am

Hi

This bug has been fixed in rev. 4355. Thanks for all the input.

--
Kåre Høvik

Kåre Høvik

eZ debug

Timing: Jan 18 2025 11:40:00
Script start
Timing: Jan 18 2025 11:40:00
Module start 'content'
Timing: Jan 18 2025 11:40:01
Module end 'content'
Timing: Jan 18 2025 11:40:01
Script end

Main resources:

Total runtime1.0947 sec
Peak memory usage4,096.0000 KB
Database Queries245

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 587.6016180.8516
Module start 'content' 0.00630.9047 768.4531915.0156
Module end 'content' 0.91100.1836 1,683.4688358.5781
Script end 1.0946  2,042.0469 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00430.3962210.0002
Check MTime0.00140.1301210.0001
Mysql Total
Database connection0.00060.055510.0006
Mysqli_queries0.973588.92562450.0040
Looping result0.00280.25232430.0000
Template Total1.064097.220.5320
Template load0.00210.195720.0011
Template processing1.061997.002720.5309
Template load and register function0.00020.014210.0002
states
state_id_array0.00100.093810.0010
state_identifier_array0.00150.140720.0008
Override
Cache load0.00210.19391020.0000
Sytem overhead
Fetch class attribute can translate value0.00170.154790.0002
Fetch class attribute name0.00190.1735190.0001
XML
Image XML parsing0.00270.249790.0003
class_abstraction
Instantiating content class attribute0.00000.0029190.0000
General
dbfile0.00350.3218380.0001
String conversion0.00000.000530.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
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
16content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
27content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
15content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 63
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs