01-12-2014, 10:58 PM
Drag 'n drop would require html5 which is a bit beyond my abilities at the moment. However I think this does what you want:
http://www.jermungandr.net/experiments/tsr-cropper.rar
How to use:
- Upload images or a folder containing images to the "original" folder.
- Open "index.php". Alter any of the default settings for each image as needed, then hit refresh to apply changes.
- Altered files will be saved in the "result" folder.
Here is a demo:
http://www.jermungandr.net/experiments/t.../index.php
Features:
- By default it tries to apply a transparency based on the color in position (0,0). This can be turned off if it is causing problems.
- Auto-Cropping attempts to trim empty pixels around the image in order to decrease the size of the file. This is on by default.
- If the image is less than half the size of the maximum 148x125 allowed file size, it offers the option to resize the image to fill more space, to a maximum of 4 times.
- If the image size is greater than the maximum allowed size, instead of failing the file altogether it attempts to simply crop the image. In these cases it will offer you a chance to decide how the image will be positioned.
I wish I could make you a java console or something so you can do this all right on your computer without involving a browser, but unfortunately all I know is web coding, so I hope this will be enough.
http://www.jermungandr.net/experiments/tsr-cropper.rar
How to use:
- Upload images or a folder containing images to the "original" folder.
- Open "index.php". Alter any of the default settings for each image as needed, then hit refresh to apply changes.
- Altered files will be saved in the "result" folder.
Here is a demo:
http://www.jermungandr.net/experiments/t.../index.php
Features:
- By default it tries to apply a transparency based on the color in position (0,0). This can be turned off if it is causing problems.
- Auto-Cropping attempts to trim empty pixels around the image in order to decrease the size of the file. This is on by default.
- If the image is less than half the size of the maximum 148x125 allowed file size, it offers the option to resize the image to fill more space, to a maximum of 4 times.
- If the image size is greater than the maximum allowed size, instead of failing the file altogether it attempts to simply crop the image. In these cases it will offer you a chance to decide how the image will be positioned.
I wish I could make you a java console or something so you can do this all right on your computer without involving a browser, but unfortunately all I know is web coding, so I hope this will be enough.