Export Snapshot and JPEG problems
Scott Rossi
scott at tactilemedia.com
Thu Mar 12 12:59:18 EDT 2009
Recently, Ian McKnight wrote:
> I want to export an image of the finished group and have used these
> commands to produce an image of the axes as seen on screen.
>
> export snapshot from grp theDefaultGrpName to file theFileName as PNG
> export snapshot from grp theDefaultGrpName to file theFileName as GIF
>
> However, try as I might, I can't get this version to work
>
> export snapshot from grp theDefaultGrpName to file theFileName as JPEG
>
> because the exported image is displayed with a black background.
The issue you're probably running into is that 1) when exporting a snapshot
from a group, Rev will capture the transparency that is created by multiple
objects being surrounded by empty space and 2) JPEG does not inherently
support transparency. I would guess that placing some kind of background in
the group behind your graph (a graphic or image) would be enough to solve
the problem. Alternatively, you could try the following, which should
capture the portion of the card that is behind the group:
export snapshot from rect (rect of grp theDefaultGrpName) of this cd \
to file theFileName as JPEG
Hope this helps.
Regards,
Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
More information about the use-livecode
mailing list