Natenoms Wiki

Weil Teilen Spaß macht :)

Benutzer-Werkzeuge

Webseiten-Werkzeuge


Seitenleiste

Translations of this page:

Navigation



Lizenz dieses Wikis
Über dieses Wiki
Feed des Wikis
Impressum


Was gerade in meinem Blog geschieht:

en:linux:kde:servicemenues:thumbnail

Thumbnail für WordPress erstellen

Some WordPress themes allow to use small article images. For example the Yoko theme uses 140 pixel wide images. You can create them with this script.

cthumb.desktop
[Desktop Entry]
ServiceTypes=KonqPopupMenu/Plugin,image/*
Type=Service
Actions=cthumb;
X-KDE-ServiceTypes=KonqPopupMenu/Plugin
MimeType=application/octet-stream;
X-KDE-Submenu=Blogging
 
[Desktop Action cthumb]
Name=Create 140 Pixel wide thumb
Icon=
Exec=/usr/local/bin/cthumb.sh %f
cthumb.sh
#!/bin/bash
 
_file="${1}"
_newwidth=140
_filename="${_file##*/}"
_dirname=$(dirname "${_file}")
 
convert "${_file}" -resize "${_newwidth}x" "${_dirname}/${_newwidth}_${_filename}"
en/linux/kde/servicemenues/thumbnail.txt · Zuletzt geändert: 2017/02/20 12:49 von Natenom