Forums

This topic is locked

Can't change background color in SIP

Posted 05 Jul 2011 22:15:29
1
has voted
05 Jul 2011 22:15:29 Norman Buangan posted:
I have matt in SIP to #FFFFFF but it when the image is cropped it's black. Shouldn't it be white? Is there another property or method to set the background to white?

Replies

Replied 06 Jul 2011 10:55:29
06 Jul 2011 10:55:29 Patrick Woldberg replied:
Is it with the ASP or PHP version of SIP and which component is used?
Replied 07 Jul 2011 00:34:57
07 Jul 2011 00:34:57 Norman Buangan replied:
QuoteIs it with the ASP or PHP version of SIP and which component is used?


ASP Version
Replied 07 Jul 2011 11:22:40
07 Jul 2011 11:22:40 Patrick Woldberg replied:
I've read in the support forum also someone with the same problem. It seems to be a bug in the ASP.NET component as far I can see.

I checked it myself but couldn't reproduce with the latest version. You have something live where I could check and do you have the latest version uploaded to your server.
Replied 07 Jul 2011 19:44:38
07 Jul 2011 19:44:38 Norman Buangan replied:
Running on localhost. I have the latest extension installed 2.5.5. And this time I chose AspJpeg to try to avoid the ASP.Net component if indeed that is causing the bug. Here's the code:


' Smart Image Processor 2.5.5
Dim sip1
Set sip1 = New ImageProcessor
sip1.Key = "[my key goes here]"
sip1.ScriptFolder = "../../ScriptLibrary"
sip1.Component = "AspJpeg"
sip1.Source = "folder"
sip1.AutoOrient = false
sip1.KeepMetaData = false
sip1.Matte = "#FFFFFF"
sip1.Folder = "original"
sip1.GetFiles
While sip1.HasFiles
sip1.LoadFromSource
sip1.Resize 640, 640, true
sip1.CropPos "Center-Center", 640, 640
sip1.AddWatermark "ust-watermark.png", "Center-Center", false, "#FFFFFF", "50"
sip1.Overwrite = false
sip1.Mask = "xl/##name##.jpg"
sip1.SaveJPEG 100
sip1.MoveNext
Wend
Set sip1 = Nothing

Reply to this topic