ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Sun Oct 22, 2017 3:15 pm

All times are UTC




Post new topic  Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Edit an image BYTE-SIZE
PostPosted: Wed Jan 18, 2017 2:48 pm 
User avatar

Joined: Mon Nov 07, 2016 5:49 am
Posts: 33
I want to make a modded image the exact bytes-size(not pixel size) of an original one!
How can i do that?
Please help!


Top
   
PostPosted: Wed Jan 18, 2017 8:05 pm 

Joined: Wed Aug 13, 2014 10:00 am
Posts: 115
Wow! So much information! Now we can start guessing the format.
First try: PNG?


Top
   
PostPosted: Thu Jan 19, 2017 4:16 am 
User avatar

Joined: Mon Nov 07, 2016 5:49 am
Posts: 33
Yes, i need help on PNG.
I already can increase JPG by editing its EXIF.


Top
   
PostPosted: Fri Jan 20, 2017 1:13 pm 

Joined: Wed Aug 13, 2014 10:00 am
Posts: 115
Why you need the exact same file size?
For reimporting back into archive?

    If yes, could you use smaller PNG and the rest simply fulfill with zeroes?
  • If yes, try FileOptimizer (it has some optimization utils also for PNGs) which could make smaller (byte-wise) PNGs than original
  • If no, than there is probably no way to make a new PNG with same size


Top
   
PostPosted: Fri Jan 20, 2017 10:42 pm 
User avatar

Joined: Mon Nov 07, 2016 5:49 am
Posts: 33
Actually i found a way to do that by: opening the png in a hex editior and ad spaces to the end till i got the exact bytesize that i wanted(pics still get reconized/read by any programme but the game)
But, the game wont reconize the modded pngs ! Its probably Crc check.
Any ideas?


Top
   
PostPosted: Sat Jan 21, 2017 11:46 am 

Joined: Wed Aug 13, 2014 10:00 am
Posts: 115
I would firstly modify few bytes in the original image, to check if it really has a crc check.
If that's the case, you will have to find where are stored the checksums and modify the one you need.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 6 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited