aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
Diffstat (limited to 'graphics')
-rw-r--r--graphics/gimp-wideangle-plugin/README5
-rw-r--r--graphics/gimp-wideangle-plugin/gimp-wideangle-plugin.SlackBuild78
-rw-r--r--graphics/gimp-wideangle-plugin/gimp-wideangle-plugin.info11
-rw-r--r--graphics/gimp-wideangle-plugin/slack-desc19
-rw-r--r--graphics/gimp-wideangle-plugin/wideangle.html72
5 files changed, 185 insertions, 0 deletions
diff --git a/graphics/gimp-wideangle-plugin/README b/graphics/gimp-wideangle-plugin/README
new file mode 100644
index 000000000000..3e253b9a824e
--- /dev/null
+++ b/graphics/gimp-wideangle-plugin/README
@@ -0,0 +1,5 @@
+This is a gimp distortion plug-in (filter).
+
+The Wideangle filter is used to correct (or simulate) the distortion
+typically seen on photographs taken with a wideangle lens. There are
+six controls. \ No newline at end of file
diff --git a/graphics/gimp-wideangle-plugin/gimp-wideangle-plugin.SlackBuild b/graphics/gimp-wideangle-plugin/gimp-wideangle-plugin.SlackBuild
new file mode 100644
index 000000000000..0a4ddd628ca4
--- /dev/null
+++ b/graphics/gimp-wideangle-plugin/gimp-wideangle-plugin.SlackBuild
@@ -0,0 +1,78 @@
+#!/bin/sh
+# Slackware build script for <wideangle>
+# Written by Michales Michaloudes korgie@gmail.com
+
+PRGNAM=gimp-wideangle-plugin
+VERSION=${VERSION:-1.0.10}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+SRCNAM=$(echo $PRGNAM | cut -f2 -d-)
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+mkdir $TMP/$PRGNAM-$VERSION
+cp $CWD/$SRCNAM.c $TMP/$PRGNAM-$VERSION/
+cd $PRGNAM-$VERSION
+
+SRCVERSION=$(grep "^ \* version" wideangle.c | awk '{printf $3}')
+if [ $SRCVERSION != $VERSION ]; then
+ echo "Version mismatch, source = \"$SRCVERSION\""
+ exit 1
+fi
+
+# command "stolen" from gimp-tool.
+GIMPPLUGINS=usr/lib${LIBDIRSUFFIX}/gimp/2.0/plug-ins/
+mkdir -p $PKG/$GIMPPLUGINS
+gcc $SLKCFLAGS -v \
+ -I/usr/include/gimp-2.0 -I/usr/include/gtk-2.0 -I/usr/include/glib-2.0 \
+ -I/usr/lib${LIBDIRSUFFIX}/glib-2.0/include -I/usr/lib${LIBDIRSUFFIX}/gtk-2.0/include \
+ -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 \
+ -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 \
+ -o $PKG/$GIMPPLUGINS/$SRCNAM wideangle.c \
+ -lgimpui-2.0 -lgimpwidgets-2.0 -lgimpmodule-2.0 -lgimp-2.0 -lgimpmath-2.0 \
+ -lgimpconfig-2.0 -lgimpcolor-2.0 -lgimpbase-2.0 -lgtk-x11-2.0 -lgdk-x11-2.0 \
+ -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo \
+ -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lglib-2.0
+strip --strip-unneeded $PKG/$GIMPPLUGINS/$SRCNAM
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a $CWD/wideangle.html $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/graphics/gimp-wideangle-plugin/gimp-wideangle-plugin.info b/graphics/gimp-wideangle-plugin/gimp-wideangle-plugin.info
new file mode 100644
index 000000000000..3203f7b0a4ec
--- /dev/null
+++ b/graphics/gimp-wideangle-plugin/gimp-wideangle-plugin.info
@@ -0,0 +1,11 @@
+PRGNAM="gimp-wideangle-plugin"
+VERSION="1.0.10"
+HOMEPAGE="http://members.ozemail.com.au/~hodsond/wideangle.html"
+DOWNLOAD="http://members.ozemail.com.au/~hodsond/wideangle.c"
+MD5SUM="dd96615abbc761b4618ace94a29086c1"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+MAINTAINER="Michales Michaloudes"
+EMAIL="korgie@gmail.com"
+APPROVED="Niels Horn"
+
diff --git a/graphics/gimp-wideangle-plugin/slack-desc b/graphics/gimp-wideangle-plugin/slack-desc
new file mode 100644
index 000000000000..f71eb75fb7dc
--- /dev/null
+++ b/graphics/gimp-wideangle-plugin/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':'.
+
+ |-----handy-ruler------------------------------------------------------|
+gimp-wideangle-plugin: gimp-wideangle-plugin (distortion plug-in / filter for gimp)
+gimp-wideangle-plugin:
+gimp-wideangle-plugin: The Wideangle filter is used to correct (or simulate) the distortion
+gimp-wideangle-plugin: typically seen on photographs taken with a wideangle lens. There are
+gimp-wideangle-plugin: six controls.
+gimp-wideangle-plugin:
+gimp-wideangle-plugin:
+gimp-wideangle-plugin:
+gimp-wideangle-plugin:
+gimp-wideangle-plugin:
+gimp-wideangle-plugin:
diff --git a/graphics/gimp-wideangle-plugin/wideangle.html b/graphics/gimp-wideangle-plugin/wideangle.html
new file mode 100644
index 000000000000..0e4682febf2b
--- /dev/null
+++ b/graphics/gimp-wideangle-plugin/wideangle.html
@@ -0,0 +1,72 @@
+<html><head><title>Gimp Wideangle Filter</title></head>
+<body>
+<h1>Gimp Wideangle Filter</h1>
+<p>The Wideangle plugin is licensed under the GPL.<br/>
+The source code is available <a href="wideangle.c">here</a>. Latest version is
+1.0.10.<br/>
+<b>gimptool --install wideangle.c</b> will compile the plugin and install
+it in your local Gimp plugins directory.<br/>
+The plugin appears in the <b>Filters/Distorts</b> menu as
+<b>Wideangle...</b>.</p>
+<p>The Wideangle filter is used to correct (or simulate) the distortion
+typically seen on photographs taken with a wideangle lens. There are six
+controls.
+<dl>
+<dt>X Shift</dt>
+<dd>Adjusts the centre of the effect, from the left edge of the image (at -100.0),
+through the centre (at 0.0), to the right edge (at 100.0).</dd>
+<dt>Y Shift</dt>
+<dd>Adjusts the centre of the effect, from the top edge of the image (at -100.0),
+through the centre (at 0.0), to the bottom edge (at 100.0).</dd>
+<dt>Main</dt>
+<dd>Controls the amount of distortion. Negative values correct wideangle (barrel)
+distortion, while positive values create it (or correct pincushion distortion).</dd>
+<dt>Edge</dt>
+<dd>Like the <b>Main</b> control, but the <b>Edge</b> control has more effect
+at the edges of the image than at the centre.</dd>
+<dt>Zoom</dt>
+<dd>Zooms the entire image in or out.</dd>
+<dt>Brighten</dt>
+<dd>Adjusts the image brightness up or down with distance from the centre.
+Can be used to remove (or create) vignetting, the darkening of the corners
+of an image.</dd>
+</dl>
+</p>
+
+<p>The <b>Do Preview</b> toggle enables and disables the preview window.
+The preview can show either an overview of the whole image, or a detail view
+which shows a 5x5 array of full resolution closeups. The overview is useful for
+casual use, while the detail view
+allows you to create a precisely calibrated preset for a particular lens. To create
+a lens preset, use
+a photo of a grid pattern. Start by adjusting the <b>Main</b> control until the
+lines of the grid are as straight as possible. Use the <b>Shift</b> controls, if
+necessary, to correct for any asymmetry. Finally, if the best setting of the
+<b>Main</b> control leaves a &quot;wiggle&quot; in the lines, use the <b>Edge</b>
+control to remove it. (You may need to readjust the <b>Main</b> control a little.)
+Once you have the correct settings for a particular lens, you should be able
+to save the settings as a new preset and use them for all images taken with that
+lens.</p>
+
+<p>Or just play around.</p>
+
+<p>The preset controls allow you to reset everything, select a previously defined
+preset, or save the current settings (if they've been altered) under a new name.
+Preset names can contain (fairly) arbitrary characters. If you mess up the presets,
+they are stored in a text file under your Gimp user
+directory in the <code>wideangle</code> subdirectory.</p>
+
+<p>Regardless of the Gimp's settings, the Wideangle filter always uses cubic
+interpolation. This is not a bug, it's a feature.</p>
+
+<p><b>What's with the pop up menu on the &quot;select&quot; button?</b></p>
+
+<p>I originally had a regular option menu to select presets. However this had
+a drawback, namely that the displayed option was only correct until a control
+was adjusted. A pop up menu, although not the normal choice, provides exactly
+the correct model to the user.</p>
+
+<p>Written by David Hodson. Many thanks for suggestions and improvements
+to Lars Clausen. (But bugs are still my fault.)</p>
+
+</body></html>