Grouping a scaled image resets it to original size

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
kaveh1000
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 539
Joined: Sun Dec 18, 2011 7:23 pm
Contact:

Grouping a scaled image resets it to original size

Post by kaveh1000 » Fri Dec 10, 2021 2:30 pm

  • I "Import as control" an image
  • I resize by dragging a corner (with shift to maintain aspect ratio)
  • I group the image
  • It resizes itself to the original size
Can someone explain pls? Example minimal stack attached.
Attachments
resize image.livecode.zip
(22.82 KiB) Downloaded 160 times
Kaveh

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10094
Joined: Fri Feb 19, 2010 10:17 am

Re: Grouping a scaled image resets it to original size

Post by richmond62 » Fri Dec 10, 2021 2:37 pm

Lock the image before you group it.

kaveh1000
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 539
Joined: Sun Dec 18, 2011 7:23 pm
Contact:

Re: Grouping a scaled image resets it to original size

Post by kaveh1000 » Fri Dec 10, 2021 2:41 pm

Ah, I thought of that but did not try as it says "lock size and position". I need to move it around. Tried now and it works.

So its position is still locked when I edit group, but i can move the group around.

All makes sense. Thank you Richmond. :-)
Kaveh

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10317
Joined: Wed May 06, 2009 2:28 pm

Re: Grouping a scaled image resets it to original size

Post by dunbarx » Fri Dec 10, 2021 3:26 pm

I have always found that I must lock a newly imported image after I resize it to the rect I need. If not, it will revert to the card rect.

Craig

Klaus
Posts: 14190
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Grouping a scaled image resets it to original size

Post by Klaus » Fri Dec 10, 2021 3:34 pm

From the beginning (Metacard 1999) I have asked myself why on earth is this neccessary?
If I scale an image (or a video) I want to leave it scaled all the time until I make up my mind... 8)

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10094
Joined: Fri Feb 19, 2010 10:17 am

Re: Grouping a scaled image resets it to original size

Post by richmond62 » Fri Dec 10, 2021 3:40 pm

It is extremely inconvenient.

To be honest, to avoid surprises, I tend to resize an image to the size I need, import
a snapshot of the image, and then delete the original image.

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7390
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Grouping a scaled image resets it to original size

Post by jacque » Fri Dec 10, 2021 6:48 pm

kaveh1000 wrote:
Fri Dec 10, 2021 2:41 pm
So its position is still locked when I edit group, but i can move the group around.
You can also move a locked control with the arrow keys on the keyboard. Only dragging with the mouse is prohibited. It prevents accidental repositioning when working with other nearby controls.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

kaveh1000
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 539
Joined: Sun Dec 18, 2011 7:23 pm
Contact:

Re: Grouping a scaled image resets it to original size

Post by kaveh1000 » Fri Dec 10, 2021 7:14 pm

Good to know. Thanks Jacqueline and others.
Kaveh

Post Reply