Smart Image Processor ASP 2 Support Product Page

This topic was archived

portrait / landscape watermark

Shared 17 Jul 2008 22:19:59
1
likes this idea
17 Jul 2008 22:19:59 Kenny Darcy posted:
Hellow,
At present you offer the user the opportunity to have one watermark, but I do find that sometimes I want to be able to upload both landscape and portrait and thus would like to have more control as to what that watermark will go, so, I think it would be nice if the extension was to request both a watermark for landscape image and a portrait image.,

cheers

kenny

Replies

Replied 18 Jul 2008 13:24:33
18 Jul 2008 13:24:33 Kiril Iliev replied:
Hi Kenny,

Do you mean something like this described here?

I know it is for the PHP version, but you can easily modify it once you see the algorithm.

Regards,

DMX Zones Support Team
Replied 18 Jul 2008 13:33:30
18 Jul 2008 13:33:30 Kenny Darcy replied:
Good Morning,

I managed to do it like this and it appears to work fine.

If pau.Fields("pic4".Height > pau.Fields("pic4".Width Then
sip_great4.Resize 2592, 3888, false
sip_great4.AddWatermark "watermark/waterP_big.png", "Center-Center", false, "#66ff00", "50"
ElseIf pau.Fields("pic4".Width > pau.Fields("pic4".Height Then
sip_great4.Resize 3888, 2592, false
sip_great4.AddWatermark "watermark/waterL_big.png", "Center-Center", false, "#66ff00", "50"
End If

I believe you are far more cleverer then me so if you know of a better way as always very grateful for advice lol.

This is something that would be ncie to have implemented in the sip extension in the future. an area to add 2 watermarks, one for portrait and one for landscape.


cheers

kenny

Reply to this topic