I guess it's a matter of preference, but I find I get better results if I sharpen a little more, then resize - not the other way around. For thumbnails, I use the following code to scale down the image by two thirds at a time, then sharpening:
function ratio (newWidth, newHeight) {
return ...
Search found 16 matches
- Fri Dec 09, 2005 12:23 pm
- Forum: GFL SDK
- Topic: PNG transparency problem - bug? (example) [GFLAx/ASP]
- Replies: 1
- Views: 1985
PNG transparency problem - bug? (example) [GFLAx/ASP]
My goal is to generate and save a semi-transparent PNG.
Here's my code:
<%
Const AX_PNG = 3
Set Pic = Server.CreateObject("GflAx.GflAx")
Pic.UseTransparency = True
Pic.LoadBitmap Server.MapPath("_trans.png")
Pic.FontName = "Verdana"
Pic.FontSize = 36
Pic.TextOut "This is a test", 0, 0, RGB ...
Here's my code:
<%
Const AX_PNG = 3
Set Pic = Server.CreateObject("GflAx.GflAx")
Pic.UseTransparency = True
Pic.LoadBitmap Server.MapPath("_trans.png")
Pic.FontName = "Verdana"
Pic.FontSize = 36
Pic.TextOut "This is a test", 0, 0, RGB ...
- Thu Dec 08, 2005 12:23 pm
- Forum: GFL SDK
- Topic: transparent GIF problem
- Replies: 6
- Views: 3729
- Thu Dec 08, 2005 10:34 am
- Forum: GFL SDK
- Topic: Better resize
- Replies: 11
- Views: 8724
- Thu Dec 08, 2005 8:35 am
- Forum: GFL SDK
- Topic: transparent GIF problem
- Replies: 6
- Views: 3729
I don't see how that could be the problem? it shouldn't matter what's in the image in the first place - since I convert it to 8 colours first, the image has a palette ... normally, when you create a transparent GIF, that's what you do - reduce to x number of colors, then pick the color you want to ...
- Thu Dec 08, 2005 8:31 am
- Forum: GFL SDK
- Topic: Better resize
- Replies: 11
- Views: 8724
- Wed Dec 07, 2005 1:17 pm
- Forum: GFL SDK
- Topic: GetTextWidth bug when string contains "&"
- Replies: 1
- Views: 1377
GetTextWidth bug when string contains "&"
For strings containing an ampersand (the "&" character), the GetTextWidth function returns a size that is too small - as you can see in the following simple ASP example, this is true.
<%
Const AX_GIF = 2
Const AX_To8Colors = 8
Const AX_NoDither = 0
Const AX_ToColors = 0
BG = RGB(255,255,255)
FG ...
<%
Const AX_GIF = 2
Const AX_To8Colors = 8
Const AX_NoDither = 0
Const AX_ToColors = 0
BG = RGB(255,255,255)
FG ...
- Wed Dec 07, 2005 1:08 pm
- Forum: GFL SDK
- Topic: transparent GIF problem
- Replies: 6
- Views: 3729
- Tue Dec 06, 2005 1:34 pm
- Forum: GFL SDK
- Topic: Transparent GIF code?
- Replies: 5
- Views: 3292
I'm trying to do the same thing, but I'm having less luck than you
Any chance you could take a look at this post and tell me what you think?
Thanks

Any chance you could take a look at this post and tell me what you think?
Thanks
- Mon Dec 05, 2005 2:48 pm
- Forum: GFL SDK
- Topic: transparent GIF problem
- Replies: 6
- Views: 3729
transparent GIF problem
I'm trying to generate a transparent GIF with GFLax in ASP, but I've run into a problem. Let's say I do this:
<%
Const AX_GIF = 2
Const AX_To8Colors = 8
Const AX_NoDither = 0
Const AX_ToColors = 0
BG = RGB(255,255,255)
FG = RGB(255,0,0)
Text = "This is a test"
Set Pic = Server.CreateObject ...
<%
Const AX_GIF = 2
Const AX_To8Colors = 8
Const AX_NoDither = 0
Const AX_ToColors = 0
BG = RGB(255,255,255)
FG = RGB(255,0,0)
Text = "This is a test"
Set Pic = Server.CreateObject ...
- Mon Dec 05, 2005 2:34 pm
- Forum: GFL SDK
- Topic: Better resize
- Replies: 11
- Views: 8724
- Tue Sep 27, 2005 2:51 pm
- Forum: GFL SDK
- Topic: Better resize
- Replies: 11
- Views: 8724
- Tue Sep 27, 2005 11:20 am
- Forum: GFL SDK
- Topic: Better resize
- Replies: 11
- Views: 8724
Better resize
I'm using GFLAx in ASP.
I am not happy with the image quality when resizing images to very small sizes (e.g. thumbnails) ... I've had to migrate from ServerObjects ASPImage v2.0, which unfortunately is unstable and causes server death. But the thumbnail quality was considerably better - my ...
I am not happy with the image quality when resizing images to very small sizes (e.g. thumbnails) ... I've had to migrate from ServerObjects ASPImage v2.0, which unfortunately is unstable and causes server death. But the thumbnail quality was considerably better - my ...
- Tue Sep 27, 2005 9:29 am
- Forum: GFL SDK
- Topic: Merging two images (ASP)
- Replies: 10
- Views: 7355
- Tue Sep 27, 2005 9:24 am
- Forum: GFL SDK
- Topic: Merging two images (ASP)
- Replies: 10
- Views: 7355