Hey I have last imagecache and imageapi, my photos where displayed ok, but when I added Overlay (watermark), they arent display at all. The sample picture under actions is not displayed also.
What can be wrong ?
Thanks

Comments

benone’s picture

I forgot to write that after that I had to do this - http://drupal.org/node/580538#comment-2383658 after upgrading to drupal 6.16.
But I used last versions of modules, not those listed in this comment.

dman’s picture

Are you using the GD toolkit? Imagemagick is not supported

benone’s picture

Yes. GD2.
For example text overlay works great. I can add whatever I want. Just picture isnt wroking. I tried jpg, gif, png. None.
When I add watermark action to my preset picture isnt rendered at all :(.
Can it be caused by my apache, php , gd version ?

Here is my GD table from phpinfo:

gd
GD Support enabled
GD Version bundled (2.0.34 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.3.11
T1Lib Support enabled
GIF Read Support enabled
GIF Create Support enabled
JPEG Support enabled
libJPEG Version 7
PNG Support enabled
libPNG Version 1.2.40
WBMP Support enabled
XBM Support enabled
JIS-mapped Japanese Font Support enabled

and my apache version:
Apache Version Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1

WHat else I can provide here to help resolving this issue ?

cakka’s picture

so what the solution for this ?

thanks

---
My Website

dman’s picture

I just can't tell here.
Do you get any message when accessing the target image directly?
My only guess is possibly memory, image processing requires a healthy amount of PHP mem. Are you using opacity? That's even worse.

benone’s picture

The solution is to patch imageapi, imagecache and imagecache_actions to work with PHP 5.3 .
Crazy by now, but should be stable soon after patches will be committed.

Its all about & sign. I dont understand it, sometimes needs to be sometimes not.

&$layer must be changed to $layer in imagecache_canvasactions.module

for imageapi and imagecache issues for PHP 5.3 problem are already opened and full of SUBSCRIBERS.

c r a z y

balancestuff’s picture

Benone, I'm goign to try your fix tonight, as I seem to be having the same problem. Thanks!

hydra’s picture

I have exactly th same issue then benone, I'm not able to get it work! Woud be happy if you'll fix it :)

dman’s picture

Title: Watermark - photo not displayed at all :( » Watermark - photo not displayed at all :( [ PHP 5.3 issue ? ]
Status: Active » Needs work

Someone that's using PHP 5.3 would need to roll the appropriate patches - if that's really what it is. I can't test from here.

benone’s picture

I dont know how to do patches but still can just upload those 3 modules already patched if you want.
They are working with 5.3 but have no idea what will happen when I upload my project from local machine to the server where 5.2 php is installed. uhhh

modctek’s picture

I had to manually edit imagecache_actions/imagecache_canvasactions.module to remove the "&"s from $image and $layer (as mentioned by #6). This was in version imagecache_actions 6.17.

After "patching" this file, overlays work as intended.

elvis2’s picture

Issue tags: +PHP 5.3 compatibility

I can confirm the same issue. Site works on PHP 5.2.x. Same exact site does not produce watermarks on PHP5.3.x. Removed the pass by reference and all is well on PHP 5.3.x.

chriscohen’s picture

Status: Needs work » Fixed

This has been fixed in 6.x-1.8. Recommend closing.

Status: Fixed » Closed (fixed)
Issue tags: -PHP 5.3 compatibility

Automatically closed -- issue fixed for 2 weeks with no activity.