Forums / Setup & design / Displaying Image attribute

Displaying Image attribute

Author Message

Gintautas S.

Thursday 31 July 2008 7:37:39 am

One of my classes contains Image datatype attribute. I can upload the new image by browsing and selecting it on the filesystem. Though the preview isn't shown (only type and size).

The image also doesn't show with attribute_view_gui.

I also cannot find Image file object itself. Tried looking in Media Library node without success. Any suggestions? How can I verify that an attribute of Image datatype has been 'filled in' succesfully?

Ivo Lukac

Thursday 31 July 2008 11:55:25 pm

Hi Gintautas,

I had similar problems with some images (from digital cameras), the imagemagick couldn't handle them so no image aliases were made.
The upload reported no error.

Try to 'flatten' the image before upload don't preserve the exif and watermark data.

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Gintautas S.

Friday 01 August 2008 6:46:10 am

Is that 'flattening' done with imagemagick? Sorry I am not into graphical editing thing so I've basically no idea what it actually means.

Ivo Lukac

Friday 01 August 2008 7:16:56 am

With 'flatten' (this is my description of the process) I meant to loose any data that is not needed. Pictures taken with camera have data about photo parameters and etc.

Use some image editor, open the image, and than save it without these extra data.
It depends if the image editor has such options, but you can also save it in more simple format like .png

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Gintautas S.

Sunday 03 August 2008 4:48:06 am

Hi again.

Here's some debugging info:

Warning: eZImageShellHandler::convert Aug 03 2008 14:27:15

Failed executing: /usr/local/bin/convert '-quality' '75' '-geometry' '200x290>' 'var/ezwebin_site/storage/images/products/cyenc/autogenie/335-1-eng-GB/AUTOGENIE.jpg' 'JPEG:var/ezwebin_site/storage/images/products/cyenc/autogenie/335-1-eng-GB/AUTOGENIE_medium.jpg', Error code: 1

Error: eZImageManager::createImageAlias Aug 03 2008 14:27:15

Failed converting var/ezwebin_site/storage/images/products/cyenc/autogenie/335-1-eng-GB/AUTOGENIE.jpg to alias 'original' in directory 'var/ezwebin_site/storage/images/products/cyenc/autogenie/335-1-eng-GB'

Now the question is how to solve this ;) I checked the access restrictions of those paths, and they are very liberal... maybe too liberal, 0777. As a side note, why would I need to allow everyone write to storage? I didn't set it that way manually, just followed installation instructions.

Anyway I remember that Imagemagick installation didn't go perfectly smooth. But in the end I am able to access its binaries, in this case 'convert'.

Any suggestions are welcome! Because as of now the only way to put images on my site is by bypassing Imagemagick by setting backgrounds for divs in CSS files...

Ivo Lukac

Sunday 03 August 2008 7:17:45 am

Did you try to disable imagemagick and use GD?

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Gintautas S.

Sunday 03 August 2008 7:20:01 am

Ups, got it wrong. Anyway what is GD ;)

Alright I disabled IM, and the images do appear! Cheers and sorry for newb questions :)

eZ debug

Timing: Jan 19 2025 04:32:11
Script start
Timing: Jan 19 2025 04:32:11
Module start 'content'
Timing: Jan 19 2025 04:32:13
Module end 'content'
Timing: Jan 19 2025 04:32:13
Script end

Main resources:

Total runtime2.5433 sec
Peak memory usage4,096.0000 KB
Database Queries206

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0108 588.9609180.8359
Module start 'content' 0.01082.2186 769.7969588.0469
Module end 'content' 2.22940.3137 1,357.8438341.0625
Script end 2.5432  1,698.9063 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00440.1722210.0002
Check MTime0.00150.0597210.0001
Mysql Total
Database connection0.00160.063210.0016
Mysqli_queries2.425195.35332060.0118
Looping result0.00290.11472040.0000
Template Total2.458796.721.2294
Template load0.00330.131320.0017
Template processing2.455496.544921.2277
Template load and register function0.00030.011910.0003
states
state_id_array0.00280.108410.0028
state_identifier_array0.00470.184720.0023
Override
Cache load0.00250.0992350.0001
Sytem overhead
Fetch class attribute can translate value0.00140.053430.0005
Fetch class attribute name0.00170.067180.0002
XML
Image XML parsing0.00100.040630.0003
class_abstraction
Instantiating content class attribute0.00000.0013100.0000
General
dbfile0.00660.2607280.0002
String conversion0.00000.000430.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
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/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
2content/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: 23
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs