-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automate image cropping of scanned images #14
Comments
The following command works with the script & "C:\Program Files\GIMP 2\bin\gimp-2.10.exe" -i -b '(script_fu_BatchDivideScannedIm
ages \"C:\\Users\\schild\\Desktop\\test\" 0 FALSE 0 10 TRUE TRUE 25 100 TRUE \"#FFFFFF\" 0 25 25 TRUE \"C:\\Users\\sc
hild\\Desktop\\test\" 0 0.8 \"Crop\" 1)' To make it work with
|
CLI params:
|
added in f67f1bc |
$image = new Imagick($_FILES['image_data']['tmp_name']); |
May be use a JS lib? http://camanjs.com/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There will be cases in which multiple old photos are scanned as one image file. Maybe it's possible to detect and extract every single image and save it as own file.
GIMP and ImageMagick offer such functionality, but it's not obvious how to make it work with Node.js.
Some ideas and links:
A) ImageMagick
http://www.fmwconcepts.com/imagemagick/multicrop/index.php
http://www.fmwconcepts.com/imagemagick/index.php => Windows users
https://stackoverflow.com/questions/48557612/programmatically-divide-scanned-images-into-separate-images
Algorithm
http://www.sethanil.com/exploring-software/49-image_cropping
https://opensourceforu.com/2015/03/automate-the-cropping-of-photos-from-scanned-album-pages/
PHP Manual
http://php.net/manual/de/book.imagick.php
B) Scan Software
https://autosplitter.com/
C) GIMP Plugin
http://francoismalan.com/2013/01/how-to-batch-separate-crop-multiple-scanned-photos/
GIMP CLI
GIMP CLI Batch Mode
The text was updated successfully, but these errors were encountered: