> I'm looking for a CF extension (or other), which will allow
> me to programmatically capture screen shots of a website and
> save it as a jpg. You know, something as simple as feeding
> it a url, and having it save a jpeg on the server?
If you have CF8, you can actually do this using CFDOCUMENT, in a roundabout
way, using CFDOCUMENTSECTION to point to a URL. This will give you a PDF
from which you can easily extract jpgs for each page. Here's an example
straight from the "Moving to ColdFusion 8" course authored by Fig Leaf
Software:
<cfset aR = arraynew(1)>
<cfset ar[1] = {title =
'Rustico',url='http://www.rusticorestaurant.com'}>
<cfset ar[2] = {title = 'Vermillion',
url='http://www.vermilionrestaurant.com'}>
<cfset ar[3] = {title = 'Tallula',
url='http://tallularestaurant.com/'}>
<!--- fetch URLs into PDF --->
<cfdocument format="pdf"
name="PDFsistersites"
bookmark="true"
filename="PDFSisterSites.pdf"
overwrite="true">
<cfloop array="#ar#" index="thisrestaurant">
<cfdocumentsection src="#thisrestaurant.url#" />
</cfloop>
</cfdocument>
<!--- use <cfpdf> to create thumbnails --->
<cfpdf action="thumbnail"
source="PDFSisterSites.pdf"
pages="1-3"
destination="images"
format="jpg"
overwrite="true"
resolution="high"
scale="28"
imageprefix="sisters">
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
Fig Leaf Training: Adobe/Google/Paperthin Certified Partners
http://training.figleaf.com/
WebManiacs 2008: the ultimate conference for CF/Flex/AIR developers!
http://www.webmaniacsconference.com/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:304665
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4