1

Any open source tools for website thumbnail creation on the fly or for storing on server side??

Most of them provide limited no of thumbnail requests per month in free mode. Are there any services/ tools that're completely open source ?

Rajat Gupta
  • 25,853
  • 63
  • 179
  • 294
  • I posted something like this: http://stackoverflow.com/questions/5864629/generate-thumbnails-images-from-a-url/7016244#7016244 – Dan Aug 10 '11 at 21:01

2 Answers2

1

use wkhtmltoimage part of the wkhtmltopdf project (download the wkhtmltox install to get the wkhtmltoimage executable for linux/windows)

it's a command line tool, if you search you'll find lots of hits for wkhtmltopdf the syntax is similar wkhtmltoimage [url] [filename]

example: wkhtmltoimage http://stackoverflow.com c:\so.jpg

someone's implemented the pdf one in ASP.NET: Calling wkhtmltopdf to generate PDF from HTML

Community
  • 1
  • 1
MikeM
  • 27,227
  • 4
  • 64
  • 80
0

wkhtmltopdf does the trick:

$ wkhtmltoimage http://stackoverflow.com so.png

You can convert image formats on a Linux box:

$ convert -sample 100x75 so.png small-so.png

Or you can script it for all the images:

#!/bin/bash
for i in *.png
do
  convert -sample 100x75 "$i" small-"$i"
done
dotancohen
  • 30,064
  • 36
  • 138
  • 197