Generate .ani and .cur - Printable Version +- Gimp-Forum.net (https://www.gimp-forum.net) +-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP) +--- Forum: General questions (https://www.gimp-forum.net/Forum-General-questions) +--- Thread: Generate .ani and .cur (/Thread-Generate-ani-and-cur) |
Generate .ani and .cur - meetdilip - 08-08-2022 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. RE: Generate .ani and .cur - rich2005 - 08-08-2022 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/graphics-design/18355-how-to-edit-cursor-animations-ani-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. RE: Generate .ani and .cur - meetdilip - 08-08-2022 Thanks RE: Generate .ani and .cur - programmer_ceds - 08-09-2022 (08-08-2022, 08:21 PM)meetdilip Wrote: Thanks Looks as though .ani support has just been added to the 2.99.11 version: https://gitlab.gnome.org/GNOME/gimp/-/commit/aa51b9e19ece8a8c54a513fe33b6d65abcb0fbfb RE: Generate .ani and .cur - meetdilip - 08-09-2022 Thanks. Eagerly waiting for the 2.99.11 build. RE: Generate .ani and .cur - meetdilip - 08-09-2022 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. RE: Generate .ani and .cur - rich2005 - 08-09-2022 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. [attachment=8469] 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 RE: Generate .ani and .cur - meetdilip - 08-09-2022 Thanks. I think Windows 10 expects 32x32 to 256x256 variants from a .cur file. |