Image upload - possible to compress before uploading?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nicky77
    New Member
    • Aug 2007
    • 25

    Image upload - possible to compress before uploading?

    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.
  • printedgoods
    New Member
    • Nov 2007
    • 9

    #2
    Originally posted by nicky77
    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.co m
    Last edited by PsychoCoder; Nov 24 '12, 09:05 PM. Reason: Links removed: Spam rules

    Comment

    • brunobar79
      New Member
      • Nov 2012
      • 1

      #3
      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.
      Last edited by PsychoCoder; Nov 24 '12, 09:04 PM. Reason: Links removed: Spam rules

      Comment

      Working...