Register - Login
Views: 99831182
Main - Memberlist - Active users - Calendar - Wiki - IRC Chat - Online users
Ranks - Rules/FAQ - Stats - Latest Posts - Color Chart - Smilies
05-03-22 09:22:44 PM
Jul - Computers and Technology - Programming Help - Adding a zTXt tag to a PNG New poll - New thread - New reply
Next newer thread | Next older thread
Sukasa

Level: 123


Posts: 2615/4326
EXP: 20936860
For next: 294406

Since: 07-07-07


Since last post: 1.1 years
Last activity: 1.1 years

Posted on 07-24-10 01:39:31 AM Link | Quote

So yeah, I'm having issues with some code I'm trying to write. I need to write a zTXt tag to a PNG file (has to be zTXt, for compatibility with another program). I'm using the FreeImage library, but it only seems to write iTXt chunks, which are similar (zTXt is compressed, iTXt is not) but not readable by the other program

More information @ http://stackoverflow.com/questions/3316050/freeimage-write-ztxt-tag-to-png

Anyone able to help me at all?

____________________
* hydrapheetz puts on the kittydunce hat
OmnipotentEntity
User
Level: 11


Posts: 16/16
EXP: 4422
For next: 1563

Since: 04-07-09


Since last post: 11.8 years
Last activity: 9.5 years

Posted on 07-24-10 05:46:54 PM (last edited by OmnipotentEntity at 07-24-10 02:47 PM) Link | Quote
It actually looks like you're going to want to your key be "zTXt" and your tag ID is optional and not required and your tag value is just zlib zipped ISO-8859 text.

I'd write it out, but I'm stupid at Visual BASIC.

This is probably stupid and wrong. But I read over the freeimage documentation and if it works how I assume it works then yay.
Sukasa

Level: 123


Posts: 2619/4326
EXP: 20936860
For next: 294406

Since: 07-07-07


Since last post: 1.1 years
Last activity: 1.1 years

Posted on 07-26-10 03:56:40 AM Link | Quote

I ended up making this work the pigheaded way - I just grabbed the FreeImage source files and changed the png code in it to replace all the write_itxt calls to wite_ztxt

____________________
* hydrapheetz puts on the kittydunce hat
Next newer thread | Next older thread
Jul - Computers and Technology - Programming Help - Adding a zTXt tag to a PNG New poll - New thread - New reply


Rusted Logic

Acmlmboard - commit 47be4dc [2021-08-23]
©2000-2022 Acmlm, Xkeeper, Kaito Sinclaire, et al.

29 database queries, 1 query cache hits.
Query execution time: 0.076952 seconds
Script execution time: 0.008977 seconds
Total render time: 0.085929 seconds