Skip to content

lanceman2/webimageviewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webimageviewer

Scripts for viewing images with thumbnails in an HTML browser.

Makes thumbnail images, and HTML files.

----------------------------------------------
         Example on Debian desktop
----------------------------------------------

sudo apt-get install ruby-rmagick yui-compressor

# Get the directory that this file is in
srcdir="$PWD"
cd $srcdir


rm -rf ~/tmp/webimageviewer_test
mkdir -p ~/tmp/webimageviewer_test

# copy some images to webimageviewer_test/
# In my case this copied 12 images.
cp /usr/share/images/desktop-base/*.png ~/tmp/webimageviewer_test
cp $srcdir/MkThumbnails.jsp ~/tmp/webimageviewer_test/MkThumbnails.js

# MkThumbnails.rb uses relative path like URLs do
cd ~/tmp/webimageviewer_test/
# To see the script help
$srcdir/MkThumbnails.rb | less

# example to generate HTML and thumbnails
$srcdir/MkThumbnails.rb --number-next 1 --javascript-src MkThumbnails.js index.html .

firefox index.html

# That's it!  Now play your own way.

About

JavaScript image viewer and ruby code to generate thumbnail images, HTML image index pages for image files.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors