[ale] Bulk jpg Thumbnail production from 137000 jp2 files??

Wolf Halton wolf.halton at gmail.com
Wed Feb 20 12:05:56 EST 2013


Sparr:
You have brought me full circle. How cool is that, and as obvious a
clue-by-four as one could hope for.  My first stab at it was:
find -type f -name "*.jp2" -exec convert {} -resize 14% **.jpg* \;
and as y'all know, that didn't work out too well, because of my expectation
of wildcard expansion.  It just produced a series of overwrites on "*.jpg"
in the parent folder.  The next approach of was a for loop and my solution
to having name.jp2.jpg was a slicing maneuver.  It worked, at least inside
a single folder.
Now I am going to see how your find command runs against my subfolders.  I
suspect I will have a bunch of name.jp2.jpg files, but it is worth it if I
can run it against all the subfolders at once, and take a break.


On Wed, Feb 20, 2013 at 10:59 AM, Sparr <sparr0 at gmail.com> wrote:

> To avoid having to wrestle with different tools to make lists of files
> what I will often do in this situation is something like this:
>
> find -type f -name "*.jp2" -exec convert {} -resize 14% {}.jpg \;
>
> This will result in your thumbnails being named whatever.jp2.jpg which
> is not a horrible naming schema to have.
>
>
> On Wed, Feb 20, 2013 at 9:31 AM, Wolf Halton <wolf.halton at gmail.com>
> wrote:
> > Hi James - Thanks.
> > Works, but I am trying to convert files in sub-folders
> > find -type f -name "*.jp2" -exec convert {} -resize 14% *.jpg \;
> > was doing something, but basically it took each image in order and
> created a
> > file called *.jpg in the parent directory, over and over. Looking at it
> in
> > image-viewer is like watch ing a slow slide show, as the image changes.
> >
> >
> > On Wed, Feb 20, 2013 at 9:24 AM, James Sumners <james.sumners at gmail.com>
> > wrote:
> >>
> >> https://en.wikipedia.org/wiki/ImageMagick
> >>
> >> On Wed, Feb 20, 2013 at 9:07 AM, Wolf Halton <wolf.halton at gmail.com>
> >> wrote:
> >> > I have been poking around, and gui-graphics apps will do the job, but
> I
> >> > need
> >> > a monastery full of dedicated monks to work on it for a couple of
> years.
> >> > I
> >> > had a product on *That other OS*(tm) that could do this, but I am on
> >> > Debian
> >> > Wheezy and don't want to ship the drives all the way across from this
> >> > cubicle to the other, or install samba on the Debian machine to mount
> >> > the
> >> > drives on the machine with *That other OS*(tm).
> >> >
> >> > --
> >> > Wolf Halton
> >> > This Apt Has Super Cow Powers - http://sourcefreedom.com
> >> > Open-Source Software in Libraries - http://FOSS4Lib.org
> >> > Advancing Libraries Together - http://LYRASIS.org
> >> > Apache Open Office Developer wolfhalton at apache.org
> >> >
> >> > _______________________________________________
> >> > Ale mailing list
> >> > Ale at ale.org
> >> > http://mail.ale.org/mailman/listinfo/ale
> >> > See JOBS, ANNOUNCE and SCHOOLS lists at
> >> > http://mail.ale.org/mailman/listinfo
> >> >
> >>
> >>
> >>
> >> --
> >> James Sumners
> >> http://james.roomfullofmirrors.com/
> >>
> >> "All governments suffer a recurring problem: Power attracts
> >> pathological personalities. It is not that power corrupts but that it
> >> is magnetic to the corruptible. Such people have a tendency to become
> >> drunk on violence, a condition to which they are quickly addicted."
> >>
> >> Missionaria Protectiva, Text QIV (decto)
> >> CH:D 59
> >> _______________________________________________
> >> Ale mailing list
> >> Ale at ale.org
> >> http://mail.ale.org/mailman/listinfo/ale
> >> See JOBS, ANNOUNCE and SCHOOLS lists at
> >> http://mail.ale.org/mailman/listinfo
> >
> >
> >
> >
> > --
> > Wolf Halton
> > This Apt Has Super Cow Powers - http://sourcefreedom.com
> > Open-Source Software in Libraries - http://FOSS4Lib.org
> > Advancing Libraries Together - http://LYRASIS.org
> > Apache Open Office Developer wolfhalton at apache.org
> >
> > _______________________________________________
> > Ale mailing list
> > Ale at ale.org
> > http://mail.ale.org/mailman/listinfo/ale
> > See JOBS, ANNOUNCE and SCHOOLS lists at
> > http://mail.ale.org/mailman/listinfo
> >
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
>



-- 
Wolf Halton
This Apt Has Super Cow Powers - http://sourcefreedom.com
Open-Source Software in Libraries - http://FOSS4Lib.org
Advancing Libraries Together - http://LYRASIS.org
Apache Open Office Developer wolfhalton at apache.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ale.org/pipermail/ale/attachments/20130220/110018fd/attachment-0001.html>


More information about the Ale mailing list