Versioner sammenlignet

Nøgle

  • Linjen blev tilføjet.
  • Denne linje blev fjernet.
  • Formatering blev ændret.

...

Tip

This Script is closely related to (hence used as part of) the:

Script for updating my Confluence Galleries (refreshPageslinking images into a Confluence page (updateGallery.sh)

Executing the script:

Kodeblok
./makeThumbs.sh height=200 startdir=/images quality=80 labelheight=10

 


Parameters:

Height

Height of the thumbnails

StartDirThe Directory to start from
QualityThe Quality of the converted image, lower value = smaller size

 


Source of the Script:

...

linenumberstrue

...

https://bitbucket.org/moseiseydk/confluence-gallery/src/1ccb4aa93b95d321c7d5c29ea776f799819bc6d0/makeThumbs.sh?at=master

Directory structure sample:

Original fileThumbnail for 200 HeightThumbnail for 800 Height
  


/data/images/MyCar/image1.jpg/data/images/MyCar/thumbs/200pxHigh/image1.jpg/data/images/MyCar/thumbs/800pxHigh/image1.jpg
  


/data/images/MyCar/Styled/image1.jpg/data/images/MyCar/Styled/thumbs/200pxHigh/image1.jpg/data/images/MyCar/Styled/thumbs/800pxHigh/image1.jpg
 
 


/data/images/MyCar/Speeding.avi/data/images/MyCar/thumbs/200pxHigh/Speeding.avi.jpg