
Image Manipulation Service Menu - imagemagick
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
Service Menu for image manipulation in KDE. Works fine in Dolphin or konqueror.
HOWTO INSTALL KDE 5x:
1) Needs packages imagemagick, ocrmypdf and gksu to be installed (install from package management)!
2) Extract archive and extract the archives within the archive
3) Extract content from folder within archive 'usr-share-kservices5-servicemenus' in this folder:
/usr/share/kservices5/ServiceMenus/
(you have to be root to do that. Start "gksu thunar" or "gksu yourfilemanager" in order to become root)
4) Insert content of folder 'home-scripts' in your home folder in a subfolder called 'scripts'. So for example:
/home/myusername/scripts/
5) Restart Dolphin or Konqueror
6) Open this file as root: /etc/ImageMagick-7/policy.xml
And change this line --> policy domain="coder" rights="none" pattern="PDF" to this: policy domain="coder" rights="reader | write" pattern="PDF"
7) Finished! Simply click right on image file and go to 'Actions' and then 'Images' and convert images. A new file will be created so no original files are overwritten.
OLD: HOWTO INSTALL KDE 4x:
1) Needs package imagemagick to be installed (install from package management)!
2) Extract archive and extract the archives within the archive
3) Insert content archive 'home-kde-share-kde4-services-ServicMenus.zip' in your home folder:
/home/yourusername/.kde/share/kde4/services/ServiceMenus/
4) Insert content 'home-scripts.zip' in your home folder in a subfolder called 'scripts'. So for example:
/home/myusername/scripts/
5) Restart Dolphin or Konqueror
6) Finished! Simply click right on image file and go to 'Actions' and then 'Images' and convert images. A new file will be created so no original files are overwritten.
FEATURES:
-Resize images to 1200px, 800px, 150px
-Rotate image +90, -90, 180 degrees
-Convert image to PNG or JPG OR PDF
-Intensify color
-Convert to grayscale
-Auto correct brightness
-Create shadow around PNG file
-OCR PDF-Files (English and German). You need to have the package ocrmypdf installed.
-Insert logo.png (inserts a Logo-File called "logo.png" from same folder and places it in Image in the bottom-right corner)
FEATURE REQUESTS:
For additional feature requests please comment below and I will add features if possible.
OCR-fucntionality added 1 year ago
OCR-fucntionality added
OCR-fucntionality added 1 year ago
OCR-fucntionality added
stalin2000
1 year ago
But at the moment I don't know how. @gassauer: I implemented your OCR-Suggestion
Report
gassauer
1 year ago
Report
gassauer
1 year ago
using ocr as a prefix the ocr file is not located next to the original in alphabetic order.
just my 2 cents - very nice indeed.
ocr-pdf-ger.sh
#!/bin/bash
_file="${1}"
_directory=$(dirname "$_file")
_filename=$(basename "$_file")
_filename=`echo ${_filename} | sed -e 's/.pdf/_ocr.pdf/'`
ocrmypdf -l deu "${_file}" "${_directory}/${_filename}"
Report
BJIacTeJIuH
2 years ago
Report
KDE4WasBetter
3 years ago
Report
snock
3 years ago
Report