-
Notifications
You must be signed in to change notification settings - Fork 77
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
Documentation misuses the -format
argument with the convert
command
#66
Comments
Probably related to #67 as well. |
Temporary file extension will be the same as from original file.
Could you, please, provide an example? Do you mean that |
Here is an example of this being the suggested way in the documentation.
I mean that the This is explained in the imagemagick documentation I linked to: https://imagemagick.org/script/command-line-options.php#format
|
I meant the example for It sounds like a bug. |
Sorry I think that sentence wasn't very clear. What I meant by that was that the file extension specified in the argument
That's fine, but until it's specified behavior in the documentation of waffle, I'd see that as a pretty unreliable implementation detail. Either way the |
So, basically we should remove the |
Yes.
I also suggest that you add the more explicit `png:FILENAME` argument in
order to remain explicit about the conversion for the sake of
correctness as this argument *would* ensure that the file is converted
to png regardless of the output filename.
|
Related: #51, #53
The
convert
command uses the filename extension to know what the output format should be. The filename extensions given to temporary files by waffle is unreliable so the documentation specifies the-format
argument. The-format
argument to specify file format type is only available in themogrify
command and so this argument has no effect.The result is that waffle's documentation essentially suggests users use a noop command to convert files and the result is very confusing as the output file extension is right but no conversion has been done.
https://imagemagick.org/script/command-line-processing.php#input
https://imagemagick.org/script/command-line-options.php#format
Environment
Expected behavior
Uses of the
convert
command should set an explicit output format like so:Actual behavior
Uses of
convert
erroneously use the-format
argument to specify output file format. This usage of the-format
argument only works in themogrify
command.The text was updated successfully, but these errors were encountered: