Module python-magic on/for Windows - UPDATE: WORKING & HowTo!!!

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Larry Hale

    Module python-magic on/for Windows - UPDATE: WORKING & HowTo!!!

    Thank you, again, Michael, for all your help many months ago.

    I *FINALLY* got a HowTo done up; please see http://wiki.python.org/moin/HowTo/FileMagic

    I've also emailed Mr. Hupp to see if he'll re-post the SWIG version;
    he's working on a newer binding (forget... ctypes??) and once that
    one's working... :)

    But for now...


    Cheers,
    Larry


    REF:

  • Carl K

    #2
    Re: Module python-magic on/for Windows - UPDATE: WORKING & HowTo!!!

    Larry Hale wrote:
    Thank you, again, Michael, for all your help many months ago.
    >
    I *FINALLY* got a HowTo done up; please see http://wiki.python.org/moin/HowTo/FileMagic
    >
    I've also emailed Mr. Hupp to see if he'll re-post the SWIG version;
    he's working on a newer binding (forget... ctypes??) and once that
    one's working... :)
    I need to convert pdf to png, which imagemagic convert does, I think by using
    ghostscript. a little over a year ago I tried with some imagemagic (there are
    at least 2 i think) and neither seemed close to working (for pdf that is.) any
    idea if pdf conversion is working?

    Carl K

    Comment

    • Michael Torrie

      #3
      Re: Module python-magic on/for Windows - UPDATE: WORKING & HowTo!!!

      Carl K wrote:
      I need to convert pdf to png, which imagemagic convert does, I think by using
      ghostscript. a little over a year ago I tried with some imagemagic (there are
      at least 2 i think) and neither seemed close to working (for pdf that is.) any
      idea if pdf conversion is working?
      python-magic isn't about image conversion. libmagic has nothing to do
      with ImageMagick. It's a library for identifying what type of file
      something is based in it's signature (magic number). This is the same
      library that drives the unix "file" command.

      Comment

      • Carl K

        #4
        Re: Module python-magic on/for Windows - UPDATE: WORKING & HowTo!!!

        Michael Torrie wrote:
        Carl K wrote:
        >I need to convert pdf to png, which imagemagic convert does, I think by using
        >ghostscript. a little over a year ago I tried with some imagemagic (there are
        >at least 2 i think) and neither seemed close to working (for pdf that is.) any
        >idea if pdf conversion is working?
        >
        python-magic isn't about image conversion. libmagic has nothing to do
        with ImageMagick. It's a library for identifying what type of file
        something is based in it's signature (magic number). This is the same
        library that drives the unix "file" command.
        >
        I was wondering why the docs didn't seem very image related.... Someone may want
        to add a note that python-magic isn't PythonMagick:



        Carl K

        Comment

        Working...