Reducing File (jpg) size in asp

This is a discussion on "Reducing File (jpg) size in asp" within the Classic ASP section. This forum, and the thread "Reducing File (jpg) size in asp are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > Classic ASP

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Feb 25th, 2007, 11:29
ish ish is offline
New Member
Join Date: Feb 2007
Location: uk
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Question Reducing File (jpg) size in asp

Hi m8

I am having a little problem with my asp page. I have a browser form, where user select graphic from their local drive and upload to web server. I want to control the size, width and height of the jpg file.

So what I like to do in my upload code is to reduce file (jgp) size to around 15KB.

Please could you help me.

I would appreciate your advice or sample code for my asp page, please

many thank
Reply With Quote

  #2 (permalink)  
Old Aug 1st, 2007, 08:47
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,608
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Re: Reducing File (jpg) size in asp

I found this for your refferece, but dont know if it's helpful.

Limiting the upload file size
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
Reply With Quote
  #3 (permalink)  
Old Aug 1st, 2007, 11:44
spinal007's Avatar
Moderator
Join Date: Mar 2004
Location: Good Ol'London
Age: 23
Posts: 1,651
Blog Entries: 1
Thanks: 0
Thanked 4 Times in 4 Posts
Re: Reducing File (jpg) size in asp

You can't control the file on the visitor's machine, so you'll have to upload it.
Once it's uploaded:
- save it in a temp folder
- resize it
- save the resized (small) image
- delete the temp (big) image

Image resizing can only normally be achieve with components, so check what your host has to offer, otherwise, you can use Crazy Beaver's Imager DLL. The Crazy Beaver site has gone off-line but there are still a few copies of the code out there...
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
Reply With Quote
Reply

Tags
asp, size

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Best way to reduce file size of .jpg lmc148 Graphics and 3D 12 Jan 17th, 2008 07:43
Image file size help danny322 Graphics and 3D 6 Nov 9th, 2007 11:20
increasing file size begeiste PHP Forum 3 Sep 30th, 2007 05:33
large php file size geoffmuskett PHP Forum 5 Jun 20th, 2007 14:54
Need help with E-Card file size amber Graphics and 3D 7 Jun 19th, 2007 06:24


All times are GMT. The time now is 09:58.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43