From owner-freebsd-questions@freebsd.org Tue Aug 2 20:17:43 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7B37DBAD907 for ; Tue, 2 Aug 2016 20:17:43 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 438DF1DBE for ; Tue, 2 Aug 2016 20:17:42 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de (port-92-195-102-47.dynamic.qsc.de [92.195.102.47]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id 339423CE39; Tue, 2 Aug 2016 22:08:05 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id u72K85TX002068; Tue, 2 Aug 2016 22:08:05 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Tue, 2 Aug 2016 22:08:05 +0200 From: Polytropon To: Alphons van Werven Cc: Tim Daneliuk , FreeBSD Mailing List Subject: Re: thumbnail_index Message-Id: <20160802220805.c1003843.freebsd@edvax.de> In-Reply-To: <20160802190346.GA38539@spectrum.skysmurf.nl> References: <879b33bb-bcfa-7941-f638-5cba0eb741ce@tundraware.com> <20160802190346.GA38539@spectrum.skysmurf.nl> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Aug 2016 20:17:43 -0000 On Tue, 2 Aug 2016 21:03:46 +0200, Alphons van Werven wrote: > Tim Daneliuk wrote: > > > Is there a more modern tool available that does what thumbnail_index does > > (from a command line)? > > To anyone else reading this: > > Although the OP doesn't specify it, "thumbnail_index" probably refers to > the www/thumbnail_index port: > % make -C /usr/ports search name=thumbnail_index > Port: thumbnail_index-1998.08.10_4 > Path: /usr/ports/www/thumbnail_index > Info: Make an HTML index file for a bunch of images > [snip rest] > % cat /usr/ports/www/thumbnail_index/pkg-descr > thumbnail_index - make an HTML index file for a bunch of images > > Run this script in a web directory consisting of all or mostly image > files. It'll create an index.html of thumbnail images, putting > the thumbnail files in a hidden subdirectory. > > WWW: http://www.acme.com/software/thumbnail_index/ > > To the OP: > > Judging by the description, it sounds pretty straightforward to write a > shell script that uses ImageMagick (graphics/ImageMagick*). Feel free to > ask if you need help with that. That's exactly what I did in 2007 when I needed a "quick & dirty" "photo album" web page + thumbnail generator. Even though it's wrong and poorly done in so many ways, it supports CSS for styling the web page which consists of valid HTML. The thumbnail files have the suffix "_s.jpg" ("small"), and the result is put into a directory called "upload" designated for upload. Of course it uses ImagaMagic's "convert" command and has all the stuff hardcoded... ;-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...