Object is not an image when Crop command

Devin Asay devin_asay at byu.edu
Mon May 10 12:51:15 EDT 2010


On May 10, 2010, at 10:22 AM, JosepM wrote:

> 
> Hi List,
> 
> I try to crop a image with the rect of a graphic.
> 
> tObject is a graphic selected by the user.
> img "picture" is a image loaded by the user from disk
> 
> The user move the graphic over the image and crop it, but only I get "Error:
> object is not an image"??
> The graphic is irregular polygon, I mean that is not a rectangle or a box..
> 
> The code:
> 
> put the rect of the selectedobject into tObject
> crop img "picture" to rect tObject
> 
> Any idea? :)

Josep,

Are your images referenced to outside image data? The Rev Dictionary says this:  The crop command cannot be used on a referenced image. Doing so will cause an execution error.

Regards,
Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University




More information about the use-livecode mailing list