ez Image Editor: Rotation does not work

Author Message

Marco Zinn

Saturday 16 October 2010 6:07:46 am

Well, that says it all ;)

Running ez4.4 with the new image editor, the editor works quite fine (crop, flip, mirror, grayscale, sepia, watermarks). But rotating an image won't work.

Running PHP 5.2.6 with GD2.something.

Any ideas?

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

Marko Žmak

Sunday 17 October 2010 9:08:09 am

Marco, I'm not sure if this will solve it but try using imagemagick for image manipulaton.

Also it could be a browser related issue. On my site rotation works OK, I have "ImageMagick 6.4.8" and I'm using Firefox.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Marco Zinn

Monday 18 October 2010 12:16:06 pm

Hi Marko,

thanks for your reply.

I tried to activate ImageMagick, but to no avail.

With GD, i set "HadGD2" to "true". That did not change anything.

I get errors like

[ Oct 18 2010 20:51:26 ] [94.216.116.112] eZINI::variable:
Undefined variable: '' in group 'GDSettings' in image.ini
[ Oct 18 2010 20:51:32 ] [94.216.116.112] eZContentObject::fetch():
Object not found ()

.... and why does ezOE still not allow me to leave the litaral text area???

... without having to save a draft?

Anyway.... after enabling ImageMagick (which IS installed at /usr/bin/convert), i get other errors.

[ Oct 18 2010 21:04:01 ] Unexpected error, the message was : Handler class 'ezcImageImagemagickHandler' not found. ImageMagick not installed or not available in PATH variable. in DOCROOT/lib/ezc/ImageConversion/src/handlers/imagemagick_base.php on line 406
[ Oct 18 2010 21:04:08 ] [94.216.116.112] eZLocale:
Could not load country settings for
[ Oct 18 2010 21:04:08 ] [94.216.116.112] eZLocale:
Could not load language settings for null
[ Oct 18 2010 21:04:08 ] [94.216.116.112] Can not find language.:
No such locale null!
[ Oct 18 2010 21:04:08 ] [94.216.116.112] error/view.php:
Error ocurred using URI: /eng/content/edit/115/2/null/save_and_quit

Still, it does not let me rotate an image in ezIE. I don't know, why i get errors about country settings (Content Language and Site Languages are English, Site is multilingual).

I read http://doc.ez.no/Extensions/eZ-Image-Editor/Setup-and-user-guide-eZ-Image-Editor/Known-issues-in-the-eZ-Image-Editor , but i do not know what to do about the "know issue". If the known issue is "ezIE does not work with a standard installation of ImageMagick", then this is bad news on quality...

Any more ideas?

Edit:

On the Admin Site, i can see "see" (Firebug) this: "

<b>Fatal error</b>:  Call to undefined function ImageRotate() in <b>DOCROOT/extension/ezie/classes/handlers/gd.php</b> on line <b>105</b><br /> 

as the answer to the POST request to http://HOST/ezflow_site_admin/ezie/tool_rotation.

Not good.... May be related to the missing setting from GDSettings...

I'm using the ez4.4 distribution with ezc included. There used to be a notice somewhere, that the bundled ezc were not up to date at some time... Is this still true?

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

Chris Williams

Friday 12 November 2010 2:24:02 am

Hi Marco,

Create or add to "image.ini.append.php"
[ImageMagick]
ExecutablePath=/usr/bin

Clear all your caches.
#goto ez directory
cd EZ DIR
#remove main cache and site specific caches
rm -rf var/cache/* var/*/cache/*

Try again, if it works, great.

If not... check "image.ini" under:

[ImageMagick]
Make sure "IsEnabled=true".

Hope this helps

I did post an issue about it not working without ExecutablePath set, which is linked to one of the urls you have mentioned.

http://issues.ez.no/IssueView.php?Id=17628

Chris

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 02:01:29
Script start
Timing: Jan 18 2025 02:01:29
Module start 'layout'
Timing: Jan 18 2025 02:01:29
Module start 'content'
Timing: Jan 18 2025 02:01:29
Module end 'content'
Timing: Jan 18 2025 02:01:29
Script end

Main resources:

Total runtime0.6613 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 588.0313152.6406
Module start 'layout' 0.00550.0034 740.671939.4844
Module start 'content' 0.00890.6511 780.1563606.1016
Module end 'content' 0.66000.0012 1,386.257816.1406
Script end 0.6613  1,402.3984 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.5682160.0002
Check MTime0.00160.2470160.0001
Mysql Total
Database connection0.00100.144410.0010
Mysqli_queries0.588889.0381620.0095
Looping result0.00060.0949600.0000
Template Total0.623394.320.3117
Template load0.00220.330020.0011
Template processing0.621193.922720.3106
Template load and register function0.00010.016910.0001
states
state_id_array0.00170.249810.0017
state_identifier_array0.00100.150720.0005
Override
Cache load0.00190.2916500.0000
Sytem overhead
Fetch class attribute can translate value0.00130.192130.0004
Fetch class attribute name0.00180.273360.0003
XML
Image XML parsing0.00120.186630.0004
class_abstraction
Instantiating content class attribute0.00000.002170.0000
General
dbfile0.00540.8126240.0002
String conversion0.00000.001240.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 25
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs