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 :)