Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Radius
#1
Hello,

When I map an object as a cylinder and adjust the radius to fit the base image (e.g., a mug), the image stretches. How can I avoid this?
Even if I scale it it will stretch


Attached Files Thumbnail(s)
   
Reply
#2
Same as before. The image width is wrapped to the whole circumference, so you probably need some transparent spaces on the sides of the layer. Likewise the image height is mapped to the cylinder height, so you may want some transparent margins in that direction.
Reply
#3
(12-16-2024, 07:47 AM)Ofnuts Wrote: Same as before. The image width is wrapped to the whole circumference, so you probably need some transparent spaces on the sides of the layer. Likewise the image height is mapped to the cylinder height, so you may want some transparent margins in that direction.

Do you mean wrapping the cat image with transparent spaces (making the cat image the same size as I want for the mug image without scaling it, but filling the rest with transparency), then using Layer -> Layer to Image Size?
Then scale it as much as I want (with keep the aspect) without adjust the radius
Reply
#4
Maybe time for an alternative, although it is very hands-on. The gimp_gmic_qt plugin from http://www.gmic.eu. There is a zip there for Ubuntu 22.04 Jammy which should work for your linux.

This using the interactive warp filter. You will have to experiment and it maybe does not give the result you require.

45 second demo: https://i.imgur.com/JebPSBc.mp4

As with all things Gimp there is a learning curve.
Reply
#5
(12-16-2024, 10:02 AM)rich2005 Wrote: Maybe time for an alternative, although it is very hands-on.  The gimp_gmic_qt plugin from http://www.gmic.eu. There is a zip there for Ubuntu 22.04 Jammy which should work for your linux.

This using the interactive warp filter. You will have to experiment and it maybe does not give the result you require.

45 second demo: https://i.imgur.com/JebPSBc.mp4

As with all things Gimp there is a learning curve.
Nice plugin Smile
Can I do this also with script-fu?
Reply
#6
(12-16-2024, 10:51 AM)rita Wrote: Can I do this also with script-fu?

Nothing pre-made that I know of. The gmic filter is an interactive which makes difficulties although if all your images are same size you can save the parameters in gmic as a "fave" which saves setting the deform grid each time.

Probably better of getting a Gimp with python (flatpak or appimage) and trying Ofnuts python plugin.
Reply
#7
Also a nice workflow to try:
https://www.youtube.com/watch?v=Eg10xTOcrCM
Reply
#8
(12-16-2024, 11:14 AM)rich2005 Wrote:
(12-16-2024, 10:51 AM)rita Wrote: Can I do this also with script-fu?

Nothing pre-made that I know of.  The gmic filter is an interactive which makes difficulties although if all your images are same size you can save the parameters in gmic as a "fave" which saves setting the deform grid each time.

Probably better of getting a Gimp with python (flatpak or appimage) and trying Ofnuts python plugin.

My goal is to create something that works both manually and with Script-Fu.

(12-16-2024, 12:11 PM)denzjos Wrote: Also a nice workflow to try:
https://www.youtube.com/watch?v=Eg10xTOcrCM

When using the curve bend sometimes the curve is applied successfully, and other times it isn’t, and I’m not sure why.So I don't know if the issue is related to the angle of rotation I’m using, Or perhaps the shape of the curve itself, Or is there another problem with my process.
Reply


Forum Jump: