Re: Upload Images

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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







.



Relevant Pages

  • Re: Memory Leak on Window Media Encoder 9
    ... single WMEncoder object per source encode (per source file) and calling ... adding about 150 source files to the encoder. ... How much do you now about memory allocation and garbage collection in ...
    (microsoft.public.windowsmedia.encoder)
  • Re: Memory Leak on Window Media Encoder 9
    ... "Ollie Riches" wrote: ... adding about 150 source files to the encoder. ... How much do you now about memory allocation and garbage collection in ... continue encoding the next source. ...
    (microsoft.public.windowsmedia.encoder)
  • Re: Memory Usage whist looping file sources
    ... What are you using to watch the memory? ... single techique. ... Open the Batcher utility (encoder sdk sample) ... > generated when changing source groups to check that I am encoding the ...
    (microsoft.public.windowsmedia.encoder)
  • Re: Queston about the word
    ... word-addressed machines where storage was made up of chunks larger that ... term has a well-defined meaning. ... it does not mean much more than "some unit of memory" though ... You can't say without knowing the address structure and the word size. ...
    (comp.unix.programmer)
  • Re: Convert image to PCX
    ... pixel information in memory. ... the information in that format you can just pass the image to the encoder. ... >> Find great Windows Forms articles in Windows Forms Tips and Tricks ...
    (microsoft.public.dotnet.framework.drawing)