5

Xcursor is a format for the graphics of the cursor in X11 (file reports X11 cursor).

xcursorgen allows you to convert PNG files and some metadata to Xcursor files.

How do I convert an Xcursor file to PNG images?

Imagemagick's convert unfortunately returns:

no decode delegate for this image format

0

2 Answers 2

4

Use xcur2png.

Xcur2png takes PNG images from Xcursor-file, and generate config-file which is reusable by xcursorgen. To put it simply, it is converter from X cursor to PNG image.

Basic usage

xcur2png cursorfile 

Converting all cursor files of a theme

find . ! -name '*.*' -type f -exec xcur2png {} \; 

Availability

There are only inofficial packages for Arch Linux and Ubuntu (64bit) but the app is hassle-free to compile.

This answer would not have been possible without don_crissti pointing out the tool.

2
  • The link to xcur2png is dead, but it is a funny page after translated Commented Apr 3, 2018 at 21:56
  • xcur2png seems to be available via pacman in Arch Linux now, so it doesn't need to be manually compiled. Commented Jul 7, 2021 at 21:27
0

Now, some dependencies for xcur2png aren't available, at least on my Ubuntu24.04. However, I've found this C++ project that you can build and run yourself, you can export the whole folder of x11 cursors into pngs in one go. Also, it provides an option to just view the cursor icons.

Also, GIMP can open X11 cursor files, even animated ones.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.