Linux photo: Difference between revisions

From miki
Jump to navigation Jump to search
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Editors ==
=== ImageMagick ===
See main page [[Imagemagick]].

=== Gimp ===
See main page [[Gimp]].

== Duplicate finder ==
== Duplicate finder ==
From [http://linux.slashdot.org/story/14/01/23/2227241/does-anyone-make-an-photo-de-duplicator-for-linux-something-that-reads-exif?utm_source=rss1.0moreanon&utm_medium=feed]:
From [http://linux.slashdot.org/story/14/01/23/2227241/does-anyone-make-an-photo-de-duplicator-for-linux-something-that-reads-exif?utm_source=rss1.0moreanon&utm_medium=feed]:
Line 8: Line 15:
* See ''Geeqie'' (fuzzy matching), new vesion of ''gqview''
* See ''Geeqie'' (fuzzy matching), new vesion of ''gqview''
* Use a photo manager (shotwell,
* Use a photo manager (shotwell,
* [https://github.com/pkolaczk/fclones fclones] — very fast.

== Thumbnails ==
=== ffmpegthumbnailer ===
Requires {{deb|ffmpegthumbnailer}}:
<source lang="bash">
THUMBDIR=thumbnails
THUMBSUMMARY=summary.png

make_thumbnails()
{
if [ -d $THUMBDIR ]; then
mv $THUMBDIR $THUMBDIR-$(date +"%Y%m%d%H%M%S")
fi
# sudo apt install ffmpegthumbnailer
SIZE=512
mkdir -p "$THUMBDIR"

i=0
for f in *; do
[ "$f" = "$THUMBDIR" ] && continue
echo -- "$f"
ffmpegthumbnailer -s $SIZE -i "$f" -o "$THUMBDIR/$f-10.png" -c png -t 10
ffmpegthumbnailer -s $SIZE -i "$f" -o "$THUMBDIR/$f-20.png" -c png -t 20
((i++))
# [ $i -lt 5 ] || break
done
echo "Doing montage..."
montage -label %f -frame 5 -geometry "$SIZEx$SIZE+2+2>" $THUMBDIR/*.png $THUMBSUMMARY
mv $THUMBSUMMARY $THUMBDIR/
}
</source>

Note that the thumbnail summary can be quite big. Use viewer like {{deb|feh}} to view it. The same application can be used to view thumbnails easily:

<source lang="bash">
THUMBDIR=thumbnails
THUMBSUMMARY=summary.png

view_thumbnails()
{
# sudo apt intall feh
feh -dF --zoom fill $THUMBDIR
}

view_thumbnails_summary()
{
# sudo apt intall feh
feh $THUMBDIR/$THUMBSUMMARY
}


</source>

=== ffmpeg ===
<source lang="bash">
ffmpeg -itsoffset -5 -i "$srcimg" -vcodec mjpeg -vframes 1 -an -f rawvideo -s 200x200 -loglevel quiet "$dest"
</source>

Latest revision as of 14:23, 5 November 2023

Editors

ImageMagick

See main page Imagemagick.

Gimp

See main page Gimp.

Duplicate finder

From [1]:

  • Use ExifTool + own script
  • See findimagedupes in Debian (works even if file is modified a bit)
  • See fdupes (files must identical)
  • See fslint
  • See ssdeep
  • See Geeqie (fuzzy matching), new vesion of gqview
  • Use a photo manager (shotwell,
  • fclones — very fast.