Validating PNG Files

2011-02-05
2013-05-27
  • Jacob Quisenberry

    I use JHOVE 1.5 on Windows XP SP 2, and I would like to validate PNG files. I see that there is a file called PngModule.jar at jhove-1_5\jhove\lib.

    How can I configure JHOVE to use the module? Once it is configured to use the module, will the module be listed under Edit -> Select Module?

    Thank you,

    Jacob

     
  • Gary McGath

    Gary McGath - 2011-02-09

    The PNG module isn't part of the standard distribution, so you have to edit jhove/conf/jhove.conf  to recognize it. You'll find a number of <module> elements there; add one with a <class> subelement that has the fully qualified class name of the class for its content.  Then it should appear as a selectable module in the GUI. Make sure the jar is part of your classpath, of course.

     
  • Siddhant Goenka

    Siddhant Goenka - 2013-05-24

    Sir, I tried implementing PngModule and recompiled it using Apache Ant.
    I have edited the jhove.conf file but it is still giving initialization error.

    What should i give in the initialization option, the init(String string) function in the code is also empty.

    Kindly help me
    Thank You

    Siddhant

     
    • Gary McGath

      Gary McGath - 2013-05-24

      I'd forgotten there was a PNG module.

      Could you remind us where it's from? As I mentioned earlier in this
      thread, it's not part of the standard distribution. Maybe someone will
      be able to help.

      On 5/24/13 2:44 AM, Siddhant Goenka wrote:

      Sir, I tried implementing PngModule and recompiled it using Apache Ant.
      I have edited the jhove.conf file but it is still giving initialization error.

      What should i give in the initialization option, the init(String string) function in the code is also empty.

      Kindly help me
      Thank You

      Siddhant


      Validating PNG Files

      --
      Gary McGath garym@mcgath.com

       
  • Siddhant Goenka

    Siddhant Goenka - 2013-05-27

    Sir,

    PngModule is in the 'lib' directory of Jhove v1.9
    In the reply of Mr. Jacob Quisenberry you told to edit jhove.conf file found in the temporary folder on Windows and add a reference to PNG Module there.

    Along with that we need to add optional parameters like <init> and <param>, which are not defined in standard modules but need to be defined in PNG.

    So I am not able to understand how to define these options to execute this module.

     
    Last edit: Siddhant Goenka 2013-05-27
    • Gary McGath

      Gary McGath - 2013-05-27

      Ah, you're right, it is there, along with ODFModule.

      Unfortunately, these are third-party modules which I don't know anything
      about. Based on the file dates, they were added in 2008. I must have had
      reason at the time to think they were OK, but I just can't remember
      anything about them. Any discussion of them would have been on my
      Harvard email account, and I no longer have its archive.

      I looked on the Web to see if I could find any information about these
      but couldn't find anything. Sorry. Does anyone else on this list recall
      anything about them?

      On 5/27/13 5:28 AM, Siddhant Goenka wrote:

      Sir,

      PngModule is in the 'lib' directory of Jhove v1.9
      In the reply of Mr. Jacob Quisenberry you told to edit jhove.conf file found in the temporary folder on Windows and add a reference to PNG Module there.

      Along with that we need to add optional parameters like <init> and <param>, which are not defined in standard modules but need to be defined in PNG.

      So I am not able to understand how to define these options to execute this module.


      Validating PNG Files

      --
      Gary McGath garym@mcgath.com

       

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks