News for hackers. Stuff that matters.
Re:Clever screenshot app turns your desktop into Photoshop l... by yan on Wednesday January 21, 2009 @02:26PM (#443658)
This is actually brilliant. Is wrapping a web rendering engine and exporting the web page as a PSD file the next step?
Re:Clever screenshot app turns your desktop into Photoshop l... by andr on Wednesday January 21, 2009 @03:00PM (#443711)
I'm thinking it would be the easiest to do this via DOM manipulation. Sequentially set visibility: hidden to all elements except one, take screenshot, continue on to the next one. Not the most elegant solution, but it's quick and you don't need to understand WebKit or Gecko's source.
Re:Clever screenshot app turns your desktop into Photoshop l... by trapper on Wednesday January 21, 2009 @05:55PM (#443974)
That would be seriously cool. Imagine one-click then rearranging a site on the fly.
Re:Clever screenshot app turns your desktop into Photoshop l... by tlrobinson on Wednesday January 21, 2009 @06:12PM (#443992)
I wrote a bookmarklet that would capture all mouse events and let you rearrange elements on the page... I'll see if I can find it.

edit: I can't seem to find it at the moment, but it was fairly simple. Intercept all mouse events, determine the clicked element, record the initial position, start dragging, etc. I think it did some fanciness for non-absolutely positioned or non-block elements too.

Re:Clever screenshot app turns your desktop into Photoshop l... by picnichouse on Wednesday January 21, 2009 @04:07PM (#443810)
I agree - not a lot of utility in this (for me at least), but I'd pay $100 for something that did this for webpages.
Re:Clever screenshot app turns your desktop into Photoshop l... by tholder on Wednesday January 21, 2009 @05:20PM (#443916)
is the ScreenGrab! Firefox extension no good?
Re:Clever screenshot app turns your desktop into Photoshop l... by showerst on Wednesday January 21, 2009 @06:11PM (#443991)
The difference between this and various screen shot addons is that it outputs each piece as a photoshop layer, so they can be easily hidden/moved around.

If you take a screen shot then load it into photoshop and move around a window, you'll get a big white box where the window was, because the screenshot app didn't record any information 'underneath' the window.

Re:Clever screenshot app turns your desktop into Photoshop l... by fizx on Wednesday January 21, 2009 @05:10PM (#443900)
why?
Re:Clever screenshot app turns your desktop into Photoshop l... by kajecounterhack on Wednesday January 21, 2009 @10:31PM (#444300)
Take/learn from designs.

Though theoretically it could be used to steal designs also... I mean that already happens today but it'd be easier.

Re:Clever screenshot app turns your desktop into Photoshop l... by showerst on Wednesday January 21, 2009 @10:04PM (#444262)
I just spent a few hours looking into doing this, and all I can say is kudos to them for decoding the psd file format =P.

None of the big graphics libraries (GD, Image Magick, etc) support writing of layered PSD files (Imagick can read them, and export non-layered's, but that's it as far as I can tell.), and the format specs require you to sign an NDA/non-compete with Adobe.

Taking the screenshots is doable if a bit of a pain, but short of reverse engineering the psd format, the second part seems to be a roadblock. Shame, i'd use this too =P.

Re:Clever screenshot app turns your desktop into Photoshop l... by asjo on Thursday January 22, 2009 @04:06PM (#445375)
The Gimp (http://gimp.org/) can load _and_ save PSD-files with layers, so you could probably find most of the reverse engineering already done in the code there.

While you are at it, why not just save the file in Gimp format and be done with it? :-)