Search found 16 matches

by mindplay
Mon Dec 19, 2005 8:46 am
Forum: GFL SDK
Topic: Better resize
Replies: 11
Views: 8724

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 ...
by mindplay
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 ...
by mindplay
Thu Dec 08, 2005 12:23 pm
Forum: GFL SDK
Topic: transparent GIF problem
Replies: 6
Views: 3729

Yes, the edge pixels are not full-intensity red - I also don't want those masked out, so that's not a problem. But look at the code:

Pic.MaskColor = Pic.GetColorAt(0,0)

The color at 0,0 is the background color, WHITE, FFFFFF ... not red.

So white should be masked out - not red.

But it doesn't ...
by mindplay
Thu Dec 08, 2005 10:34 am
Forum: GFL SDK
Topic: Better resize
Replies: 11
Views: 8724

i'll be on the lookout for that, then - thanks :)
by mindplay
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 ...
by mindplay
Thu Dec 08, 2005 8:31 am
Forum: GFL SDK
Topic: Better resize
Replies: 11
Views: 8724

on september 27, you said you were going to add it - but the last release (v2.40) is dated july 5th.

so the feature was already there? it's not documented - how does it work?
by mindplay
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 ...
by mindplay
Wed Dec 07, 2005 1:08 pm
Forum: GFL SDK
Topic: transparent GIF problem
Replies: 6
Views: 3729

Anybody else experienced this problem? Anyone know the cause, or know if there's any way to work around it?
by mindplay
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
by mindplay
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 ...
by mindplay
Mon Dec 05, 2005 2:34 pm
Forum: GFL SDK
Topic: Better resize
Replies: 11
Views: 8724

Are you adding Lanczos3 then?

just wondering :)
by mindplay
Tue Sep 27, 2005 2:51 pm
Forum: GFL SDK
Topic: Better resize
Replies: 11
Views: 8724

here is a quick test, including the source picture for the thumbnails.

this may be a somewhat subjective matter, but if you look closely, I think you will see that the straight GFLAx.Resize is somewhat blurred and less detailed than the other two...

here's another idea: a designated "thumbnail ...
by mindplay
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 ...
by mindplay
Tue Sep 27, 2005 9:29 am
Forum: GFL SDK
Topic: Merging two images (ASP)
Replies: 10
Views: 7355

oh, and here's the corrected code for placing the "logo.png" in the lower-right corner, on top of the image.


With ctrl
.EnableLZW = TRUE

.LoadBitmap Path & "\logo.png"
LogoW = .Width
LogoH = .Height

.LoadBitmap File
.DrawImage Path & "\logo.png", .Width-LogoW, .Height-LogoH ...
by mindplay
Tue Sep 27, 2005 9:24 am
Forum: GFL SDK
Topic: Merging two images (ASP)
Replies: 10
Views: 7355

that works, awesome! thanks! :)