Page 1 of 1
resize images not permanent
Posted: Thu Sep 03, 2015 1:26 pm
by rinzwind
I resize copied images on a card with:
go to card "ResizedResources"
repeat with i = 1 to the number of images
put the id of image i into tid
set the width of image id tid to xwidth
set the height of image id tid to yheight
end repeat
I can see them get resized. But as soon as I switch cards, everything is back to the default size...
How to make this permanent? Is a card save really necessary?...
Re: resize images not permanent
Posted: Thu Sep 03, 2015 1:30 pm
by rinzwind
even a save right after doesn't fix it. Switching cards... tada back to default original size.
whaaat even if I resize in the property inspector it's not permanent...
Re: resize images not permanent
Posted: Thu Sep 03, 2015 1:43 pm
by Klaus
HI rinzwind,
you need to check "lockloc" (Lock size and prisition) in the inspector for these images
to prevent this inconvenience!
Best
Klaus
Re: resize images not permanent
Posted: Thu Sep 03, 2015 1:50 pm
by rinzwind
wow thanks. looks better than the other weird solution I found...
set the imageData of image id tid to the imageData of image id tid
that's just crazy

Re: resize images not permanent
Posted: Thu Sep 03, 2015 1:56 pm
by rinzwind
somehow the original imagedata is still there.. I can resize it back to the original size without loss of quality. Thats not what I want. I just want permanent resize and no leftovers.
Re: resize images not permanent
Posted: Thu Sep 03, 2015 2:00 pm
by rinzwind
the combination of lockloc and imagedata does it... ugly but it works
Re: resize images not permanent
Posted: Thu Sep 03, 2015 5:05 pm
by Klaus
I always create my images in the necessary size in a dedicated image editing app***,
so there is no need to resize and no overhead at all!
***This will always look better than resizing an image in Livecode, althought LC is doing a good joob here
and we have the choice of three "resizequality"s here.