Fix an error in the order of the arguments for imagemagick (#1175)
## Description When importing a folder, I am getting this error on each image: ``` cmd: "'/tmp/.mount_ente-xHvuBzN/resources/image-magick' -auto-orient -define 'jpeg:size=1440x1440' 'IMG_9694.heic' -thumbnail '720x720>' -unsharp '0x.5' -quality 70 '/tmp/ente/E6YH91g3T3-thumb.jpeg'", stdout: '', stderr: "magick: no images found for operation `-auto-orient' at CLI arg 1 @ error/operation.c/CLIOption/5432.\n" ``` ## Tests This is UNTESTED because I don't have a build env ready, however it seems like this error is coming out because we pass the input file after specifying some modifier flag that applies to it, and we should put the input before.
This commit is contained in:
commit
193c8d8899
1 changed files with 1 additions and 1 deletions
|
@ -59,10 +59,10 @@ const IMAGEMAGICK_HEIC_CONVERT_COMMAND_TEMPLATE = [
|
|||
|
||||
const IMAGE_MAGICK_THUMBNAIL_GENERATE_COMMAND_TEMPLATE = [
|
||||
IMAGE_MAGICK_PLACEHOLDER,
|
||||
INPUT_PATH_PLACEHOLDER,
|
||||
"-auto-orient",
|
||||
"-define",
|
||||
`jpeg:size=${SAMPLE_SIZE_PLACEHOLDER}x${SAMPLE_SIZE_PLACEHOLDER}`,
|
||||
INPUT_PATH_PLACEHOLDER,
|
||||
"-thumbnail",
|
||||
`${MAX_DIMENSION_PLACEHOLDER}x${MAX_DIMENSION_PLACEHOLDER}>`,
|
||||
"-unsharp",
|
||||
|
|
Loading…
Add table
Reference in a new issue