Gimp-Forum.net
How do I dissect/rasterscan an image??? - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: General questions (https://www.gimp-forum.net/Forum-General-questions)
+--- Thread: How do I dissect/rasterscan an image??? (/Thread-How-do-I-dissect-rasterscan-an-image)



How do I dissect/rasterscan an image??? - Beauregard42 - 09-03-2024

Hello! I wish to find a function in GIMP that takes an image, and cuts it into horizontal lines, and then places those end to end, so, Example: Apply to a 10x10 image: You would get a 100x1 image out, made of each line of the image rearranged. 

I wish to use this to make a realistic analog video effect by converting an image into a virtual analog signal in GIMP, but I need to be able to split the image into 'scanlines,' by scanning it one line at a time, chopping it up into horizontal lines.

Is there any way to do this easily???

Attachment: This is an example, done manually. It takes FOREVER, even for a 16x12 image. 

Thanks!!!


Also, if anyone wants to know some tips on accurately simulating analog video signals... PM me. I know some tricks and some electronics.


RE: How do I dissect/rasterscan an image??? - Ofnuts - 09-04-2024

See for instance my ofn-layer-tiles script,  in two passes:
  • You use the split function to split the layer into one column of 1px lines
  • You use the join function to join these lines into a single row.



RE: How do I dissect/rasterscan an image??? - rich2005 - 09-04-2024

@Beauregard42  Better use Ofnuts plugins, however

For linux users who might not have python anymore, an alternative, using an old script grid-guides.scm and an old compiled plugin guillotine-into-layers.
(for linux attached)

Then standard Gimp using the align tool  ...etc...   50 second example https://i.imgur.com/I6MrUtf.mp4