NAME

pics_remove_small.pl - remove small images from a list of images.

COPYRIGHT

Copyright (C) 2001, 2002 Mark Veltzer; All rights reserved.

LICENSE

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.

DETAILS

MANIFEST: pics_remove_small.pl
PROJECT: meta
VERSION: 0.12

SYNOPSIS

pics_remove_small.pl [options]

DESCRIPTION

Give this module a list of images and it will remove all images under a certail XxY size (either x or y counts). This module can work in 2 ways: 1. use the excellent Perl Magick library, create an image object for each image, get its size and take it from there. 2. use the Image::Size library from CPAN and just get the image size.

Method number 2 should be a lot faster since the image need not be read in full. In actual tests of 2000 images the second method (which is also the default) was found to be much faster (meaning more than 10 times faster...).

OPTIONS

help (type: bool, default: 0)

display help message

pod (type: bool, default: 0)

display pod options snipplet

man (type: bool, default: 0)

display manual page

quit (type: bool, default: 0)

quit without doing anything

gtk (type: bool, default: 0)

run a gtk ui to get the parameters

license (type: bool, default: 0)

show license and exit

show copyright and exit

description (type: bool, default: 0)

show description and exit

history (type: bool, default: 0)

show history and exit

verbose (type: bool, default: 1)

should I be noisy ?

demo (type: bool, default: 1)

should I just fake it ?

summary (type: bool, default: 0)

should I display summary ?

x (type: inte, default: 200)

minimum x size

y (type: inte, default: 200)

minimum y size

method (type: enum, default: magick)

what type of method to use ?

options [magick,imagesize]

directory (type: dire, default: .)

directory to scan

no free arguments are allowed

BUGS

None.

AUTHOR

Name: Mark Veltzer
Email: mailto:veltzer@cpan.org
WWW: http://www.veltzer.org
CPAN id: VELTZER

HISTORY

0.00 MV books XML into database
0.01 MV md5 project
0.02 MV database
0.03 MV perl module versions in files
0.04 MV movie stuff
0.05 MV thumbnail user interface
0.06 MV more thumbnail issues
0.07 MV website construction
0.08 MV improve the movie db xml
0.09 MV web site automation
0.10 MV SEE ALSO section fix
0.11 MV move tests to modules
0.12 MV bring movie data

SEE ALSO

Image::Magick(3), Image::Size(3), Meta::Ds::Enum(3), Meta::Utils::File::Iterator(3), Meta::Utils::File::Remove(3), Meta::Utils::Opts::Opts(3), Meta::Utils::Output(3), Meta::Utils::System(3), strict(3)

TODO

-add option to only produce of list of files to be removed.