Skip to main content
8 events
when toggle format what by license comment
Jun 16, 2020 at 22:53 vote accept person the human
Jun 16, 2020 at 22:06 comment added person the human oh! i thought w mode added new data. I guess that's why there's an 'a' mode too, because i used to think they did the same thing.
Jun 16, 2020 at 4:37 history edited Cliff B CC BY-SA 4.0
deleted 389 characters in body
Jun 16, 2020 at 4:32 comment added Cliff B Jeez. I must've been half asleep. I'll edit my answer to correct a misinterpretation that I made. But the problem is still that the files only contain 512 bytes.
Jun 15, 2020 at 22:02 comment added person the human Update: I can't see why my code would ignore all the data in the image besides the canvas. what i imagine my code does is (in pseudo code): 1: read next 512 bytes of data. 2: if they contain the jpeg header, then increase num (which starts at -1). 3: if num > -1, copy all newly read data into the jpeg that i am currently on. this should repeat untill i am less than 512 bytes away from EOF (which i guess could affect final image but i will fix it later). what am i missing and how could i implement what you desctibed in your answer?
Jun 15, 2020 at 21:51 comment added person the human i used the infinite loop the make the program not have to keep track and only stop when i say so for simplicity and efficiency. i will try my best to implement what you have said and if it works i will gladly press the check mark, but either way thanks for trying! :)
Jun 15, 2020 at 21:43 history edited Cliff B CC BY-SA 4.0
added 462 characters in body
Jun 15, 2020 at 21:37 history answered Cliff B CC BY-SA 4.0