zenphoto forums » Usage Support

Problems with watermarking (GD, png, freebsd)

(1 post)
  • Started 3 years ago by geertbooster
  1. geertbooster

    Apprentice
    Joined: Oct '09
    Posts: 1

    Hi,

    Today I did add new photo's on my zenphoto instance. After adding the photo's I saw that my watermark wasn't working anymore on the new uploaded photo's. After trashing the image cache, the watermarks didn't work on any photo's anymore. The first time I did access a photo in full size after trashing the image cache, I didn't get the photo. The second time it always worked.

    By using the debug page I did get the following errors:

    Warning: imagecreatefrompng() [function.imagecreatefrompng]: gd-png: fatal libpng error: [00][00][00][00]: unknown critical chunk in <path>/zp-core/lib-GD.php on line 25
    
    Warning: imagecreatefrompng() [function.imagecreatefrompng]: gd-png error: setjmp returns error condition in <path>/zp-core/lib-GD.php on line 25
    Warning: imagecreatefrompng() [function.imagecreatefrompng]: '<path>/zp-core/watermarks/mm.png' is not a valid PNG file in <path>/zp-core/lib-GD.php on line 25
    
    Warning: imagesx(): supplied argument is not a valid Image resource in <path>/zp-core/lib-GD.php on line 285
    
    Warning: imagesy(): supplied argument is not a valid Image resource in <path>/zp-core/lib-GD.php on line 295
    
    Warning: Division by zero in <path>/zp-core/functions-image.php on line 341
    
    Warning: imagecopy(): supplied argument is not a valid Image resource in <path>zp-core/lib-GD.php on line 90
    
    Warning: imagedestroy(): supplied argument is not a valid Image resource in <path>zp-core/lib-GD.php on line 340

    While trying to find some solutions by Google-ing the first error, I came across the following URL http://serverfault.com/questions/42573/strange-gd-error-when-working-on-png-images-from-php-on-freebsd which is exactly the problem I see at my FreeBSD 7.1 system. Somebody in that topic did rebuild his freebsd ports which are using png (I am using png-1.2.40) and after that it worked. I also did rebuild all the ports depending on png, but I have still the same errors when using watermarks.

    Anyone seeing this problem? Because I'm seeing the same problems on the web which are not related to zenphoto, maybe this is a PHP bug?

    I am using PHP 5.2.11 and zenphoto 1.2.6.

    Posted 3 years ago #

RSS feed for this topic

Reply

You must log in to post.