#Debian #gnome #ImageEditor I really want a simple image crop and resize tool that works with the clipboard. So often I see an image online that I'd like to forward but it is ridiculous in some way (a 2000x1000 PNG of 10 words of text with a dappled background, say. All 1MB of it).

Firing up GIMP is slow and complex. Pinta is better but painful to install, does not like large files (20MP+ camera photos) and crashes a lot, while gThumb only works on files.

Is there a better program?

@moz If you are willing to use the terminal, the command line makes this really easy. "sudo apt install imagemagick", if it isn't installed, and then use the convert tool. As in "convert image.png -resize 300 small-image.png"

The 300 scales it down so the long side is 300 pixels.

@knasman how do I do that from an image in the clipboard without using another program to turn it into a file, then put it back on the clipboard afterwards? The IM docs suggest that clipboard integration only works on windows.

@moz @knasman

Improved version; takes original from clipboard and places converted image into clipboard:

#!/usr/bin/sh
FILEPATH=/tmp/convert_and_copy_to_clipboard
wl-paste > $FILEPATH
convert -resize 20% $FILEPATH $FILEPATH.webp
wl-copy < $FILEPATH.webp