mathstodon.xyz is one of the many independent Mastodon servers you can use to participate in the fediverse.
A Mastodon instance for maths people. We have LaTeX rendering in the web interface!

Server stats:

2.7K
active users

#imagemagick

4 posts4 participants1 post today

Remember the other day when I said I had developed a case of intermittent test?

Turns out, my code was outputting the same #PDF every time. The problem was in the test suite's use of #ImageMagick which for these PDF files, produces inconsistent results. YIKES!

Well at least it's not my fault. But it also might not be fixable by me.

convert test.pdf output.png

Just received a funky PDF file that #ImageMagick does not like.
‘identify it.pdf’ thinks for three seconds and tells me it’s a 3000x1980px CMYK in .AI format.
‘identify -verbose it.pdf’ has been spinning without any output for 20 minutes, eating 100% of one CPU core.

Even if I could figure out what’s bricking it, I wonder what the hell I can do about it.

I, for one, welcome our new #LLM overlords.

…well, within #reason 😅

#Copilot has been quite useful, despite the plentiful #hallucinations. 🤬

Before i've figured out, how to create a multi-page scan, as a PDF, using #XSane, … 😅

Yeah, using the #ImageMagick / convert tool, remains #persnickety 😅

pro tip; you need to match the DPI/resolution (close enough), in the input files, in order to produce a "good enough" output.pdf

yikes, the struggle is real 🖖 🤣 🍻

Is there any way to share an image to a shell script from within Android, or even just copy the full path of a file with an Android?

The thing is I'm using Image Toolbox to perform my #LossyPNG conversions on the go, but I find that #imagemagick convert actually does a far better job at choosing colors than Image Toolbox does.

There just isn't a convenient way (that I've found so far) to grab the full path and filename of an image from the gallery and then share that with a shell script running in #Termux.

f-droid.orgImage Toolbox | F-Droid - Free and Open Source Android App RepositoryA powerful image editing app that allows you to crop, filter, convert, resize, c

Just for fun I'm writing an #ILBM impl. for #Qt (QImageIOPlugin). I'm having trouble with the PCHG chunk. Any #Amiga dev/hobbyist here who might have a clue what's wrong? My code:
parsing: github.com/panzi/qilbm/blob/42
rendering: github.com/panzi/qilbm/blob/42
sample file: sembiance.com/fileFormatSample
Other impl. I've looked at and can't finde the difference to:
aminet.net/package/dev/misc/PC (includes 2 images that *do* work)
fossies.org/linux/netpbm/conve line 1596 and onward, which is used by #ImageMagick. #RetroComputing

#Linux #Bash

4 JPGs zu einem zusammenfassen,
Rand rundrum dran machen und beschriften. Es ist mal wieder ein 1-Liner für #Bash und #Imagemagick

montage -strokewidth 3 -stroke black -border 2 -fill white -pointsize 40 -gravity south 1.jpgannotate0ARD 2.jpgannotate0ZDF 3.jpgannotate03SAT 4.jpgannotate0ARTE -tile 2x2 -mode Concatenate fourpic.jpg

I just came across this question I asked 13 years ago about pixelating images using the command line

graphicdesign.stackexchange.co

That method of downscaling then upscaling to produce pixelation was acceptable at the time but the problem is that you couldn't easily specify the size of the "big pixels"

Searching again in 2025 and it looks like ffmpeg has had a pixelation filter since 2022 and can be used like this:

ffmpeg -i input.mp4 -vf pixelize=40:40 output.mp4

So now I'm using ffmpeg, a video editor, to pixelate images.

Graphic Design Stack ExchangeHow can I pixelate an image via the command line on LinuxIs there a command-line utility for Linux that can pixelate an image by a specified percentage eg "-pixelate 30%"