| Latest discussions |
|---|
|
Hintergrund ändern bei Makro Aufnahmen (Photoshop)
Updated 6 months ago 2 replies |
|
Links zu Tutorials etc. / Links for tutorials
Updated 10 months ago 1 reply |
|
PDF-Präsentatio n in Photoshop
Updated 10 months ago |
| Self frame |
|
Kalender with ImageMagick
Updated 11 months ago 1 reply |
|
GIF-Animation mit ImageMagick
Updated 11 months ago |
|
Veränderung mit Photoshop Elements
Updated 11 months ago 6 replies |
|
Rahmen
Updated 11 months ago 1 reply |
|
macrostudio im Eimer
Updated 12 months ago 4 replies |
|
"Available Light" Portrait
Updated 12 months ago 1 reply |
| ... view all the discussions |
|
Self frameposted by Byggvir of BarleyPosted on Thursday January 1st, 2009 at 11:30. 45 visits. ( permalink ) |
For creating of self framed picture you can find a description in the usage pages of ImageMagick
I had improved the first example bit and put everything in a script "selfframe" so that I can apply it easyly on a picture. You find the script at the bottom.
The script is called with one parameter, the name of the picture. It uses only one convert command which does the following:
You can do some more adjustments to the underlying frame. For example you could convert it to b/w with -modulate 100,0,100 before adding the border or blur it several times.
Here comes the script:
#!/bin/bash
# selfframe
# creating a self framed picture
DEBUG="ON"
For creating of self framed picture you can find a description in the usage pages of ImageMagick
I had improved the first example bit and put everything in a script "selfframe" so that I can apply it easyly on a picture. You find the script at the bottom.
The script is called with one parameter, the name of the picture. It uses only one convert command which does the following:
You can do some more adjustments to the underlying frame. For example you could convert it to b/w with -modulate 100,0,100 before adding the border or blur it several times.
Here comes the script:
#!/bin/bash
# selfframe
# creating a self framed picture
DEBUG="ON"
PICTURE="$1"
PDIR=`dirname ${PICTURE}`
PNAME=`basename ${PICTURE}`
if [ $DEBUG = "ON" ]
then
echo "Picture=${PICTURE}"
echo "PDIR=${PDIR}"
echo "PNAME=${PNAME}"
fi
convert ${PICTURE} \
\( -clone 0 -resize 130% +level 20%x100% \
-blur 0x20 -bordercolor black -border 10x10 \) \
\( -clone 0 -bordercolor black -border 10x10 \) \
-delete 0 -gravity center -composite "$PDIR/sf_${PNAME}"
You must be logged on to post a reply. Sign in now?
Latest comments
–
Subscribe to the comment feed for this topic.