Re: [oS-EN] Image magick refuses to convert a true jpg file

"Carlos E. R." <[email protected]>
Newsgroups gmane.linux.suse.general
Message-ID <[email protected]>
On 2026-06-16 12:19, Daniel Bauer via openSUSE Users wrote:
> Am 16.06.26 um 11:48 schrieb Carlos E. R.:
>> On 2026-06-16 11:35, Daniel Bauer via openSUSE Users wrote:
>>> Am 15.06.26 um 21:47 schrieb Carlos E. R.:
>>
>>
>>>> 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.
>>
>>
>> The syntax has changed. On 15.6 I had:
>>
>> cer@Laicolasse:~/Photos/Para compartir con...> cat convertir
>> #!/bin/bash
>> convert "$1" -quality 70 -resize 1000x1000  "F_$1"
>> cer@Laicolasse:~/Photos/Para compartir con...>
>>
>> Now it is:
>>
>> magick  "$1" -quality 70 -resize 1000x1000 "F_$1"
>>
> Only the command word has changed, but the old one still works. It just 
> gives a warning, not an error.
>>
>> And gives permission error.
>>
> Have you checked file and memory sizes in the policy?

No. It is the default config in openSUSE. It should just work. There is 
no mention of JPG in the file, though.

My photo is just 1.2 megs, a very normal photo.

> I have inserted very large numbers because I use multi-processor/ 
> parallel scripts on very large files. Here's my policy:
> 
> https://www.daniel-bauer.com/div/policy.xml.mychanges
> 
> rename your policy.xml
> copy mine, rename it to policy.xml and set the correct user/permissions
> try your magick command
> check the differences of your original file and mine and find the 
> numbers that suit you.
> 
> Every zypper update of ImageMagick overwrites my changes, so keep the 
> changed file with another name, so you can again overwrite the 
> overwritten file when necessary :-)


Buff :-(


I copied your changes (with meld), does not work, same error.

magick: attempt to perform an operation not allowed by the security 
policy `IMG_20260615_195853218.jpg' @ error/blob.c/OpenBlob/3416.


-- 
Cheers / Saludos,

		Carlos E. R.

   (from openSUSE 16.0 (Laicolasse))
OpenPGP_signature.asc (application/pgp-signature, 203 B)
-----BEGIN PGP SIGNATURE-----

wmMEABEIACMWIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCajEqLwUDAAAAAAAKCRC1MxgcbY1H1eIG
AJkBSVbsNNDfjq2lbcgd6DhbtLlO1ACfc2gQVak2FZ7jRkpazh2DFtZKkZ0=
=v2LQ
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.