Reducing an Image object

I

Ike

I have an Image object whose size I cannot know until runtime. However, for
however big the image object is (from reading it;s data in from a local
file) I need to reduce it;s size to 64k maximum.

Any idas on how best to accomplish this? Thanks, Ike
 
A

Andrew Thompson

I have an Image object whose size I cannot know until runtime. However, for
however big the image object is (from reading it;s data in from a local
file) I need to reduce it;s size to 64k maximum.

Giving a maximum image size in Kb
is rather counter-intuitive.

People usually think/talk in terms of
'maximum size - 1600x1200', or '5M Pixel'
or such.

If you can rework your thinking to that,
it becomes much easier.

Note that you will probably be able to
guesstimate how big in WxH an image it
takes to stick within your 'Kb' limit,
though it is harder for things like .jpg's
which can vary wildly depending on the
'smoothness' of colors in the image,
other formats are generally more predictable.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top