Yup, this is precisely what I'm looking for - it's the whole automatic 
browser that appears to be the gap in info I've looked at.

I imagine the server needs to be running Windows or X-Windows if Linux?

----- Original Message ----- 
From: "Michael Adams" <[email protected]>
To: <[email protected]>
Sent: Friday, February 27, 2009 3:58 PM
Subject: [phpug] Re: HTML (URL) to Image


>
>
> This would be cool as a standalone as well Dave.
>
> On Fri, 27 Feb 2009 15:38:33 +1300
> Came this utterance formulated by Dave Lane to my mailbox:
>
>>
>> To clarify, our module has the following components:
>> On the server side, a web service interface for headless browser (FF
>> 3) instance which takes chromeless screenshots without user
>> interaction and on the client side, you just put a URL like
>> http://webshot.server/?site=http://site.to.screenshot/plus/path/if/desired&scale=0.5
>>  and it returns either a placeholder "Screenshot coming soon!" image
>>  if
>> the screenshot has only just been requested (the server queues the
>> screenshot requests and processes them as fast as possible) or the
>> scaled image if it's previously been screenshot.
>>
>> Cheers,
>>
>> Dave
>>
>> Dave Lane wrote:
>> > For what it's worth, we (Egressive) have written a Drupal module
>> > which provides and serves up "webshots" - for examples of use (the
>> > module is still fairly alpha), see http://egressive.com/drupal_sites
>> > or http://travelbookmarking.com
>> >
>> > When time allows, I'll be improving the code with the goal of
>> > getting a client-server pair of modules up onto Drupal.org for
>> > general use.
>> >
>> > Cheers,
>> >
>> > Dave
>> >
>> > Aaron Cooper wrote:
>> >> Howdy all,
>> >>
>> >> I really don't think this will be possible with PHP without some
>> >> server-side software additions but just checking to see if there
>> >are> other methods or if someone has done something similar.
>> >>
>> >> We have a email marketing system, where we load HTML email
>> >templates> into customer accounts. This HTML code is stored in the DB
>> >and loaded> into a WYSIWYG editor for each mail out.
>> >>
>> >> At the moment, we take screenshots of parsed output for this HTML,
>> >> resize in PS, and load into the system so that our users can see a
>> >> thumbnail snapshot of their HTML template when they are selecting
>> >which> template to use for a campaign.
>> >>
>> >> It's getting to the stage that we are adding a template a day and
>> >this> is becoming a bit tedious, and now have a need to automate the
>> >thumbnail> generation process if possible.
>> >>
>> >> The ideal situation is for us to:
>> >> 1. Click a button to generate thumbnail after loading the template
>> >HTML> 2. A script (or external service) is given the URL to the HTML
>> >output> page on the server, with the template ID. This will simply
>> >output and> render the HTML in the DB.
>> >> 3. Script takes snapshot of HTML
>> >> 4. Resize snapshot to suit interface (250x200)
>> >> 5. Saves thumbnail to a statically named directory, with a
>> >dynamically> named filename.
>> >>
>> >> I assume that this is going to require a browser on the server.
>> >We're> running on Debian here (shell only), and I'm no *Nix guru
>> >either.>
>> >> Thoughts?
>> >>
>> >> Aaron
>> >>
>> >
>>
>> -- 
>> Dave Lane = Egressive Ltd = [email protected] = m: +64 21 229 8147
>> p: +64 3 9633733 = Linux: it just tastes better = nosoftwarepatents
>> http://egressive.com ==== we only use open standards: http://w3.org
>> Effusion Group Founding Member =========== http://effusiongroup.com
>>
>>
>
> -- 
> Michael
>
> All shall be well, and all shall be well, and all manner of things shall
> be well
>
> - Julian of Norwich 1342 - 1416
>
> > 


--~--~---------~--~----~------------~-------~--~----~
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]
-~----------~----~----~----~------~----~------~--~---

Reply via email to