Uploaded image for project: 'Forrest (Retired)'
  1. Forrest (Retired)
  2. FOR-990

PluginGallery misbehaves on images ending with .JPG vs. .jpg.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 0.8
    • None
    • None
    • Low

    Description

      Images ending with JPG do not receive equal treatment as those ending in jpg. Specifically {file}.small.jpg and {file}.thumb.jpg are not created for images ending in JPG. From CFAS's broken-links.xml:
        <link message="/home/kronenpj/src/svn/cfas/src/documentation/content/xdocs/images/gallery/planet/mars20030710x.jpg (No such file or directory)" uri="/gallery/
      planet/mars20030710x.thumb.jpg">
          <referrer uri="/gallery/planet/index.html"/>
          <referrer uri="/gallery/planet/index_1.html"/>
        </link>

      mars20030710x.JPG is the source file under xdocs/images/gallery/planet.

      This is not the only example of where this occurs. I have the following {file}.JPG images in the PhotoGallery source directory and all of them exhibit similar errors in broken-links.xml:
      ./lunar/DSCF0023.JPG
      ./lunar/Mare_Australe_4.JPG
      ./lunar/DSCF0018.JPG
      ./planet/Venus.11.JPG
      ./planet/mars20030710x.JPG
      ./planet/mars20030726x.JPG
      ./messier/M16WH.JPG
      ./ngc/ngc2024.JPG

      The workaround of course is to rename the source files. I don't believe it's the intention of the plugin to dictate the case-style for filenames. Also, converting a file to a different case on Windows is mildly difficult as the Windows file system is case-insensitive. I'm working on a Gentoo Linux box running Sun's JDK 1.5.0.11.

      I've tried tweaking resources/stylesheets/dir-to-galleryHome.xsl and resources.xmap where JPG is referenced in a few different ways, but I couldn't generate anything that worked. I'll chalk that up to not understanding what I was doing.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kronenpj Paul Kronenwetter
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: