Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
flip images
#1
Hi

See image

- from this image I generate layers: each layer is a square of the image. So the layers have the symbols as you see them (wrong orientation).

- I need an existing plugin or plugin code to flip the layers so they are in correct orientation. How can I do this with existing plugin or plugin code or gimp operation?
(only for A -> Z and 0 -> 9)


Attached Files Thumbnail(s)
   
Reply
#2
(03-04-2024, 02:37 AM)gimpygirl Wrote: Hi

See image

- from this image I generate layers: each layer is a square of the image. So the layers have the symbols as you see them (wrong orientation).

- I need an existing plugin or plugin code to flip the layers so they are in correct orientation. How can I do this with existing plugin or plugin code or gimp operation?
(only for A -> Z and 0 -> 9)

Did you try to search flip in the Procedure browser?

... but if you use flip you have to flip twice (H&V), os better do a 180° rotation (search rotate-simple)
Reply
#3
What is the correct to,go through all layers of image?
Reply
#4
In the layers box next to the eye you can see a chain link. Shift + click in that row links the layers. From there you can go to Layer > Group > pack linked layers. This makes them all behave like a single layer. Then Layer > Transform > flip horizontally.

I work with multiple layers like this often. You can also resize them. When done just unpack and unlink. Smile
Reply
#5
(03-05-2024, 07:12 AM)Tas_mania Wrote: In the layers box next to the eye you can see a chain link. Shift + click in that row links the layers. From there you can go to Layer > Group > pack linked layers. This makes them all behave like a single layer. Then Layer > Transform > flip horizontally.

I work with multiple layers like this often. You can also resize them. When done just unpack and unlink. Smile

Thanks but I was also looking for the correct code to loop through all layers of image. I'm making a plugin
Reply
#6
(03-05-2024, 05:52 PM)gimpygirl Wrote:
(03-05-2024, 07:12 AM)Tas_mania Wrote: In the layers box next to the eye you can see a chain link. Shift + click in that row links the layers. From there you can go to Layer > Group > pack linked layers. This makes them all behave like a single layer. Then Layer > Transform > flip horizontally.

I work with multiple layers like this often. You can also resize them. When done just unpack and unlink. Smile

Thanks but I was also looking for the correct code to loop through all layers of image. I'm making a plugin

Well, for an "apply to all layers", the attached snippet of code works for me. Equivalent is Layer -> Transform -> Flip Vertically for each layer.

You could of course just flip the whole image Image -> Transform -> Flip Vertically then no need to cycle through the layers.


Attached Files
.zip   fliplayers.zip (Size: 421 bytes / Downloads: 285)
Reply
#7
Wink 
Sorry I didn't realize you were making a plug-in. Good luck with it Smile
Reply


Forum Jump: