Watermarks add-on is available for testing

Starting from version 3.0.1 the Watermarks add-on is included in CS-Cart,

this version is not available anymore.





Hi all,



We are glad to introduce a new add-on for CS-Cart. It is called “Watermarks”.



As you can guess, this add-on will help you watermark images in your store automatically.



You can upload a watermark or create it by yourself by entering some text, size and color for you watermark.



Unpack this archive and copy the contained files to the root directory of your store, then

install this add-on and open the Administration > Watermarks tab in your admin area to set the add-on.



Here you can select “Graphic watermark” and upload an image for your watermark by yourself

or use “Text watermark” and enter some text, size and color for you watermark.



Then go to any page with an image, for example, to the product details page and select the “Watermark this image” check box and save the changes.



NOTE: After you change settings of the add-on, you should go to the page with the image and save the page - this is necessary to regenerate the images with new settings.



You should use the PNG image format for your watermark image file.

The add-on is designed for CS-Cart version 2.1.4.



Thank you. I will look forward to your feedback.

Nice… thanks! :smiley:

Thanks Dmitry! One minor hiccup I noticed: if the product image is from a URL, the “Watermark this image” checkbox state is ignored.



It would be great if you could add some functionality to apply watermarks in bulk - either via the “global update” tool or the “edit selected” method.



Glen

Thank You, we’ll test it today - Sno

Does this mean that it wont work on 2.0 versions?

Thanks for the addon,we appreciate for your efforts.


  1. Is it working only for PNG images? What if we upload other type of image for the products?(like jpg).They will be not watermarked?



    2.Only work on 2.1.4 and will work on upper versions?


  2. Are there Any stability issues,or bugs about the addon(I’m asking to people who have downloaded it)



    Thanks,

[quote name=‘getreal’]Thanks for the addon,we appreciate for your efforts.


  1. Is it working only for PNG images? What if we upload other type of image for the products?(like jpg).They will be not watermarked?



    2.Only work on 2.1.4 and will work on upper versions?


  2. Are there Any stability issues,or bugs about the addon(I’m asking to people who have downloaded it)

    [/QUOTE]



    PNG images are recommended for the watermark image. This allows the watermark to be transparent. The product image can be JPG, PNG, etc.



    Seems to work fine in my 2.1.4 Community Edition test site. 2.1.5 hasn’t been released.



    Haven’t had any problems with stability or bugs.

Works on 2.1.3, but do we have to add them 1 by 1?



JOhn

[quote name=‘johnbol1’]Works on 2.1.3, but do we have to add them 1 by 1?



JOhn[/QUOTE]



I agree no one’s going to add this one at a time. But it works here 2.14 just got to figure out how I’m going to add it to over 10,000 images.



The developers really need to start thinking like store owners.

very nice and simple.

but a bulk watermark to all product images would be nice

anyway nice job. this was a must addon

I haven’t tested this addon yet, but why not do it like how Magic Thumb does their watermarking?



With Magic Thumb, you just enter in your watermark info through the Addon interface and then the watermark is put on top of your images automatically. No importing or having to do anything one at a time. Just set it and forget it.



Brandon

[QUOTE]PNG images are recommended for the watermark image. This allows the watermark to be transparent. The product image can be JPG, PNG, etc.[/QUOTE]



Yes, you are right,





Thank you for the feedback.



The ability of global updating and editing will be added in the next version.





We are planning to include this add-on in one of the future CS-Cart versions after we discuss it.



We are glad to accept any you suggestions!

Kind Regards.

Glad to see the watermarking capability has been started!

Thanks KleriK

I have noticed a little problem on this addon that maybe can be fixed on the next release.



If you tick the watermark check box it will the add that image with the watermark to images/watermark_detailed/example.jpg now the problem with that is that it doesn’t re-wright the path so if i was to paste the link in to the address bar and take out the watermark_ bit (i.e. images/detailed/example.jpg) it would show the image with out the watermark. All so if you have been on line for some time like me you will have links on pictures with links on google that if people click on it it will sow them the picture with out the watermark even if you have selected to have a watermark on it.

[quote name=‘projectmyst’]I have noticed a little problem on this addon that maybe can be fixed on the next release.



If you tick the watermark check box it will the add that image with the watermark to images/watermark_detailed/example.jpg now the problem with that is that it doesn’t re-wright the path so if i was to paste the link in to the address bar and take out the watermark_ bit (i.e. images/detailed/example.jpg) it would show the image with out the watermark. All so if you have been on line for some time like me you will have links on pictures with links on google that if people click on it it will sow them the picture with out the watermark even if you have selected to have a watermark on it.[/QUOTE]



Thank you for your good suggestion.



The logic of generating image path will be improved.

Two fix to update addon :


  • solve the problem with png and php 5.2.8
  • solve the problem with black background behind the picture



    at the line 229 put



    ```php

    $result = imagepng($image, $watermarked_dir . $image_data[‘image_path’], 8);

    ```



    instead



    ```php

    $result = imagepng($image, $watermarked_dir . $image_data[‘image_path’], 85);

    ```



    at the line 213 replace this



    ```php

    $font_color = imagecolorallocatealpha($image, 120, 120, 120, WATERMARK_FONT_ALPHA);

    ```



    this code



    ```php

    $font_color= imagecolortransparent($image, imagecolorallocate($image, 0, 0, 0));

    $font_color.= imagecolorallocatealpha($image, 120, 120, 120, WATERMARK_FONT_ALPHA);

    ```



    other bug dectected :

    if you change the watermarked picture, the old picture doesn’t remove

Will this works on newly uploaded images or existing images too ?

he seems there are somes problems with the original scripts, i’m looking for an hotfix for PNG and transparent background

[quote name=‘miracles’]Will this works on newly uploaded images or existing images too ?[/QUOTE]



How it works is you get an extra option in the image upload area of the products page. It does not add any watermark to any image unless you tick the box for that image. Thats either existing or, as you can’t import watermark options, future images uploaded.



Rather pointless in it’s current version.

Nice addon!