Results 1 to 3 of 3

Thread: Any command-line tools for copying PNG chunks from A to B?

  1. #1
    Member Bloax's Avatar
    Join Date
    Feb 2013
    Location
    Dreamland
    Posts
    52
    Thanks
    11
    Thanked 2 Times in 2 Posts

    Any command-line tools for copying PNG chunks from A to B?

    Bad topic name, probably. And it's also kind of weird posting a topic here after being a lurker for what's probably over three-four years now. But yeah, pretty simple question:
    • Are there any batch-processing-friendly programs to copy some arbitary data chunks from one PNG file to another?


    • I'm asking because it doesn't seem to be of much interest (and it really is a stupendous minority), and because searching doesn't yield anything.


    • TweakPNG does it quite fine, but I would much prefer to just automate this.

    Thanks in advance, I guess? (/awkwardface) (And I have no idea why my linebreaks get converted to spaces, so enjoy the list tags which at least break it up.)

  2. #2
    Member caveman's Avatar
    Join Date
    Jul 2009
    Location
    Strasbourg, France
    Posts
    190
    Thanks
    8
    Thanked 62 Times in 33 Posts
    It's relatively easy to write since each chunk is an independent binary entity there are only a few ordering rules to follow, what kind of chunks would you like to move over? What behavior do you expect if the chunk already exists in the second file?

  3. #3
    Member Bloax's Avatar
    Join Date
    Feb 2013
    Location
    Dreamland
    Posts
    52
    Thanks
    11
    Thanked 2 Times in 2 Posts
    Pretty much an arbitrary "garbage" chunk which is important in this one engine I primarily do stuff for. Namely the "grAb" chunk, which is present in one, and not present in the other.. As for behavior, the optimal solution would be if one had to define it through a flag (eg. -f would force overwrite, otherwise it would bitch with an error at you), but overwriting without asking would do fine too.

Similar Threads

  1. UCLC (Ultimate Command Line Compressors) Benchmarks
    By osmanturan in forum Data Compression
    Replies: 2
    Last Post: 4th September 2015, 11:30
  2. Replies: 4
    Last Post: 2nd December 2012, 03:55
  3. command-line calculator for Windows?
    By Alexander Rhatushnyak in forum The Off-Topic Lounge
    Replies: 5
    Last Post: 30th January 2012, 00:40
  4. Comparison of lossless PNG compression tools
    By Surfer in forum Data Compression
    Replies: 54
    Last Post: 19th September 2011, 22:58
  5. DARK - a new BWT-based command-line archiver
    By encode in forum Forum Archive
    Replies: 138
    Last Post: 23rd September 2006, 21:42

Posting Permissions

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