Re: [oS-EN] Image magick refuses to convert a true jpg file
Daniel Bauer via openSUSE Users <[email protected]>
| Newsgroups | gmane.linux.suse.general |
|---|---|
| Message-ID | <[email protected]> |
Am 15.06.26 um 21:47 schrieb Carlos E. R.: > On 2026-06-15 21:17, Daniel Bauer via openSUSE Users wrote: >> >> >> Am 15.06.26 um 20:21 schrieb Carlos E. R.: >>> >>> cer@Laicolasse:~/Photos/Para compartir con...> magick convert >>> IMG_20260615_195853218.jpg F_IMG_20260615_195853218.jpg >>> WARNING: The convert command is deprecated in IMv7, use "magick" >>> instead of "convert" or "magick convert" >>> >>> convert: attempt to perform an operation not allowed by the security >>> policy `IMG_20260615_195853218.jpg' @ error/blob.c/OpenBlob/3416. >>> convert: no images defined `F_IMG_20260615_195853218.jpg' @ error/ >>> deprecate.c/ConvertImageCommand/3368. >>> cer@Laicolasse:~/Photos/Para compartir con.../> >>> >> >> The command per se makes no sense as it would just do a copy. > > Sorry about that, it was a copy paste error when reproducing the part of > the script that failed. It is: > > cer@Laicolasse:~/Photos/Para compartir con...> magick convert -quality > 70 -resize 1000x1000 IMG_20260615_195853218.jpg > F_IMG_20260615_195853218.jpg > WARNING: The convert command is deprecated in IMv7, use "magick" instead > of "convert" or "magick convert" > > convert: attempt to perform an operation not allowed by the security > policy `IMG_20260615_195853218.jpg' @ error/blob.c/OpenBlob/3416. > convert: no images defined `F_IMG_20260615_195853218.jpg' @ error/ > deprecate.c/ConvertImageCommand/3368. > cer@Laicolasse:~/Photos/Para compartir con...> > > > When I remove the "convert" word, I get instead: > > > cer@Laicolasse:~/Photos/Para compartir con...> magick -quality 70 - > resize 1000x1000 IMG_20260615_195853218.jpg F_IMG_20260615_195853218.jpg > magick: no images found for operation `-resize' at CLI arg 3 @ error/ > operation.c/CLIOption/5481. > cer@Laicolasse:~/Photos/Para compartir con...> > > > So the permission error is gone, but still getting an error. I hate when > software changes the syntax. > Masaru Nomiya has shown exactly how it’s done: the file to be read must be specified first. That’s nothing new. Nothing has changed in the syntax – at least for the functions I use – except that you should now use `magick` instead of `convert`. It still works with the old `convert`, though; you’ll just get a warning. Your errors have nothing to do with that, but (first) with the policy and (second) with the wrong order of the parameters. -- Daniel Bauer photographer Basel Málaga Twitter: @Marsfotografo (often explicit nudes) https://www.patreon.com/danielbauer https://www.daniel-bauer.com (nudes)