473,398 Members | 2,403 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

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:
http://groups.google.com/group/comp....ff4049a7bfdfc0
Oct 26 '08 #1
3 4160
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
Oct 26 '08 #2
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.

Oct 27 '08 #3
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:

http://www.imagemagick.org/download/...ck-0.8.tar.bz2

Carl K
Oct 27 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Abhijit Soman | last post by:
Where can i find curses module for windows? I have pdcurses library on windows. But python binary doesnot include curses module. Thanks, Abhijit
14
by: Jonny | last post by:
Hey all, Just a query, How does WUS (Windows Update Service) work? How does it identify what patches to install, and what are not valid patches for OS/Software Installed?? I know this isn't...
1
by: Chris Q. | last post by:
I have two different servers, a test server and a live server. My IT Manager ran windows update on the live server and now none of my ASP.NET Button Server controls work. The test server works...
2
by: postings | last post by:
It's now available here: http://msdn.microsoft.com/netframework/downloads/updates/default.aspx I just wondered if anybody knew when .Net FrameWork ver 2.0 will be available via Windows/Microsoft...
0
by: Gidi | last post by:
Hi, I have DataGrid which one of it's cells is a cell represting a date, I have KeyUp and KeyDown Events for this cell so after the day is entered i'm putting a "/" and after the month another...
60
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I prompt a "Save As" dialog for an accepted mime type?...
0
by: Brian | last post by:
Hello, I'm having a little trouble with the Windows Update Agent API (WUApiLib). I've got code working that pulls back a list of updates from Microsoft, but they're specific to the system I'm...
1
by: =?Utf-8?B?TXIuIFQ=?= | last post by:
When I power down for the day, I am presented with a notice that an update is in progress and to not turn off power manually (it will occur automatically). The screen remains and the text flashes,...
0
by: Larry Hale | last post by:
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.