GIMP Chat
http://gimpchat.com/

Image transformation to a circular arc
http://gimpchat.com/viewtopic.php?f=8&t=20030
Page 1 of 1

Author:  dogintas [ Wed Jul 20, 2022 5:07 am ]
Post subject:  Image transformation to a circular arc

GIMP Version: 2.8.14
Operating System: Mac OS
GIMP Experience: New User



Hello guys,

I am new and I am searching for an assistance to transform my image (to be specific - a soundvawe image) to a circular arc. I have reviewed plenty of video tutorials, however I could not find an answer to that. I've tried "curve bend" filter and "cage distort" tool, however I couldn't achieve what I wanted.

I am attaching an example of the initial sounwave image (Image 1) and the expected result (Image 2).

Thanks in advance.

Attachments:
File comment: Expected result
Image 2.jpg
Image 2.jpg [ 50.91 KiB | Viewed 1298 times ]
Image 1.jpg
Image 1.jpg [ 161.14 KiB | Viewed 1298 times ]

Author:  rich2005 [ Wed Jul 20, 2022 6:10 am ]
Post subject:  Re: Image transformation to a circular arc

Something like this: Gimp 2.8

Attachment:
map.jpg
map.jpg [ 120.51 KiB | Viewed 1276 times ]


Trim the ends with the crop tool
Colours -> Color-to-Apha to remove the white (white is default)
Increase the the canvas size so height = width and move the wave to the top of the canvas. Use the All-Layers option.
Use Filters -> Distorts -> Polar Coordinates and untick Map from Top
Demo animation 50 seconds https://i.imgur.com/cFL5H7j.mp4

To get something like your 'required' maybe do a bit of vertical stretching first.

Author:  ofnuts [ Wed Jul 20, 2022 6:21 am ]
Post subject:  Re: Image transformation to a circular arc

This is "Filters > Distorts > Polar coordinates" with "To polar":

Attachment:
Polar2.jpg
Polar2.jpg [ 43.05 KiB | Viewed 1270 times ]


Attachments:
Polar2.jpg
Polar2.jpg [ 43.05 KiB | Viewed 1270 times ]

Author:  Rod [ Wed Jul 20, 2022 6:26 am ]
Post subject:  Re: Image transformation to a circular arc

The pan to Bow scm filter may be of assistance as well.

Attachment:
script-fu-pan-to-bow.scm [5 KiB]
Downloaded 46 times


Just place it in your scripts folder and refresh scripts.
You'll find it here.

Script-Fu/Distorts/_Pan to Rainbow shape

Author:  Rod [ Wed Jul 20, 2022 6:49 am ]
Post subject:  Re: Image transformation to a circular arc

Just open the script and type in the angle of circle you need (want), and let the filter run.
Here is my result on your image KEEPING the color profile and running the filter at 360 degrees.

Attachment:
Image 1-results-after-pan-to-bow-360-degrees.jpg
Image 1-results-after-pan-to-bow-360-degrees.jpg [ 186.46 KiB | Viewed 1266 times ]


This filter also utilizes Polar Coordinates in its code so most likely same results.

Author:  Pocholo [ Wed Jul 20, 2022 11:22 am ]
Post subject:  Re: Image transformation to a circular arc

My try :hehe
Image

Author:  Pat625 [ Fri Jul 22, 2022 12:17 am ]
Post subject:  Re: Image transformation to a circular arc

Pocholo, did you use map to sphere?

Author:  dogintas [ Fri Jul 22, 2022 3:02 am ]
Post subject:  Re: Image transformation to a circular arc

Pocholo, please share your knowledge how to achieve such result!

Author:  Pocholo [ Fri Jul 22, 2022 5:52 am ]
Post subject:  Re: Image transformation to a circular arc

Here is small tutorial on how I archived my result:

Circular sound wave
1. Make the image canvas square shape: go to, Image/Canvas size and make both size even. Choose, Center and at the bottom for the Background make sure is on Transparent.

2. Use the "Scale tool" to stretch the image horizontally until it reaches the layer's edge or boundary.

3. If it have a white background, make it transparent; go to, Color/Color to Alpha
Set the Transparency Threshold to= 0.900

4. Make it rounded by going to, Filters/Distorts/Polar Coordinates.

5. Go to, Filters/Distorts/Lens Distortion. Set the "Main" Lever all away to the left.

6. Make the sound spike larger by going to, Filters/Blur/Zoom Motion Blur. Blurring Factor=1.2

7. Add a white Background layer and Merge the sound wave layer down.

8. Go to Filers/Enhance/Sharpen (Un-sharp mask). Make the Radius=20.00 and the Amount=6.0 (You can play with the levers until you think is right for you)

9. If you want the sound wave with a transparent background, just go to Colors/Color to Alpha. Make sure the Transparency Threshold is set to= 1.00

Author:  PixLab [ Fri Jul 22, 2022 8:32 am ]
Post subject:  Re: Image transformation to a circular arc

Filters >> Map >> Little Planet (this filter works faster than Polar coordinate and has a zoom)
This "writing" reminds me the movie "Arrival" :hehe

Attachment:
Untitled.jpg
Untitled.jpg [ 318.68 KiB | Viewed 1116 times ]

Author:  Pocholo [ Fri Jul 22, 2022 3:46 pm ]
Post subject:  Re: Image transformation to a circular arc

Hi Patrice. Yes is easier, I did that my first try. But it doesn't look like the image he provided. Take a look at the sound spike, their not even like your example. They're long and short like the example I provided in post #6.

Author:  PixLab [ Fri Jul 22, 2022 11:01 pm ]
Post subject:  Re: Image transformation to a circular arc

Pocholo wrote:
Hi Patrice. Yes is easier, I did that my first try. But it doesn't look like the image he provided. Take a look at the sound spike, their not even like your example. They're long and short like the example I provided in post #6.


Indeed you're right :bigthup
Thus I did some play, and depending the position of the wave (top, middle, or bottom) it will change the spikes length in or out.
Attachment:
ksnip_20220723-114724.png
ksnip_20220723-114724.png [ 284.41 KiB | Viewed 701 times ]


For a more precise and respectfulness of the wave, I agree that "Polar Coordinates" is the way to go, with "Little Planet" let say it's funnier :hehe

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/