Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

11
  • Does the actual contents matter? Your question suggests not so you could simply use a tool to expand the file to the correct size superuser.com/questions/299329/resize-a-file-in-command-prompt and the remaining data would simply be zeroes.
    – Mokubai
    Commented Sep 19, 2023 at 7:48
  • Or add a comment: superuser.com/questions/556315/gif-image-exif-tags
    – Berend
    Commented Sep 19, 2023 at 8:24
  • @Mokubai, Yes the actual contents matter (a logo picture). I can easily expand a given 2 KB .gif file by adding zero-bytes at the end. But then it won't be a correct GIF file. For example a GIF has to end with 3B hex or 00 3B hex (I need to check). There are maybe other conditions to make a valid GIF file.
    – Basj
    Commented Sep 19, 2023 at 8:33
  • 1
    Ohhh you're right @Berend, I didn't think about this :) Sorry, my bad! I thought you were speaking about setting a "size" metadata to a bigger value :)
    – Basj
    Commented Sep 19, 2023 at 8:41
  • 1
    Okay, writing now... Commented Sep 19, 2023 at 10:30