Re: Upload Images
- From: "SStory" <nospam@xxxxxxxxxx>
- Date: Mon, 20 Mar 2006 07:58:16 -0600
I guess as mentioned by tommaso, you can set the quality on the encoder
properties:
http://www.bobpowell.net/jpeg_compression.htm
but for knowing the reduced size ahead of time, I'm not sure. You could
save it to a memory stream--provided it isn't to big, in order to quickly
know the size ahead of time. I'm sure that Photoshop probably does save to
temp, or its scratch space or to memory to get the sizes.
HTH,
Shane
"Tj2007_1" <Tj20071@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:F76F529F-79D2-4446-8C78-76C5F3CBEFA6@xxxxxxxxxxxxxxxx
Hey Thanks,
Could you please provide some code If possible. I tried to compress file
but
its not compress in to specific size.
Thanks Again
Tj
"SStory" wrote:
take the file, save it as a JPG or PNG with compression, then delete the
original.
HTH,
Shane
"Tj2007_1" <Tj20071@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:1F7451E2-F5FE-4997-8A5F-9A2F483BAEC5@xxxxxxxxxxxxxxxx
I am creating aspx file to upload file.
I allow to user to upload file If that file size is less then 200KB and
after that I want to srink that file up to 50KB (1/4 of original file).
And
then store in to database.
Thanks
Tj
.
- References:
- Re: Upload Images
- From: SStory
- Re: Upload Images
- Prev by Date: Re: How can I determine the type of an image?
- Next by Date: Re: opacity vs. alpha
- Previous by thread: Re: Upload Images
- Next by thread: Re: Upload Images
- Index(es):
Relevant Pages
|