Forums / Developer / How to use image classes?

How to use image classes?

Author Message

Dhaval Patel

Sunday 17 February 2008 9:21:11 pm

hello all,

When i upload an image when editing an article through ez editor then i am able to use only "original" class like

{attribute_view_gui attribute=$object.data_map.image image_class=original}

if i use other classes then it displays nothing as when i print the

{$object.data_map.image|attribute(show)}

then i get

>small NULL
>medium NULL
>listitem NULL
>articleimage NULL
>articlethumbnail NULL
>gallerythumbnail NULL
>galleryline NULL
>imagelarge NULL
>large NULL
>rss NULL
>logo NULL
>infoboximage NULL
>billboard NULL
>original array Array(19)

so how can i use other classes like small, medium, etc...

i think it must be setting in .ini files but i dont know what to change and where to change?

please reply me.

With Best Regards,

Dhaval Patel
Team Leader - iNETProcess(I) Pvt. LTD.
dhaval.patel@inetprocess.com
Ph No: +91 79 65 12 35 00
http://www.inetprocess.co.in

Felix Laate

Sunday 17 February 2008 11:41:27 pm

Hi Dhaval,

there seems to a problem with the conversion. This could be due to one or more reasons (missing handler, rights etc).

Could you enable debugging and post the result?

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

Dhaval Patel

Monday 18 February 2008 12:39:39 am

Thank you for replying felix,

I have pasted the code below.

Strict: PHP Feb 18 2008 08:35:07

Non-static method eZDebug::writeWarning() should not be called statically, assuming $this from incompatible context in c:/xampp/htdocs/projects/aptana/inetcrm/lib/ezimage/classes/ezimageshellhandler.php on line 129

Warning: eZImageShellHandler::convert Feb 18 2008 08:35:07

Failed executing: /usr/bin/convert "-quality" "75" "-geometry" "100x160>" "-geometry" "100x100" "var/ezwebin_site/storage/images/media/images/soution_saas_basic__1/2302-1-fre-FR/soution_saas_basic.jpg" "JPEG:var/ezwebin_site/storage/images/media/images/soution_saas_basic__1/2302-1-fre-FR/soution_saas_basic_small.jpg", Error: , Return: 1

Error: eZImageManager::createImageAlias Feb 18 2008 08:35:07

Failed converting var/ezwebin_site/storage/images/media/images/soution_saas_basic__1/2302-1-fre-FR/soution_saas_basic.jpg to alias original in directory var/ezwebin_site/storage/images/media/images/soution_saas_basic__1/2302-1-fre-FR

With Best Regards,

Dhaval Patel
Team Leader - iNETProcess(I) Pvt. LTD.
dhaval.patel@inetprocess.com
Ph No: +91 79 65 12 35 00
http://www.inetprocess.co.in

Pascal Specht

Monday 18 February 2008 1:18:48 am

Hi Dhaval,

It seems that ImageMagick isn't called correctly. Are you sure it is installed in /usr/bin ? On my system it uses to be on /usr/local/bin ... You may check by trying the command line directly, to see why ImageMagick fails the conversion,

Hope this helps,
</Pascal>

Dhaval Patel

Monday 18 February 2008 1:30:11 am

hi,

i have two projects running on this system.

In one project, all classes are working correctly. but in other one, only "original" image_class is working. Means, it is not creating thumbnails.

so please guide me what should i do?

With Best Regards,

Dhaval Patel
Team Leader - iNETProcess(I) Pvt. LTD.
dhaval.patel@inetprocess.com
Ph No: +91 79 65 12 35 00
http://www.inetprocess.co.in

Felix Laate

Monday 18 February 2008 1:39:57 am

HI again,

I not too familiar with XAMPP, but if both your proects are in c:/xampp/htdocs/projects/aptana/ and are configured the same way in apache, then I would guess that i could have something to do with rights.

Check the rights of the c:/xampp/htdocs/projects/aptana/_PROJECT_/var folder in each project to see if there is a difference.

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

Dhaval Patel

Monday 18 February 2008 2:02:12 am

hello all,

is there any setting in .ini file like creating which thumbnails, etc...?

With Best Regards,

Dhaval Patel
Team Leader - iNETProcess(I) Pvt. LTD.
dhaval.patel@inetprocess.com
Ph No: +91 79 65 12 35 00
http://www.inetprocess.co.in

Dhaval Patel

Monday 18 February 2008 2:32:24 am

is there any setting which allows to create the images of different classes?

or when the images are created? upload time or fetching time?

and also please tell me the reasons for not crating the thumbnail images?

I think there is not a problem in file permissions or in GD support.

please tell me the solution.

With Best Regards,

Dhaval Patel
Team Leader - iNETProcess(I) Pvt. LTD.
dhaval.patel@inetprocess.com
Ph No: +91 79 65 12 35 00
http://www.inetprocess.co.in

Felix Laate

Monday 18 February 2008 2:42:23 am

Hi,

you can have a look in settings/image.ini (or settings/override/image.ini.append.php).

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

Dhaval Patel

Monday 18 February 2008 3:42:03 am

Thank you all for supporting me.

i found the solution.

[ImageMagick]
IsEnabled=false

this was true. i made it false and now its creating all the images and i can use all image_classes.

Thank you very much once again.

With Best Regards,

Dhaval Patel
Team Leader - iNETProcess(I) Pvt. LTD.
dhaval.patel@inetprocess.com
Ph No: +91 79 65 12 35 00
http://www.inetprocess.co.in