mastodon.world is one of the many independent Mastodon servers you can use to participate in the fediverse.
Generic Mastodon server for anyone to use.

Server stats:

8.1K
active users

#imagemagick

4 posts4 participants0 posts today
Luke T. Shumaker<p>Why did no one just say that the <a href="https://social.coop/tags/ImageMagick" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ImageMagick</span></a> 7 CLI syntax is just RPN? Like, that's a weird choice, but if someone had just said "RPN" instead of whatever is going on in the explanation at <a href="https://imagemagick.org/script/command-line-processing.php" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">imagemagick.org/script/command</span><span class="invisible">-line-processing.php</span></a> , I would have been fluent nearly 10 years sooner.</p><p>Like, RPN is a weird choice. But once you've told me it's RPN, pages and pages of documentation are now obviated.</p>
2rZiKKbOU3nTafniR2qMMSE0gwZCodeIgniter4 Flaw CVE-2025-54418 Enables Remote Code Execution via File Uploads A major security flaw has been detected in the popular PHP framework CodeIgniter4. The tag of a critical vulnerabilit...<br><br><a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/Firewall" target="_blank">#Firewall</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/Daily" target="_blank">#Daily</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/Cyber" target="_blank">#Cyber</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/News" target="_blank">#News</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/Vulnerabilities" target="_blank">#Vulnerabilities</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/CodeIgniter4" target="_blank">#CodeIgniter4</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/CVE-2025-54418" target="_blank">#CVE-2025-54418</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/GitHub" target="_blank">#GitHub</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/advisory" target="_blank">#advisory</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/ImageMagick" target="_blank">#ImageMagick</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/handler" target="_blank">#handler</a><br><br><a href="https://thecyberexpress.com/codeigniter4-vulnerability-cve-2025-54418/" rel="nofollow noopener" target="_blank">Origin</a> | <a href="https://awakari.com/sub-details.html?id=2rZiKKbOU3nTafniR2qMMSE0gwZ" rel="nofollow noopener" target="_blank">Interest</a> | <a href="https://awakari.com/pub-msg.html?id=ByBVveuCAU415juchtLYfpyJ2GG&amp;interestId=2rZiKKbOU3nTafniR2qMMSE0gwZ" rel="nofollow noopener" target="_blank">Match</a>
2rZiKKbOU3nTafniR2qMMSE0gwZCodeIgniter4 Flaw CVE-2025-54418 Enables Remote Code Execution via File Uploads A major security flaw has been detected in the popular PHP framework CodeIgniter4. The tag of a critical vulnerabilit...<br><br><a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/Firewall" target="_blank">#Firewall</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/Daily" target="_blank">#Daily</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/Cyber" target="_blank">#Cyber</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/News" target="_blank">#News</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/Vulnerabilities" target="_blank">#Vulnerabilities</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/CodeIgniter4" target="_blank">#CodeIgniter4</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/CVE-2025-54418" target="_blank">#CVE-2025-54418</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/GitHub" target="_blank">#GitHub</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/advisory" target="_blank">#advisory</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/ImageMagick" target="_blank">#ImageMagick</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/handler" target="_blank">#handler</a><br><br><a href="https://thecyberexpress.com/codeigniter4-vulnerability-cve-2025-54418/" rel="nofollow noopener" target="_blank">Origin</a> | <a href="https://awakari.com/sub-details.html?id=2rZiKKbOU3nTafniR2qMMSE0gwZ" rel="nofollow noopener" target="_blank">Interest</a> | <a href="https://awakari.com/pub-msg.html?id=KBBDh6a2mCqPTbfW2dslvTQwwHA&amp;interestId=2rZiKKbOU3nTafniR2qMMSE0gwZ" rel="nofollow noopener" target="_blank">Match</a>
2rZiKKbOU3nTafniR2qMMSE0gwZCodeIgniter4 Flaw CVE-2025-54418 Enables Remote Code Execution via File Uploads A major security flaw has been detected in the popular PHP framework CodeIgniter4. The tag of a critical vulnerabilit...<br><br><a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/Firewall" target="_blank">#Firewall</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/Daily" target="_blank">#Daily</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/Cyber" target="_blank">#Cyber</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/News" target="_blank">#News</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/Vulnerabilities" target="_blank">#Vulnerabilities</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/CodeIgniter4" target="_blank">#CodeIgniter4</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/CVE-2025-54418" target="_blank">#CVE-2025-54418</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/GitHub" target="_blank">#GitHub</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/advisory" target="_blank">#advisory</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/ImageMagick" target="_blank">#ImageMagick</a> <a rel="nofollow noopener" class="mention hashtag" href="https://mastodon.social/tags/handler" target="_blank">#handler</a><br><br><a href="https://thecyberexpress.com/codeigniter4-vulnerability-cve-2025-54418/" rel="nofollow noopener" target="_blank">Origin</a> | <a href="https://awakari.com/sub-details.html?id=2rZiKKbOU3nTafniR2qMMSE0gwZ" rel="nofollow noopener" target="_blank">Interest</a> | <a href="https://awakari.com/pub-msg.html?id=DESne6VZgNuvWhlK8cxyTdBBqhE&amp;interestId=2rZiKKbOU3nTafniR2qMMSE0gwZ" rel="nofollow noopener" target="_blank">Match</a>
Álvaro R.<p>✨ New blog post ✨</p><p>Interactive ordering of dired items</p><p><a href="https://xenodium.com/interactive-ordering-of-dired-items" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">xenodium.com/interactive-order</span><span class="invisible">ing-of-dired-items</span></a></p><p><a href="https://indieweb.social/tags/emacs" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>emacs</span></a> <a href="https://indieweb.social/tags/oss" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>oss</span></a> <a href="https://indieweb.social/tags/elisp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>elisp</span></a> <a href="https://indieweb.social/tags/lisp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>lisp</span></a> <a href="https://indieweb.social/tags/dired" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>dired</span></a> <a href="https://indieweb.social/tags/imagemagick" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>imagemagick</span></a></p>
LinuxNews.de<p>ImageMagick unter Linux<br><a href="https://linuxnews.de/imagemagick-unter-linux/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">linuxnews.de/imagemagick-unter</span><span class="invisible">-linux/</span></a> <a href="https://social.anoxinon.de/tags/imagemagick" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>imagemagick</span></a> <a href="https://social.anoxinon.de/tags/gimp" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>gimp</span></a> <a href="https://social.anoxinon.de/tags/linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>linux</span></a></p>
Kazuky Akayashi ฅ^•ﻌ•^ฅ<p>​:nkoSunglass:​<span><br><br></span><a href="https://codeberg.org/KazukyAkayashi/square.sh" rel="nofollow noopener" target="_blank">codeberg.org/KazukyAkayashi/square.sh</a><span><br><br></span><a href="https://social.zarchbox.fr/tags/Imagemagick" rel="nofollow noopener" target="_blank">#Imagemagick</a></p>

Export photos with a border from Lightroom Classic

This is how I add a nice thick black border to my photos after I export them from Lightroom Classic using free software.

This is for macOS, but since the same software exists on Windows, you can do something similar there, but I haven’t used that platform in years, so YMMV.

I’m going to presume you’re familiar with export presets in Lightroom Classic. You’re going to use one of them to run a small script that does the magick.

Take a deep breath. You’re going to learn a lot in the next couple of steps. Persist, and it will be worth it.

Installing ImageMagick

To add the border you need to install ImageMagick using brew. Think of ImageMagick as a Swiss Army knife for images. While Lightroom excels at organizing and editing individual photos, ImageMagick can automatically resize hundreds of images, create contact sheets, add watermarks, or convert file formats. You can do all this without you having to click through each image individually.

Step 1: Open Terminal (It’s Not as Scary as It Sounds!)

Terminal is like a text-based way to talk to your Mac. Instead of clicking buttons, you type commands. Here’s how to find it:

  1. Press Command + Space to open Spotlight search
  2. Type “Terminal” and press Enter
  3. A black window will open. This is Terminal

Don’t panic if it looks intimidating! Think of it like switching from Auto mode to Manual on your camera. It gives you more control once you know what you’re doing.

Step 2: Install Homebrew (Your New Best Friend)

Homebrew is like an App Store for command-line tools. It makes installing software like ImageMagick incredibly easy. Here’s how to install it:

  1. Copy this entire command (click and drag to select it all):
    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  2. Paste it into Terminal (Command + V) and press Enter.
  3. You’ll be prompted to enter your Mac’s password (the same one you use to log in). Note: When you type your password, you won’t see any characters appear. This is normal for security reasons. Just type it and press Enter.
  4. The installation will take a few minutes. You’ll see lots of text scrolling by, and this is normal! Grab a coffee and let it do its thing.
  5. When it’s finished, you might see instructions about adding Homebrew to your PATH. If you see a message starting with “Run these two commands in your terminal,” copy and paste those commands one at a time.

Step 3: Install ImageMagick

Now that you have Homebrew installed, installing ImageMagick is incredibly simple:

  1. Type this command in Terminal:
    brew install imagemagick
  2. Press Enter and wait.
  3. This will download and install ImageMagick automatically. When it’s done, you’ll see your command prompt again (it looks like YourName@YourMac ~ % or similar).

Step 4: Test Your Installation

Let’s make sure everything worked:

  1. Type this command:
    magick -version
  2. If you see version information appear (something like “Version: ImageMagick 7.1.x”), congratulations! You’ve successfully installed ImageMagick.

Apart from adding borders to images, ImageMagick can also resize images, convert RAW files to Jpeg, add watermarks and more.

Your first ImageMagick script

Open TextEdit or your favourite text editor to create your black borders script. If you use TextEdit, you need to adjust the settings as follows.

Go to TextEdit → Preferences and under “New Document”

  1. Select “Plain text”.
  2. Uncheck “Smart quotes” and “Smart dashes”.

Copy this code into your editor before saving it in your Documents folder as add_black_borders.sh

#!/bin/bash# Add black borders to export imagestoday=$(date +%F)open ~/Pictures/for file in "$@"do        echo "Working on $file" > ~/export.log        /opt/homebrew/bin/magick "$file" -bordercolor black -border 15 /tmp/out.jpg >> ~/export.log 2>> ~/err.log        mv /tmp/out.jpg "$file"        rm "$file"_originaldone

Your computer can’t run the script without making it executable, so use this command to do that:

chmod +x ~/Documents/add_black_borders.sh

Add it to Lightroom Classic

Lightroom Classic has an “after export” setting in the export dialog you can use to modify the photo(s) you just exported. You’re going to write a small computer programme called a “shell script” that uses ImageMagick to add the border.

Right click on an image, go to Export and click on Export..... Select your export preset and scroll to the bottom, to “Post-Processing. It will look something like this. Click on the “After Export” setting and then on “Go to Export Actions Folder Now”.

A new Finder window will open there. It should be Library/Application Support/Adobe/Lightroom/Export Actions/ in your home directory.

Copy the script from your Documents folder to the Export Actions folder by dragging it from one folder to the other.

Export with Borders

Go to your desired export action in the Export... menu in Lightroom Classic. Scroll to the end, and the After Export setting will have your add_black_borders script.

Select that, and remember to update the settings for your export preset.

Export an image, and it should have a black border. The Pictures folder will pop up too, but you can change that in the script in the line that says open ~/Pictures/. Change that to wherever you put your exported images.

Customize the output

You can change the border width and colour in the script. Look at the magick line.

  1. It’s 15 pixels by default.
  2. -bordercolor black can be changed to whatever colour you want from this list.

Search online, and you’ll find other commands to further change how the border looks.

Bonus: split panoramas

Here’s a bonus script. Save it as panorama.sh in the Export Actions folder. Add it to an export action you use for horizontal panoramas. Vertical panoramas can be split using 100%x33.33% instead.

#!/bin/bashopen ~/Pictures/for file in "$@"; do        base=$(basename "$file" .jpg)        out=$(dirname "$file")        /opt/homebrew/bin/magick "$file"  -crop 33.33%x100% "${out}/${base}_split_%d.jpg"done

Gobbledygook?

I hope that made some sense, and it works for you. It is unfortunately technical, but take things slowly and carefully, and you’ll have beautiful borders on your exported photos!

Apertureƒ/8CameraILCE-7RM5Focal length172mmISO100Shutter speed5s

Ok, any #video folks out there who know how to do what I want to do? I don't know what words to search for because I don't know what this technique is called. Boosts welcome, suggestions welcome.

I have a pool cleaning robot. Like a roomba, but for the bottom of the pool. We call it poomba. Anyways, I want to shoot an MP4 video with a stationary camera (a GoPro) looking down on the pool while the robot does its work. So I will have this overhead video of like 3-4 hours.

I want to kinda overlay all the frames of the video into a single picture. So the areas where the robot drove will be dark streaks (the robot is black and purple). And any area the robot didn't cover would show the white pool bottom. Areas the robot went over a lot would be darker. Areas it went rarely would be lighter.

I'm just super curious how much coverage I actually get. This thing isn't a roomba. It has no map and it definitely doesn't have an internet connection at the bottom of the pool. (Finally! A place they can't get AI, yet!) It's just using lidar, motion sensors, attitude sensors and some kind of randomizing algorithm.

I think of it like taking every frame of the video and compositing it down with like 0.001 transparency. By the end of the video the things that never changed (the pool itself) would be full brightness and clear. While the robot's paths would be faint, except where it repeated a lot, which would be darker.

I could probably rip it into individual frames using #ffmpeg and then do this compositing with #ImageMagick or something (I'm doing this on #Linux). But 24fps x 3600 seconds/hour x 3 hours == about 260K frames. My laptop will take ages to brute force this. Any more clever ways to do it?

If I knew what this technique/process was called, I'd search for it.

Continued thread

Quant aux choix des dons, chaque salarié⋅e du 24ème a disposé de 14 tranches de 24€ à répartir aux projets libres de son choix. Ensuite, nous les avons mis en commun pour se répartir les paiements redondant. Une méthode bien efficace : en moins d'une demi journée, nous avons pu choisir et aider 30 projets.

Voici la liste des dons : github.com/24eme/banque/blob/m

(2/2)

Restoring a vector image without AI

Here I document an afternoon of toying with ImageMagick and using the properties of GIF in an attempt to cheat myself into a crisp raster image as if it were rendered freshly from a vector graphic.

https://www.sindastra.de/p/3581/restoring-a-vector-image-without-ai

Sindastra's info dump · Restoring a vector image without AI - Sindastra's info dump
More from Sindastra

Wanna make a tiny planet from an image with imagemagick? That's easy:

`magick IN.png -distort arc 360 OUT.png`

Wanna blend the 2 sides together? That's MUCH harder........

`in="IN.png"; w="$(magick identify -format '%w' "${in}")"; h="$(magick identify -format '%h' "${in}")"; magick "${in}" -gravity east -crop "$((w/20))x${h}+0+0" \( -size "${h}x$((w/20))" gradient:white-transparent -rotate 90 \) -alpha set -compose xor -composite \( "${in}" -gravity west -crop "$((w/20))x${h}+0+0" \) -compose dst-over -composite \( "${in}" -gravity center -crop 90%x100%+0+0 \) +append -strip tmp.png; magick tmp.png -distort arc 360 OUT.png; rm tmp.png;`

(WARNING: uses `tmp.png` as a temp image)

Still want to try and get rid of the dark banding around the blend but it's at least better than a seam line.

Imagemagick didn't like `-distort` after `+append` for some reason...... I think it's some kinda global image offset that `-strip` only fixes during saving?