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