473,494 Members | 2,027 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Image upload - possible to compress before uploading?

25 New Member
Hi there,

I'm brand new to ASP (from PHP background) and i am developing some content management for a web site. I'm having a problem with the fact that I want to allow image files to be uploaded to a remote web server, as the hosting package the web site is on is IIS6 and has a default file upload size limit of 200kb. As it's a shared hosting package, the default limit cannot be changed for me, therefore I'm stuck with the problem of how to compress image files prior to uploading. I'm using a pure ASP file upload script which is working fine, apart from the size issue.

Ideally, I'd like to avoid having to ask my client to resize and compress images they wish to upload to the site, therefore if anyone has any ideas that would be much appreciated.
Nov 7 '07 #1
2 4001
printedgoods
9 New Member
Hi there,

I'm brand new to ASP (from PHP background) and i am developing some content management for a web site. I'm having a problem with the fact that I want to allow image files to be uploaded to a remote web server, as the hosting package the web site is on is IIS6 and has a default file upload size limit of 200kb. As it's a shared hosting package, the default limit cannot be changed for me, therefore I'm stuck with the problem of how to compress image files prior to uploading. I'm using a pure ASP file upload script which is working fine, apart from the size issue.

Ideally, I'd like to avoid having to ask my client to resize and compress images they wish to upload to the site, therefore if anyone has any ideas that would be much appreciated.
Does the hosting company offer ASPjpeg? If not ask is you could purchase it and they load it. This is the best serverside image resizing component i have seen. It supports multiple image formats and pretty inexpensive.



You could also (depending on the hosting service) have the client Zip the files and then unzip on the server, bypassing the file size limit, if permissions are correctly set.



Otherwise you could link to a free online image editor like this one:

Its Photoshop on the web.

But i would HIGHLY suggesst ASPjpeg as the server component of choice. Puts all the control in your hands not the clients.


Jason
Printedgoods.com
May 28 '08 #2
brunobar79
1 New Member
Hi, I just developed a javascript library called JIC to solve that problem. It allows you to compress jpg and png on the client side 100% with javascript and no external libraries required!

You can try the demo here :

The backend demo is written in php, but I guess it will be very easy to handle it with ASP since it is a very basic upload script.



Hope you like it.
Nov 23 '12 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
11735
by: dave | last post by:
Hello there, I am at my wit's end ! I have used the following script succesfully to upload an image to my web space. But what I really want to be able to do is to update an existing record in a...
1
1161
by: Pall Olafss | last post by:
Houston we have a problem Im trying to upload an image with System.Web.UI.HtmlControls.HtmlInputFile. If I upload with aspx file the upload runs but if I put it in a usercontrol my upload...
0
1784
by: doffer | last post by:
I want to make a portfoliosystem where user can register and get their own portfolio... I've started the developer work, but I'm stuck on the image upload part... I'm experiencing some problems...
2
4149
by: Faree | last post by:
Hi, I am a PHP Developer.can any one help me on image upload and display of that image.what i want is uploading an image to a directory ,displaying of that image as a thumbnail.when i...
3
1511
by: peterf | last post by:
Posted in alt.comp.lang.php before I saw how much more active this group is... Hope someone can help. I am new to this group and needing a little bit of guidance. First off I need to say that...
2
5914
by: prakharv | last post by:
Hi All, Below is the code which I am using to upload a jpeg file to the server. But the problem I am facing is that it is not copying the entire contents of the image file to the webserver and it...
10
7037
by: mishrarajesh44 | last post by:
hii all, I am facing a problem currently.. i have a script for image uploading and resizing.. the image uploading takes place properly for every size images.. but, the resizing works for...
2
1883
n8kindt
by: n8kindt | last post by:
i was wondering if it would be practical to upload a large image and have php compress it into a thumbnail/medium size when called upon? i'm thinking it might be too much of a load on the server and...
1
4853
by: chennaibala | last post by:
can any one send me mutiple image upload program and save the file name with extension in mysql table.we must cheak uploaded file type like bmp or any image file while uploading. i develop...
0
6989
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7157
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7195
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6873
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5453
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4889
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3088
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
644
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
285
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.