-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose file mimetype for printing image properties / attributes #7977
Comments
The mime type information is not optimal and I would prefer to not use this in new places. |
If I understand your request, can't you just use %m or %[fx:m]?
|
Not to be flippant, but because I had considered
I'm unfamiliar (unaware) with the issues @dlemstra has raised about imagemagick's determination of the mimetype string, which I was hoping could "just" be exposed. (As an aside, being able to use |
Not all your %m are image types. So I do not see how IM would show those in a command for a given image. Nevertheless, I see what you want and have no idea how you would get what you want, especially for non-image mime types. Sorry for my misunderstanding of what you wanted. |
Indeed, as Edit: See |
But for the non-image mime types, what command would request that. For example how would you ask for font type if used in an image? Once the image is created, that information is lost. Are you asking to extract that in the command that creates the text image or after the image has been created? |
I wouldn't ask imagemagick to return anything more than what it already understands, i.e. from The primary purpose is to query mimetype of a file with I would be very happy for it to return nothing or an error for those formats it does not understand. (This is particularly important as it helps me maintain a degree of symmetry with the capabilities of imagemagick more generally.) |
We'll add a patch to support the "mimetype" property. Look for it in the main branch by the end of day. Use |
Is it intentional that this |
Is your feature request related to a problem? Please describe.
I would like to print the mime type of a given file as understood by imagemagick. Currently imagemagick does display the
Mime type:
when usingidentify -verbose
but there does not appear to be an equivalent attribute.Describe the solution you'd like
Provide a
%[mimetype]
attribute so that it may be used with-format
or-print
Describe alternatives you've considered
Additional context
No response
The text was updated successfully, but these errors were encountered: