How to customize image with watermark

From TomatoCMS Documentation

Jump to: navigation, search

You want to mark image like this

When upload, check watermark option. You have to check this option and set parameters before click Browse.
TomatoCMS support two type of mark: text (image 1) and image (image 2). You only can choose one of two type.

  • Marked position, have five position to mark:
    • top-left
    • top-right
    • center
    • bottom-left
    • bottom-right
  • Select size of image, you can select size of image which you want to mark (marked text is automatic resize follow uploaded image size)

After set parameters done, these parameters will insert into image which you browse.
If uncheck watermark, you will upload image in normal way.

File:GuideWatermark.png

Click Save, watermark parameters will save to app/modules/upload/config/config.ini. These parameters are saved in order to use as default parameters for next your mark.
Parameters are saved as following:

[watermark]
position = "middle_center"
sizes = "general,small,crop,large"
text = "TomatoCMS"
color = "ff0000"

Marked image and uploaded image can be .jpg, .png, .gif
However, if marked image is .gif, and you use GD library, so image is not very nice.

Personal tools