imagemagick - How to convert between bitmap (.bmp) file format types? -


I currently need to use schema (which uses PIL), it does not support some BMP files That's especially, with the recent Windows Paint program.

Example (from a traceback):

  img = data.imread (ruta) file "/usr/lib/pymodules/python2.7/skimage/io/_io "Impy img = call_plugin ('imread', fname, plugin = plugin, plugin_argarh) in the file" .py ", line 120," / usr /lib/pymodules/python2.7/skimage/io/_plugins/plugin.py " , Line 100, in the call return function (* args, ** kwargs) file "/usr/lib/pymodules/python2.7/skimage/ Io / _plugins / pil_plugin.py", line 19, imread im = Image.open (Fname) file "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 2001, factory (FP, filename) file in open return "/usr/lib/python2.7/dist- Packages / PIL / ImageFile.py ", in line 94, __init__self._open () file "/usr/lib/python2.7/dist-package/pil/bmpimageplugin", line 168, _Open in self._bitmap (offset = offset) file "/usr/lib/python2.7/dist-packages/PIL/ Increase IOError in "BmpImagePlugin.py", line 100, _bitmap ("unsupported BMP header type (% d)"% len (s)) IOError: unsupported BMP header type (124)  

I How can I convert these BMP files to an old format?

I tried:

  mogrify -format bmp -define bmp: format = bmp4 * .bmp  

but this does not work Does

"BMP 4" is a new format instead, instead of getting older formats, BMP2 or BMP3 Try it.


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -