It is currently Thu Jun 27, 2024 7:36 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: Image transformation to a circular arc
PostPosted: Wed Jul 20, 2022 5:07 am  (#1) 
Offline
New Member

Joined: Jul 20, 2022
Posts: 2
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 1287 times ]
Image 1.jpg
Image 1.jpg [ 161.14 KiB | Viewed 1287 times ]
Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Image transformation to a circular arc
PostPosted: Wed Jul 20, 2022 6:10 am  (#2) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2435
Something like this: Gimp 2.8

Attachment:
map.jpg
map.jpg [ 120.51 KiB | Viewed 1265 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.

_________________
Image


Top
 Post subject: Re: Image transformation to a circular arc
PostPosted: Wed Jul 20, 2022 6:21 am  (#3) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4750
This is "Filters > Distorts > Polar coordinates" with "To polar":

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


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

_________________
Image
Top
 Post subject: Re: Image transformation to a circular arc
PostPosted: Wed Jul 20, 2022 6:26 am  (#4) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
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

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Image transformation to a circular arc
PostPosted: Wed Jul 20, 2022 6:49 am  (#5) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
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 1255 times ]


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

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: Image transformation to a circular arc
PostPosted: Wed Jul 20, 2022 11:22 am  (#6) 
Offline
GimpChat Member

Joined: Jul 28, 2018
Posts: 1196
My try :hehe
Image

_________________
https://www.deviantart.com/pocholo17
Image


Top
 Post subject: Re: Image transformation to a circular arc
PostPosted: Fri Jul 22, 2022 12:17 am  (#7) 
Offline
GimpChat Member

Joined: May 12, 2015
Posts: 4694
Pocholo, did you use map to sphere?


Top
 Post subject: Re: Image transformation to a circular arc
PostPosted: Fri Jul 22, 2022 3:02 am  (#8) 
Offline
New Member

Joined: Jul 20, 2022
Posts: 2
Pocholo, please share your knowledge how to achieve such result!


Top
 Post subject: Re: Image transformation to a circular arc
PostPosted: Fri Jul 22, 2022 5:52 am  (#9) 
Offline
GimpChat Member

Joined: Jul 28, 2018
Posts: 1196
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

_________________
https://www.deviantart.com/pocholo17
Image


Top
 Post subject: Re: Image transformation to a circular arc
PostPosted: Fri Jul 22, 2022 8:32 am  (#10) 
Offline
GimpChat Member
User avatar

Joined: May 24, 2021
Posts: 787
Location: SEA - South East Asia
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 1105 times ]

_________________
Patrice


Top
 Post subject: Re: Image transformation to a circular arc
PostPosted: Fri Jul 22, 2022 3:46 pm  (#11) 
Offline
GimpChat Member

Joined: Jul 28, 2018
Posts: 1196
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.

_________________
https://www.deviantart.com/pocholo17
Image


Top
 Post subject: Re: Image transformation to a circular arc
PostPosted: Fri Jul 22, 2022 11:01 pm  (#12) 
Offline
GimpChat Member
User avatar

Joined: May 24, 2021
Posts: 787
Location: SEA - South East Asia
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 690 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

_________________
Patrice


Top
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Newbie alert: loading numbered files for G'MIC transformation

5

No new posts Circular Motion Blur

2

No new posts Attachment(s) GEGL Circular Pixel Stretch.

14

No new posts Retexture an image with another image as "Image Pattern" Plug-in

4

No new posts Show image on web browser to fill 100% width AND image map

2



* Login  



Powered by phpBB3 © phpBB Group