User:Artemis gryllaki/PrototypingIII: Difference between revisions

From XPUB & Lens-Based wiki
No edit summary
No edit summary
Line 20: Line 20:
===Montages===
===Montages===
[[File:montage-try.png | 600px | thumbnail | left ]]
[[File:montage-try.png | 600px | thumbnail | left ]]
[[File:montage-try2.png | 600px | left ]]
[[File:montage-try3.png | 600px | thumbnail | left ]]
<br><br>
<br><br>



Revision as of 21:12, 8 July 2019

Publishing an “image gallery”

Imagemagick’s suite of tools includes montage which is quite flexible and useful for making a quick overview page of image.

  • mogrify
  • identify
  • convert
  • Sizing down a bunch of images

Warning: MOGRIFY MODIES THE IMAGES – ERASING THE ORIGINAL – make a copy of the images before you do this!!!

mogrify -resize 1024x *.JPG
Fixing the orientation of images
mogrify -auto-orient *.JPG
Using Montage
montage -label "%f" *.JPG \

   -shadow 
-geometry 1000x1000+100+100
-montage.caption.jpg

Using pdftk to put things together

Montages

Montage-try.png
Montage-try3.png



OCR

tesseract:
In command line: tesseract nameofpicture.png outputbase

Scanning a book page


Output: character recognition with tesseract-ocr / styled with javascript


Screenshot2.png


Screenshot3.png