Open source/free tools for Website thumbnails creation [closed]
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
开发者_C百科 Improve this questionAny 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 ?
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
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
精彩评论