Picture Thumbnail quality

Posted By Jmaie Tue 30 Jun 2015
Add to Favorites1
Author Message
Jmaie
 Posted Tue 30 Jun 2015
Supreme Being

Supreme Being - (4,207 reputation)Supreme Being - (4,207 reputation)Supreme Being - (4,207 reputation)Supreme Being - (4,207 reputation)Supreme Being - (4,207 reputation)Supreme Being - (4,207 reputation)Supreme Being - (4,207 reputation)Supreme Being - (4,207 reputation)Supreme Being - (4,207 reputation)

Group: Forum Members
Last Active: Thu 2 Jul 2015
Posts: 4, Visits: 10
Hiya,

From going through the forms it has become clear to me that the store generates a thumbnail as and when it's needed which is cool I guess but how can I increase the quality of said thumbnails? To be honest the other thumbnails look good enough but there's just one that is irking me and my colleagues to the extent that I'm making this post.

Any help would be appreciated.

Thanks Smile
Reply
metalmania
 Posted Tue 30 Jun 2015
Supreme Being

Supreme Being - (39,164 reputation)Supreme Being - (39,164 reputation)Supreme Being - (39,164 reputation)Supreme Being - (39,164 reputation)Supreme Being - (39,164 reputation)Supreme Being - (39,164 reputation)Supreme Being - (39,164 reputation)Supreme Being - (39,164 reputation)Supreme Being - (39,164 reputation)

Group: Forum Members
Last Active: Tue 21 Jun 2016
Posts: 36, Visits: 165
Yeah, I see what you mean...it looks like jpeg artifacts problem you have with that image, which doesn't lend itself to JPG format.
You may have noticed that image.aspx always output a jpg file, regardless of what you provided. You can see the code commented out starting at around line 168.
In this example, you could try providing a .gif original image, then uncomment the code to allow for outputting a .gif OR .jpg
e.g.
Select Case FInfo.Extension.ToUpper
'leave the png commented out
' Case ".PNG"
' bmpImage.Save(Response.OutputStream, ImageFormat.Png)
Case ".GIF"
bmpImage.Save(Response.OutputStream, ImageFormat.Gif)
Case Else
bmpImage.Save(Response.OutputStream, ImageFormat.Jpeg)
End Select
'comment out this next line
'bmpImage.Save(Response.OutputStream, ImageFormat.Jpeg)

[Edit] After a bit more research, I don't think the above is going to help - GIF's don't seem to be handled too well. The only other thing I can suggest is using a PNG and changing the above to save a source PNG back as a PNG, however from what I've read you have to be careful to use 24bppRGB format PNG files, not indexed pixel format, otherwise it would fail...
https://msdn.microsoft.com/en-us/library/system.drawing.graphics.fromimage.aspx
Tue 30 Jun 2015 by metalmania


Similar Topics

Expand / Collapse

Reading This Topic

Expand / Collapse

Back To Top