Howto rotate a picture in the plane

Asked by steve

Is there a simple way to rotate a picture in shutter (just in plane, not using the 3d-rotate plugin)?

Question information

Language:
English Edit question
Status:
Answered
For:
Shutter Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Mario Kemper (Romario) (mario-kemper) said :
#1

Currently it is not possible to rotate an image, because it is not very
common to rotate a screenshot. Maybe we should consider to add this
functionality. It should not be too hard to accomplish.

Revision history for this message
Romano Giannetti (romano-giannetti) said :
#2

This very simple plugin (drop it in .shutter/plugins/shell/rotate/) will rotate 90 degrees clockwise:

#! /usr/bin/env bash

TEXTDOMAIN=shutter-plugins
TEXTDOMAINDIR=$SHUTTER_INTL
PLUGIN_NAME=$"Rotate"
PLUGIN_SORT=$"Effect"
PLUGIN_TIP=$"Rotate 90 clockwise"
PLUGIN_EXT="image/png;image/bmp;image/jpeg"

if [[ "${1}" = "name" ]];then
    echo "${PLUGIN_NAME}"
    exit 0
elif [[ "${1}" = "sort" ]];then
    echo "${PLUGIN_SORT}"
    exit 0
elif [[ "${1}" = "tip" ]];then
    echo "${PLUGIN_TIP}"
    exit 0
elif [[ "${1}" = "ext" ]];then
    echo "${PLUGIN_EXT}"
    exit 0
fi
FILE="${1}"

convert "$FILE" -rotate 90 "$FILE"

exit 0

Can you help with this problem?

Provide an answer of your own, or ask steve for more information if necessary.

To post a message you must log in.