• Resolved hellohell

    (@hellohell)


    So, I’ve checked it multiple times. Even created a new wordpress site on another hosting from the clear slate with just 2 added plugins (wordpress and this one):
    Encountered a problem – plugin messes up when ‘-scaled’ images are present/generated by wordpress

    And when I forced my site to not create ‘-scaled’ images with big files – result stays the same

    So here’s an example on main site:
    11.11.2298.jpg – 3264×2448 picture. Stays unwatermarked

    These all are unwatermarked:
    11.11.2298-100×100.jpg
    11.11.2298-300×225.jpg
    11.11.2298-400×267.jpg
    11.11.2298-500×375.jpg
    11.11.2298-768×576.jpg
    11.11.2298-scaled.jpg
    11.11.2298-scaled-100x100_br_backup.jpg
    11.11.2298-scaled-300x225_br_backup.jpg
    11.11.2298-scaled-400x267_br_backup.jpg
    11.11.2298-scaled-500x375_br_backup.jpg
    11.11.2298-scaled_br_backup.jpg

    Only these ones are
    11.11.2298-scaled-100×100.jpg
    11.11.2298-scaled-300×225.jpg
    11.11.2298-scaled-400×267.jpg
    11.11.2298-scaled-500×375.jpg

    Another one on my main site:

    2022-22-22_10-37-13.jpg     693x694   - watermarked and all is done correctly. Probably because file's dimensions are not big enough to generate '-scaled' images.
    Watermarked:
    2022-22-22_10-37-13-100x100.jpg
    2022-22-22_10-37-13-300x300.jpg
    2022-22-22_10-37-13-400x267.jpg
    2022-22-22_10-37-13-500x501.jpg
    Originals:
    2022-22-22_10-37-13-100x100_br_backup.jpg
    2022-22-22_10-37-13-300x300_br_backup.jpg
    2022-22-22_10-37-13-400x267_br_backup.jpg
    2022-22-22_10-37-13-500x501_br_backup.jpg
    2022-22-22_10-37-13_br_backup.jpg

    After that I enforced not creating ‘-scaled’ images. Added this line to the end of functions.php:
    add_filter( 'big_image_size_threshold', '__return_false' );
    Here’s the result:

    zzz.jpg			2560x1920 	stays unwatermarked
    No watermark:
    zzz-100x100_br_backup.jpg
    zzz-300x225_br_backup.jpg
    zzz-400x267_br_backup.jpg
    zzz-500x375_br_backup.jpg
    zzz-768x576_br_backup.jpg
    zzz_br_backup.jpg
    Watermarked:
    zzz-100x100.jpg
    zzz-300x225.jpg
    zzz-400x267.jpg
    zzz-500x375.jpg
    zzz-768x576.jpg

    Just to make sure that the issue is not with my site. I’ve uploaded images to absolutely freshly installed wordpress without plugins (only this one and woocommerce):

    21313453.jpg		4000x3000	on different site with clean wordpress. This one stayed unwatermarked
    These are unwatermarked
    21313453_br_backup.jpg
    21313453-100x100_br_backup.jpg
    21313453-150x150_br_backup.jpg
    21313453-300x225_br_backup.jpg
    21313453-324x324_br_backup.jpg
    21313453-416x312_br_backup.jpg
    21313453-768x576_br_backup.jpg
    21313453-1024x768_br_backup.jpg
    21313453-1536x1152.jpg
    21313453-2048x1536.jpg
    21313453-scaled_br_backup.jpg
    21313453-scaled-1536x1152.jpg
    21313453-scaled-2048x1536.jpg
    21313453-scaled.jpg
    21313453.jpg
    This with watermark:
    21313453-100x100.jpg
    21313453-150x150.jpg
    21313453-300x225.jpg
    21313453-324x324.jpg
    21313453-416x312.jpg
    21313453-768x576.jpg
    21313453-1024x768.jpg

    Same site dealt with picture 560×370 correctly. No scaled images: backups done correctly, all images without ‘_br_backup’ are watermarked.

    So my conclusion is plugin fails completely with big enough images.. Can’t say why.
    Checked numerous times. Reuploaded different pictures. Uploaded through media library/product page. Regenerated via your plugin setting. Tried ‘Restore’ than ‘Create’. Tried regenerating my thumbnails (on the main site).. Haven’t won the battle

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter hellohell

    (@hellohell)

    At least this time the plugin just straight up haven’t overwritten original image files

    Plugin Author RazyRx

    (@razyrx)

    Hello,

    Please check plugin error on admin area -> BeRocket -> Account Keys -> Errors section. Select plugin from drop down menu and click “Get errors” button.

    Regards,
    Oleg

    Thread Starter hellohell

    (@hellohell)

    You are right. I’m getting:
    Watermark adding. Image size is more then settings limit
    After fixing “Maximum image height/width” I can see this error:
    Watermark adding. Image use a lot of memory
    I get it twice per run after almost tripling “PHP memory limit on your server”. And I didn’t have those (judging from your error log) before the max height/width fix. Does that mean 2 of my images are not watermarked?? I will have to check it manually…

    Also I’m very grateful for the response. “Maximum image height/width” values though seemed to me like they are there to configure max dimensions of watermarked images. It seems pretty strange that it is there to skip big images. And not its thumbnails. Without stating a visible error/notification…

    Thread Starter hellohell

    (@hellohell)

    Found an image the plugin didn’t watermarked. I tried both just clicking “create watermark” on wordpress admin image page. And tried “restore” than “create”.
    Both attempts end up with no error message, still full picture is unwatermaked, error log updates with a new
    Watermark adding. Image use a lot of memory

    This specific image: File size: 757 KB, Dimensions: 2448 × 3264
    My plugin settings:

    JPEG image quality	-	90
    Maximum image height	-	7000
    Maximum image width	-	7000
    PHP memory limit on your server	-	2973741824

    It’s not the biggest image nor by size, nor by its dimensions.
    If you need test this picture…… Ok.. Changed to “256M” (just like default value on my other hosting) – fixed the issue

    Still: no notifications in case of skipping some images is not good at all. But thanks for the plugin… Seems to work

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘‘Full’ stays unwatermarked with big images’ is closed to new replies.