Question to unicode filenames #6008
Replies: 3 comments 1 reply
-
ImageMagick does not support emoji's. We'll add the need for support to the wish list. |
Beta Was this translation helpful? Give feedback.
-
Hello, thanks for your answer. Please do not misunderstand when I ask again: which unicode-characters does the current version support? Thanks in advance |
Beta Was this translation helpful? Give feedback.
-
ImageMagick can have emojis in filenames. For example, with IM v7.1.0-49 on Windows 11. Here is a copy-paste of the text of a command window:
I suppose this is simply using UTF-8. Sadly, Microsoft tried to popularize UTF-16 which can only cope with 65536 codepoints, and emojis have codepoints greater than that, so someone invented "surrogate pairs", which is a pair of 16-bit unsigned integers. This is a kludge to fix a kludge. The command window shows the emoji in colour. Here is a screen grab of that command window: Windows 11 seems to handle UTF-8 more easily than Windows 8.1 did. |
Beta Was this translation helpful? Give feedback.
-
ImageMagick version
7.1.10-58
Operating system
Windows
Operating system, version and so on
Windows 10
Description
Hello,
On my Windows 10 system I use ImageMagick to convert images into *.jpg images.
It works without problem using filenames that contain only ASCII characters.
Also with chinese characters I have seen no problems.
But with a filename that contains an emoji (a unicode character that needs surrogates) it does not work.
Now my question is: is it by design or is it an error?
In case of it is by design, what are the restrictions for unicode characters in a filename.
Thanks for your help in advance
Best regards
herb
Steps to Reproduce
Use a file with an emoji in filename e.g.
magick.exe convert -quiet -strip -identify -clamp -depth 8 test😔😔.avif test😔😔.jpg
Images
No response
Beta Was this translation helpful? Give feedback.
All reactions