Gimp-Forum.net

Full Version: Circle to Rectangle
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have an old-style two-circles map, similar to the one here:

[Image: default.jpg]

I've extracted the circles, and now need to turn them into squares so I can use them as a texture in a render. I've tried various techniques: warp, cage and scale transforms, and scale layer in the layer menu; either they're the wrong tools or I'm not using them properly; is there a way to actually do this?
(10-14-2023, 05:31 AM)Whitewings Wrote: [ -> ]I have an old-style two-circles map, similar to the one here:

[Image: default.jpg]

I've extracted the circles, and now need to turn them into squares so I can use them as a texture in a render. I've tried various techniques: warp, cage and scale transforms, and scale layer in the layer menu; either they're the wrong tools or I'm not using them properly; is there a way to actually do this?

What do you expect the result to be? If you are trying to achieve the usual "Mercator" look you have to stretch the pole points into lines and this won't be pretty.

Edit: since you asked on StackOverflow (so I can assume a programming background): you can in theory come up with a "displace map" that will undo the transform (actually, a pair of maps, one for X and one for Y).  I have used this with some success (but in a somewhat simpler case).
Similar comment to above, If you want to convert the equidistant projection to say a transverse mercator where latitude and longitude grid is rectangular then there might be some clever web application somewhere.

EDIT: Sorry, failed to notice your MacOS system. No gmic plugin for you.
You can get a rectangular image using the gimp_gmic_qt plugin http://www.gmic.eu filter square-to-circle / circle-to-square looks like this:

[attachment=10487]
(10-14-2023, 07:58 AM)denzjos Wrote: [ -> ]Some explanation about this matter :
https://squircular.blogspot.com/2015/09/...pping.html

The upper illustration is exactly what I want to do.