Re size Delphi image to smaller size and keep the quality?
I have been looking everywhere, doing so many things, trying out so many different codes, but none of them seem to be working for me, see, what I want to do is, I have a bunch of large pictures, I am making a Delphi program, when you open the image, it re sizes the image to 180x120, simple? Well, see I can do that, easy as heck! but whenever I do it, the quality, goes down the frieken drain! like, I can see everything, but really bad looking, please, does anyone know how i can fix this problem, All i need is some code, that can take a jpg, or bitmap or whatever image, change the size of that image to 180x120, and save it without the image looking like ****! The rest I can do? Thanks!
Atualizada:Ok I see your point... but I mean, what about Photoshop and all those things? i can resize the image to whatever, and the thing still looks good? There has to be something i can do, that can at least help the picture to not look that bad? Really appreciate the help!
Copyright © 2024 QUIZLS.COM - All rights reserved.
Answers & Comments
Verified answer
The answer is, unfortunately you're going to loose image quality whenever you re-size an image, and you can't avoid it. There are lots of methods (algorithms) that will resize images, some of the best build Histograms to pin-point the areas of detail, but even these loose quality. - Most use blurring and anti-aliasing techniques to guess the best color pixel to use during resize.
The problem is simply representing many pixels in less pixels.
For example, if you have an image 3000x3000 and you want to re-size it to 300x300 (keeping the math simple), you'll need to reduce the original image size by a factor of 10, meaning every 10x10 pixel block (100 pixels of detail) will be replaced with a single pixel, and this detail is lost. - In short, the more you scale, the more quality you loose (this is in addition to detail lost in image (Jpeg) compression).
Hope this helps...
Mystic
Delphi Resize Image
It is not possible to reduce image size and keep the quality. In any case you lose quality.