Ugoweb Posted March 2, 2009 Share Posted March 2, 2009 Hi all! Please, I have had problems designing a web page that allows for picture upload. Actually, I want the picture to be compressed before it is uploaded to my web space so that it does not occupy much space and that uploading can be faster. Please, I need a description on how to write a script that compresses picture to a small size before uploading. Please reply. Thanks. Link to comment https://forums.phpfreaks.com/topic/147613-picture-compression/ Share on other sites More sharing options...
genericnumber1 Posted March 2, 2009 Share Posted March 2, 2009 A server-side language like php can't compress an image BEFORE upload, only after upload. Link to comment https://forums.phpfreaks.com/topic/147613-picture-compression/#findComment-774911 Share on other sites More sharing options...
PFMaBiSmAd Posted March 2, 2009 Share Posted March 2, 2009 The image formats jpg, gif, and png are already a compressed data format. Running them through addition compression (zip/gzip...) only reduces the size by at most 1-2%. Link to comment https://forums.phpfreaks.com/topic/147613-picture-compression/#findComment-774922 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.