The bundled binary is x86 only, bail out early on ARM
Error: Error invoking remote method 'generateImageThumbnail': Error: Command failed: '/tmp/.mount_ente-1lYbIWw/resources/image-magick' '/home/m/Downloads/VM/IMG_4484.WEBP' -auto-orient -define 'jpeg:size=1440x1440' -thumbnail '720x720>' -unsharp '0x.5' -quality 70 '/tmp/ente/9aNsp1FdLe.jpeg' /bin/sh: 1: /tmp/.mount_ente-1lYbIWw/resources/image-magick: Exec format error The binary is from https://github.com/ente-io/ImageMagick/
This commit is contained in:
parent
95cf306be2
commit
9ca8ef9e74
1 changed files with 4 additions and 1 deletions
|
@ -79,7 +79,7 @@ export const generateImageThumbnail = async (
|
|||
|
||||
const outputFilePath = await makeTempFilePath("jpeg");
|
||||
|
||||
// Construct the command first, it may throw `NotAvailable` on win32.
|
||||
// Construct the command first, it may throw `NotAvailable`.
|
||||
let quality = 70;
|
||||
let command = generateImageThumbnailCommand(
|
||||
inputFilePath,
|
||||
|
@ -138,6 +138,9 @@ const generateImageThumbnailCommand = (
|
|||
];
|
||||
|
||||
case "linux":
|
||||
// The bundled binary is an ELF x86-64 executable.
|
||||
if (process.arch != "x64")
|
||||
throw new Error(CustomErrorMessage.NotAvailable);
|
||||
return [
|
||||
imageMagickPath(),
|
||||
inputFilePath,
|
||||
|
|
Loading…
Reference in a new issue