Results 1 to 14 of 14

Thread: A reliable batch image conversion tool

  1. #1
    Member m^2's Avatar
    Join Date
    Sep 2008
    Location
    Ślůnsk, PL
    Posts
    1,611
    Thanks
    30
    Thanked 65 Times in 47 Posts

    A reliable batch image conversion tool

    Just found a second silent data corruption bug in ImageMagick's convert, I'm too tired of it and I don't trust these are the only ones.

    Can anyone offer me alternatives?
    I need a tool to convert BMP to PNM.
    It would be nice to have something that would split PNGs into rgb/alpha parts; I used ImageMagick here and I haven't seen any problem, but I don't trust it. I think I'll have to verify it somehow.

  2. #2
    Member Surfer's Avatar
    Join Date
    Mar 2009
    Location
    oren
    Posts
    203
    Thanks
    18
    Thanked 7 Times in 1 Post
    Have you tried XNView, XNViewMP, XNConvert or NConvert?
    http://www.xnview.com/en/index.html

  3. #3
    Member m^2's Avatar
    Join Date
    Sep 2008
    Location
    Ślůnsk, PL
    Posts
    1,611
    Thanks
    30
    Thanked 65 Times in 47 Posts
    No, I'll try, thanks.

  4. #4
    Member m^2's Avatar
    Join Date
    Sep 2008
    Location
    Ślůnsk, PL
    Posts
    1,611
    Thanks
    30
    Thanked 65 Times in 47 Posts
    I have another problem.

    I can't verify whether conversion is correct because ImageMagick's compare is probably broken too. Yesterday I submitted a bug report to Ken Silverman and he claims that his tool is fine. I don't know how to check it.
    On to a search engine...

    ADDED:
    Found this.
    It's indeed an ImageMagick bug.

    ADDED:
    This tool is buggy too.
    Last edited by m^2; 26th November 2011 at 10:59.

  5. #5
    Member chornobyl's Avatar
    Join Date
    May 2008
    Location
    ua/kiev
    Posts
    153
    Thanks
    0
    Thanked 0 Times in 0 Posts

  6. #6
    Member m^2's Avatar
    Join Date
    Sep 2008
    Location
    Ślůnsk, PL
    Posts
    1,611
    Thanks
    30
    Thanked 65 Times in 47 Posts
    Thanks, though what I really need is PNM and it doesn't seem to support it.

  7. #7
    Member m^2's Avatar
    Join Date
    Sep 2008
    Location
    Ślůnsk, PL
    Posts
    1,611
    Thanks
    30
    Thanked 65 Times in 47 Posts
    I think that nconvert has correctness issues too. I attached a file that I think is converted to a bitmap incorrectly, but I'm not 100% positive about it.
    I tested it in the following ways:
    imagemagick compare - different. But I've seen false positives with it (and false negatives too).
    imagediff - identical. But I've seen false negatives with it (and false positives too). Actually I suspect that it ignores transparency entirely, so I have extremely little trust for this result.
    nconvert bmp->png then imagemagick compare. Different
    imageworsener converting the original image to bitmap->hex editor. Doesn't work, worsener doesn't support bitmaps with transparency
    kakadu bmp->jp2 then imagemagick. Error again.
    Imagemagick original->bmp, then compare in the hex editor. I can't say that I understood what's up, but they were different
    use imagemagick to stip alpha channel from the original image. It was fully transparent. Repeat with the xnview bitmap - it was fully opaque. Furthermore, by looking at the xnview bitmap in a hex editor I've seen that the pixel was all-zero, which I think means fully opaque.

    So as you see, imagemagick was a part of every test that indicated an error.
    Any ideas? Maybe some user of this forum has their tools to rip png internals and could look into it?

    ADDED: The forum makes it hard to download 1-pixel transparent images, so I'm adding a 7-zip version.
    At least I see that Firefox considers the image to be transparent as it doesn't draw a dot with a different colour.
    Attached Images Attached Images  
    Attached Files Attached Files
    Last edited by m^2; 27th November 2011 at 21:18.

  8. #8
    Member m^2's Avatar
    Join Date
    Sep 2008
    Location
    Ślůnsk, PL
    Posts
    1,611
    Thanks
    30
    Thanked 65 Times in 47 Posts
    I have a definitive answer. Nconvert is broken.
    It outputs some mess when converting the attached image to bmp.
    Attached Images Attached Images  

  9. #9
    Member
    Join Date
    May 2008
    Location
    HK
    Posts
    160
    Thanks
    4
    Thanked 25 Times in 15 Posts
    nconvert 5.90 works here. It generates 32bpp(A8R8G8B bmp file. (XnView supports, but other image viewers may not supports such format, i.e. treat it as X8R8G8B8 and ignore the alpha channel)

  10. #10
    Member m^2's Avatar
    Join Date
    Sep 2008
    Location
    Ślůnsk, PL
    Posts
    1,611
    Thanks
    30
    Thanked 65 Times in 47 Posts
    I used the latest at thet moment, 6.01, and it totally messed up RGB data. Or replaced it with Alpha. Or something. Anyway, it looks totally wrong.
    ADDED: Now I tried viewing it with XnView and it was messed up too. If their own viewer doesn't display it correctly, I guess it is broken for real.
    Last edited by m^2; 7th December 2011 at 10:55.

  11. #11
    Member
    Join Date
    May 2008
    Location
    HK
    Posts
    160
    Thanks
    4
    Thanked 25 Times in 15 Posts
    I tried 6.01(** NCONVERT v6.01 (c) 1991-2011 Pierre-E Gougelet (Nov 15 2011/13:36:36) **) here and it's fine too.
    cc56184af3365f08d2d25cbd42e45c44 *e2001.png
    6ad8d9486549b6e4c1d4876764ed1eec *e2001.bmp
    Attached Files Attached Files

  12. #12
    Member m^2's Avatar
    Join Date
    Sep 2008
    Location
    Ślůnsk, PL
    Posts
    1,611
    Thanks
    30
    Thanked 65 Times in 47 Posts
    I get the same image.
    It seems to be another kind of bug.
    When I open it via command line (xnview path\e2001.bmp) I see a broken image, just like with other tools. When I use XnView to browse to it, then everything is fine.

  13. #13
    Member Karhunen's Avatar
    Join Date
    Dec 2011
    Location
    USA
    Posts
    91
    Thanks
    2
    Thanked 1 Time in 1 Post
    FYI, the unique color count with Irfanview on the PNG file is 100, but with the BMP it is 60. I checked the BMP with an ancient tool, Image Alchemy, and it correctly identifies it as a 32bit BMP file. Irfanview only sees the BMP as 24 bit. I wonder if the ffmpeg tool could help you, as it supports writing raw YUV; or the gbmtools which also have source http://heikon.home.tlink.de/frames/gbm_tools.html

  14. #14
    Member
    Join Date
    Aug 2012
    Location
    Alaska
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi everyone!!

    I have used ReaConverter Pro software for batch image editing. ReaConverter Pro software is an batch image converter that converts one image file format (like a JPG, BMP, TIF, etc.) into another. If we are unable to use a photo, graphic, or any kind of image file the way we would like because the format isn't supported, ReaConverter Pro software can help. ReaConverter makes image processing and converting picture simple.
    Last edited by Ryan Ron; 6th August 2012 at 16:22.

Similar Threads

  1. LZMA markup tool
    By Shelwien in forum Data Compression
    Replies: 13
    Last Post: 29th November 2015, 23:05
  2. New GUI tool
    By encode in forum Data Compression
    Replies: 31
    Last Post: 18th November 2010, 22:55
  3. Compression idea: Base conversion
    By Nightgunner5 in forum Data Compression
    Replies: 8
    Last Post: 30th October 2009, 08:58
  4. compression trace tool
    By Shelwien in forum Data Compression
    Replies: 6
    Last Post: 19th August 2009, 04:52
  5. Replies: 4
    Last Post: 17th March 2008, 22:19

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •