Thumbnails über die Kommandozeile erstellen

T

thewilli

Mitglied
Hi!

Ich möchte auf einem Rechner ohne installierten X Server über die Kommandozeile Thumbnails (png oder jpg) einer festen größe erstellen bzw. die Bilder über die Kommandozeile skalieren.

Gibt es da ein (kostenloses) tool?

Danke!
 
Hallo
Ja, das geht z.B. mit imagemagick

...
Description: Image manipulation programs
Imagemagick is a set of programs to manipulate various image formats
(JPEG, TIFF, PhotoCD, PBM, XPM, etc...). All manipulations can
be achieved through shell commands as well as through a X11 graphical
interface (display).
.
Possible effects: colormap manipulation, channel operations, thumbnail
creation, image annotation, limited drawing, image distortion, etc...
.
This package suggests a postscript interpreter (gs) to read postscript
files. It will however function happily without it (as long as you don't
want to read postscript).

Ein Beispiel wie sowas mit einem kleinen Perlscript zu realisieren ist, findest du z.B. hier

Gruß Wolfgang
 
Da müsste doch das Programm 'convert' bei sein, oder?! Damit mache ich das immer...

Mfg, Lord Kefir
 
1. @Lord Kefir:
Lord Kefir schrieb:
Da müsste doch das Programm 'convert' bei sein, oder?! Damit mache ich das immer...

The convert program is a member of the ImageMagick(1) suite of tools.
Use it to convert between image formats as well as resize an image, blur, crop, despeckle, dither, draw on, flip, join, re-sample, and much more.

2. @thewilli:
Code:
convert input.png -thumbnail 30x30 output-thumb.png

Geht mit PNG, sowie mit JPG, sowie von PNG nach JPG und von JPG nach PNG
 

Ähnliche Themen

KS Installation über lokale FTP Repository (Start von USB-Stick)

Keine Zugriff von Windows 10 auf Sambafreigaben

Summe von Zahlen in einer Zeilen bilden

Nvidia Hybrid-Grafikkarte: 3D Beschleunigung will nicht

CentOS 7 Grafikkarte auswählen

Zurück
Oben