Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#1 it only sees the last images in a list

closed-fixed
Martin Blais
None
9
2001-08-01
2001-07-31
Anonymous
No

Subject:
Curator 1.0 Bug
Date:
Tue, 31 Jul 2001 10:38:06 -0500
From:
Randy Parker <randyp@sardis.dfab.sc.ti.com>
To:
blais@IRO.UMontreal.CA

Found a bug in curator 1.0 where it only "sees" the
last image in a list of like-named images.

-------------------------------------------
sardis (~/public_html/temp): ls
billy-xmas-001.jpg billy-xmas-004.jpg
billy-xmas-007.jpg
billy-xmas-002.jpg billy-xmas-005.jpg
billy-xmas-008.jpg
billy-xmas-003.jpg billy-xmas-006.jpg
billy-xmas-009.jpg

sardis (~/public_html/temp): curator
====> validating options
====> templates input and compilation
fetching template template-image.html
looking in
/home/randyp/public_html/temp/template-image.html
falling back on simplistic default templates.
fetching template template-dirindex.html
looking in
/home/randyp/public_html/temp/template-dirindex.html
falling back on simplistic default templates.
fetching template template-allindex.html
looking in
/home/randyp/public_html/temp/template-allindex.html
falling back on simplistic default templates.
fetching template template-trackindex.html
looking in
/home/randyp/public_html/temp/template-trackindex.html
falling back on simplistic default templates.
====> gathering image list and attributes files
found image billy-xmas-009.jpg
====> thumbnail generation
generating thumbnail billy-xmas-009--thumb.jpg
====> index generation
==> directory index generation
generating index page for dirindex.html
==> track index generation
==> global index generation
generating index page for allindex.html
====> image page generation
generating image page for billy-xmas-009.jpg
====> done.

sardis (~/public_html/temp): ls
allindex.cidx billy-xmas-004.jpg
billy-xmas-009.html
allindex.html billy-xmas-005.jpg
billy-xmas-009.jpg
billy-xmas-001.jpg billy-xmas-006.jpg
billy-xmas-009--thumb.jpg
billy-xmas-002.jpg billy-xmas-007.jpg dirindex.html
-------------------------------------------

As you can see from this example only
billy-xmas-009.jpg
was ever seen by the program.

I've also noticed dirindex.html files not being present
in recursive directories. For example, everything's
fine
in the image root dir, but no dirindex.html will be
present
in any lower lever directory.

Regards,
Randy Parker
Dallas, Texas

Discussion

  • Martin Blais
    Martin Blais
    2001-07-31

    • priority: 5 --> 9
     
  • Martin Blais
    Martin Blais
    2001-07-31

    Logged In: YES
    user_id=10996

    Hi Randy.

    Thanks for your bug report, I believe I know what this is,
    this is a python imghdr.what() bug I think, which doesn't
    seem to recognize some jpgs. I discovered the same problem
    this morning.

    Can you try running the following:

    $ python
    ...
    > import imghdr
    > print imghdr.what( 'billy-xmas-008.jpg' )
    ...
    > print imghdr.what( 'billy-xmas-009.jpg' )
    ...

    I suspect you get different results because you probably
    manipulated (e.g. gimp, imagemagick, xv,...) the 009 image.

    If imghdr.what() doesn't recognize one of these it's the bug
    I thnk it is.

    I know where it is and how to fix it.

    In the meantime, you can use the --fast option to circumvent
    the problem (it looks for the files by name only and gets a
    little sloppy on other checks)

     
  • Martin Blais
    Martin Blais
    2001-07-31

    • assigned_to: nobody --> blais
     
  • Martin Blais
    Martin Blais
    2001-08-01

    Logged In: YES
    user_id=10996

    Fixed in 1.0.1.

     
  • Martin Blais
    Martin Blais
    2001-08-01

    • status: open --> closed-fixed