rem Posted December 18, 2006 Share Posted December 18, 2006 Hello,I'm having a nightmare here trying to figure out how could I bulk resize pictures but before uploading on server. For example if a user wants to upload on the server 10 imgs, 1M each, my script should resize them to 100 x 100 before! How could i do that? ???Thanks a lot! Link to comment https://forums.phpfreaks.com/topic/31162-bulk-resize-pictures-before-upload/ Share on other sites More sharing options...
trq Posted December 18, 2006 Share Posted December 18, 2006 You can't do anything with the images until they are on your server. Simple. Link to comment https://forums.phpfreaks.com/topic/31162-bulk-resize-pictures-before-upload/#findComment-143988 Share on other sites More sharing options...
matto Posted December 18, 2006 Share Posted December 18, 2006 You can do that using the imagecopyresized() function - requires PHP to be complied with GD[url=http://nz2.php.net/manual/en/function.imagecopyresized.php]http://nz2.php.net/manual/en/function.imagecopyresized.php[/url]You could apply the above function to images that have been uploaded to the server..... Link to comment https://forums.phpfreaks.com/topic/31162-bulk-resize-pictures-before-upload/#findComment-143991 Share on other sites More sharing options...
kenrbnsn Posted December 18, 2006 Share Posted December 18, 2006 But the OP wants to do the resize [b]before[/b] the files are uploaded, not after. As [b]thorpe[/b] says, this can't be done with PHP.Ken Link to comment https://forums.phpfreaks.com/topic/31162-bulk-resize-pictures-before-upload/#findComment-143995 Share on other sites More sharing options...
sanfly Posted December 18, 2006 Share Posted December 18, 2006 Unless you have a server set up for test scripts on your home computer, then you can write a script and resize them on your local machine, then upload them....... Link to comment https://forums.phpfreaks.com/topic/31162-bulk-resize-pictures-before-upload/#findComment-143997 Share on other sites More sharing options...
trq Posted December 18, 2006 Share Posted December 18, 2006 [quote]Unless you have a server set up for test scripts on your home computer, then you can write a script and resize them on your local machine, then upload them.......[/quote]Once again, someone who doesn't read the questions. Link to comment https://forums.phpfreaks.com/topic/31162-bulk-resize-pictures-before-upload/#findComment-144003 Share on other sites More sharing options...
matto Posted December 18, 2006 Share Posted December 18, 2006 Looking at the text in the original post it's rather hard to decipher what rem is trying to do.[quote]For example if a user wants to upload on the server 10 imgs, 1M each, my script should resize them to 100 x 100 before!...[/quote]The message I get from this is rem would like the images resized when they are uploaded. I realise the subject and content of this thread contradict each other...... :) Link to comment https://forums.phpfreaks.com/topic/31162-bulk-resize-pictures-before-upload/#findComment-144007 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.