Am 31.08.23 um 19:41 schrieb Carlos E. R.:
On 2023-08-31 12:40, Daniel Bauer wrote:
Am 31.08.23 um 18:08 schrieb Daniel Bauer:
Hi,
since my upgrade to OS 15.5, when running a command line job for imagemagick I get
I/O error : buffer full
The task is finished anyway, as much as I can see, perfect. But on 15.3 I have never seen this message and I wonder what it could mean and how, if so, I could avoid it.
Actually, after googling, I now believe that it's not an imagemagick problem, but comes from the bash...
The "buffer full" occurs for example when running this:
#!/bin/sh for bild in *.JPG do convert "$bild" -quality 50 -verbose "${bild%.JPG}.png" done
(or other similar scripts). The "I/O error : buffer full" appears for each processing image.
I suspect the problem could be in the "bild in *.JPG" wich can convert to a huge command line, and overflows the command line input buffer.
It happens now probably because you have more photos.
Possible. On the other hand I suspect (in my mini-knowledge) that if this was the case, the buffer would overflow when the script starts. But actually this message is displayed for every single loop or image. And why didn't the problem occur in former OpenSuse versions? Those scripts are really very old and I use them since many years and never had this overflow.
I have never seen that on OS 15.3, but now (on 15.5) with all my bash scripts that use imagemagick.
Do I need to adjust buffer size or something? And, if so, how?
If it is what I suspect, you have to replace that line with something else that doesn't list the entire directory in one line. "find" can do that "somehow". I say somehow because I don't remember right now, but someone will with that hint.
Isn't it possible that this buffer now on OS 15.3 is smaller than it was before? If so, how can I make it larger? -- Daniel Bauer photographer Basel Málaga Twitter: @Marsfotografo (often explicit nudes) https://www.patreon.com/danielbauer https://www.daniel-bauer.com (nudes)