• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.
  • Chevereto Support CLST

    Support response

    Support checklist

    • ⚠️ Got a Something went wrong message? Read this guide and provide the actual error. Do not skip this.
    • ✅ Confirm that the server meets the System Requirements
    • 🔥 Check for any available Hotfix - your issue could be already reported/fixed
    • 📚 Read documentation - It will be required to Debug and understand Errors for a faster support response

Disable watermarking of GIF's

JLarsson

Chevereto Member
I have also suggested this to be in the Admin-panel.
When watermarks are applied to animated gif's, the animation breaks.

This tweak prevents GIF's from being watermaked while other formats works just fine.

Open app\lib\classes\class.image.php
Remark line 373 & 451 with //

Line 373 should look like this:
PHP:
               switch($upload->uploaded['fileinfo']['extension']) {
                    case 'gif':
//                        $src = imagecreatefromgif($upload->uploaded['file']);
                    break;

Line 451 should look like this:
PHP:
       switch($upload->uploaded['fileinfo']['extension']) {
           case 'gif':
//                imagegif($src, $upload->uploaded['file']);
           break;
 
You can use this:

PHP:
G\is_animated_image($filepath)

Not all the .gif images are animated.
 
I have also suggested this to be in the Admin-panel.
When watermarks are applied to animated gif's, the animation breaks.

This tweak prevents GIF's from being watermaked while other formats works just fine.

Open app\lib\classes\class.image.php
Remark line 373 & 451 with //

Line 373 should look like this:
PHP:
               switch($upload->uploaded['fileinfo']['extension']) {
                    case 'gif':
//                        $src = imagecreatefromgif($upload->uploaded['file']);
                    break;

Line 451 should look like this:
PHP:
       switch($upload->uploaded['fileinfo']['extension']) {
           case 'gif':
//                imagegif($src, $upload->uploaded['file']);
           break;

thank you this is great.
 
The system doesn't touch the animated images (it was patched long ago) so you don't need to add that.
 
Last edited:
Back
Top