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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 22:38:51
Script start
Timing: Jan 18 2025 22:38:51
Module start 'layout'
Timing: Jan 18 2025 22:38:51
Module start 'content'
Timing: Jan 18 2025 22:38:51
Module end 'content'
Timing: Jan 18 2025 22:38:51
Script end

Main resources:

Total runtime0.0190 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0077 587.9141152.6250
Module start 'layout' 0.00770.0040 740.539139.4453
Module start 'content' 0.01170.0049 779.9844101.4453
Module end 'content' 0.01660.0024 881.429746.3047
Script end 0.0189  927.7344 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002613.5178140.0002
Check MTime0.00115.6056140.0001
Mysql Total
Database connection0.00084.052810.0008
Mysqli_queries0.004925.845830.0016
Looping result0.00000.079110.0000
Template Total0.001910.110.0019
Template load0.00105.405810.0010
Template processing0.00094.694810.0009
Override
Cache load0.00063.219910.0006
General
dbfile0.00031.454880.0000
String conversion0.00000.059040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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