Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Generate .ani and .cur
#1
Hi, is it possible to convert a PNG into .cur and a set of PNGs into .ani using GIMP? I currently have SVG, can convert it into PNG to use as cursor files in Windows 10 and 11. Thanks.
Reply
#2
Nothing I can see directly with Gimp. You probably already come across these.

You can make a .cur file from a .png (or other format) using ImageMagick edit: These identify as Windows .cur files but, up to you to try them in a Windows machine. You might be better off with a dedicated Windows editor such as Greenfish.

Code:
magick filename.png filename.cur

From here https://www.gimpusers.com/forums/graphic...ni-in-gimp
Using anituner.exe to import your png's and make a .ani file

I just tried that anituner.exe https://www.gdgsoft.com/anituner/ (linux using WINE) not the nicest interface but it looks like it works. It imports the usual file formats.
Reply
#3
Thanks Smile
Reply
#4
(08-08-2022, 08:21 PM)meetdilip Wrote: Thanks Smile

Looks as though .ani support has just been added to the 2.99.11 version:

https://gitlab.gnome.org/GNOME/gimp/-/co...5abcb0fbfb
Reply
#5
Thanks. Eagerly waiting for the 2.99.11 build.
Reply
#6
I opened a bug report regarding the .cur file

https://gitlab.gnome.org/GNOME/gimp/-/issues/8473

I guess, while considering scaling, the .cur file should be like this, not just one image. But 2.99.10 exports as is one image only. Not sure whether I should mention it in the bug report.

[Image: 5K5k3bQ.png]
Reply
#7
I have a python script ( not a Gimp plugin ) that creates a .cur from a .ico file. Apparently they are almost identical except you can set a 'hot spot' (whatever that is) in a .cur

Using your 128x128 png from bug report. Top is a straight conversion png -> ico in Gimp ico -> cursor using script. Remember this is using Linux. 
Into Win 10 Top is very pixelated so I gave the original png a small gaussian blur, that's the bottom cursor.

   

Attached the cursor file and the python script. usage is (x,y is the hotspot)
Code:
python ico2cur.py filename.ico -x 25 -y 30

I do not know how you would create a multi-layer .cur file.
Please do not ask any difficult questions when it comes to M$ I am well behind usage these days Wink


Attached Files
.zip   cursors_convert.zip (Size: 6.04 KB / Downloads: 98)
Reply
#8
Thanks. I think Windows 10 expects 32x32 to 256x256 variants from a .cur file. Smile
Reply


Forum Jump: