WordPress.org

Forums

Easy Watermark
Can't watermark all images, error messages and timeout (2 posts)

  1. Susan Langenes
    Member
    Posted 1 year ago #

    Using php version 5.3.

    Several interesting things going on here. Site in question is thenextbigadventure.net.

    Watermarking was working only on upload; it did not work when I tried to watermark several images at once from media library, and did not work when I tried to manually add watermark to a single image.

    But automatic watermark was working on image upload.

    Also, when I tried to watermark all images at once (there are over 1000 on this site), nothing happened other than a spinning wheel for about 30 seconds.

    Then, I unchecked the box for "watermark images on upload" and tried watermarking all images at once again. After 30 seconds, a VERY long list of warning/error messages were produced. Here are the first four:

    Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: gd-jpeg, libjpeg: recoverable error: Premature end of JPEG file in /home/jrbasset/public_html/wp-content/plugins/easy-watermark/lib/EasyWatermark.php on line 804

    Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: '/home/jrbasset/public_html/wp-content/uploads/2012/06/Laos-202.jpg' is not a valid JPEG file in /home/jrbasset/public_html/wp-content/plugins/easy-watermark/lib/EasyWatermark.php on line 804

    Warning: imagesx() expects parameter 1 to be resource, boolean given in /home/jrbasset/public_html/wp-content/plugins/easy-watermark/lib/EasyWatermark.php on line 733

    Warning: imagesy() expects parameter 1 to be resource, boolean given in /home/jrbasset/public_html/wp-content/plugins/easy-watermark/lib/EasyWatermark.php on line 734

    Then, after those four, the following five are reproduced a couple hundred or so times:

    Warning: imagecreatetruecolor() [function.imagecreatetruecolor]: Invalid image dimensions in /home/jrbasset/public_html/wp-content/plugins/easy-watermark/lib/EasyWatermark.php on line 714

    Warning: imagecopy() expects parameter 1 to be resource, boolean given in /home/jrbasset/public_html/wp-content/plugins/easy-watermark/lib/EasyWatermark.php on line 718

    Warning: imagecopy() expects parameter 1 to be resource, boolean given in /home/jrbasset/public_html/wp-content/plugins/easy-watermark/lib/EasyWatermark.php on line 587

    Warning: method_exists() expects exactly 2 parameters, 1 given in /home/jrbasset/public_html/wp-content/plugins/easy-watermark/lib/EWPlugin.php on line 116

    Warning: Wrong parameter count for method_exists() in /home/jrbasset/public_html/wp-content/plugins/easy-watermark/lib/EWPlugin.php on line 116

    The very last line is:

    Fatal error: Maximum execution time of 30 seconds exceeded in /home/jrbasset/public_html/wp-content/plugins/easy-watermark/lib/EasyWatermark.php on line 804

    Any ideas?

    http://wordpress.org/plugins/easy-watermark/

  2. szaleq
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Susan,

    In your first errors you can find sentences like this: 'Premature end of JPEG'
    " '/home/jrbasset/public_html/wp-content/uploads/2012/06/Laos-202.jpg' is not a valid JPEG file", so it suggests that the files you try to watermark are not a valid images (there are some errors in your files - they can be viewable, browsers and other programs can maybe deal with this errors but PHP can't).

    Any following errors are just a result of this first. So please try to open your images in some desktop application and save them back (to avoid errors in files), then try to upload them again. If it does not help, please give me some inforamtion about your php configuration (phpinfo() - if you don't know what is it, write me an email so I'll give you some instructions).

    The very last error: watermarking an image can take a lot of time. If you watermark a huge number of images at once it can take even a few minutes! Easy Watermark plugin tries to extend the execution time but it might be that your server doesn't allow this change and it just ends after 30 seconds. I'm going to implement ajax watermarking so each image will be processed in a separate request to avoid such problems but it's not done yet.

    Regards

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.