Page 1 of 1
Resize image on upload
Posted: Mon Mar 23, 2009 9:54 pm
by jojje
Are there anyone that could help me how to change the code so that all uploaded images is automatic resized to a width of 800px? what file handles the upload?
As I understand it does s9y creates a thumb and leaves the uploaded image untouched.
The reason for this is today's cameras with 10+ megapixels and large files. I take several 100 of photos each month and it takes to long time to open them in a editor to resize before upload.
Re: Resize image on upload
Posted: Tue Mar 24, 2009 12:19 am
by stm999999999
hm, try something like Watermark
http://www.pmnet.info/watermark/index.p ... elang=true
Why waterMark V2? Not only because it's for free! waterMark V2 offers you many more features than comparable software for money. waterMark V2 guides your images out of your digicam into the internet: It reads the images in, resizes them, stamps a watermark on them and renames them logically after your user-defined pattern.
With Watermark you can batch-resize your images and so you do not have to upload your big images.
Re: Resize image on upload
Posted: Fri Mar 27, 2009 7:44 pm
by jojje
hmm watermark could make it but that is the extra step I don't want to do. A script for Photoshop could also resize the pics...
I want the resize of the picture to be handled by s9y when I decide which pic to use and uploads it.
Re: Resize image on upload
Posted: Fri Mar 27, 2009 8:18 pm
by stm999999999
You do not have problem to upload such big image data through your internet connection? no problems with Max. file upload size on your server?
Re: Resize image on upload
Posted: Sun Mar 29, 2009 3:18 pm
by jojje
I have 100M as limit for upload_max_filesize
Re: Resize image on upload
Posted: Sun Mar 29, 2009 3:49 pm
by stm999999999
hm, and "Location: Sweden", you have very fast internet connections, haven't you?
So in fact you would benefit from such a function right in s9y. But AFAIK there is nothing like this resp. I do not know it.
But the core functionality should be in the code right now, so perhaps garvin can port the image-size-reduce-function for the thumbnails to the image itself?
Re: Resize image on upload
Posted: Mon Mar 30, 2009 11:40 am
by garvinhicking
Hi!
I think the serendipity_event_imageselectorplus plugin has an option to create other resize image variantes for a picture. Sadly I'm lacking the time to inspect this in detail, but this might get you on track?
There is a plugin event that can be used by custom plugisn to hook into the image uploading, and at that point simply resize the target image location...
Regards,
Garvin