On Thursday 30 April 2015 03:28:13 Alex Mestiashvili wrote: > On 04/28/2015 06:42 PM, Bob Proulx wrote: > > Steve Greig wrote: > >> I have about 60 large jpg files in a directory. They are almost all > >> over 2MB in size. I want to put them on the internet but wanted to > >> make a thumbnail version and a small version (about 75KB) of each > >> one so the web page does not take too long to load. > > +1 Bob's answer. Also you can speedup the process by using xargs or > parallel tool. > So if you have 4 cores on your machine you can do the job much faster: > > > for k in *.jpg ; do echo $k ; done |xargs -I{} -P4 convert -quality > 95 {} -geometry 1280 /tmp/{|}|| > > or > > || find /adir_with_pngs -name "*.png" | parallel -P4 convert -quality > > 95 {} -geometry 1280 /tmp/{.}.jpg| > > The last one will also convert png to jpg and substitute the > extensions on the fly. > The result files will end up in /tmp/.
I use jigl for that. Where you see a sceen full of thumbnails on my web page, clicking on any thumbnail brings it to about 3/4 screen size, a further click on that will give the viewer that original raw image that you can pan & tilt around in to see details. Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) Genes Web page <http://geneslinuxbox.net:6309/gene> -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/201504300615.47993.ghesk...@wdtv.com