Replies: 6 comments
-
Create a logo 256 x 256 pixels in jpg format called shred_db.jpg (Note! Use this same file name otherwise you will need to edit a few more files)
Note the number 27063, it will most likely be different for you, so make a note of it. Open the file
change the value 27063 to the value you found in the earlier step. Then compile. |
Beta Was this translation helpful? Give feedback.
-
The original shred_db.c and shred_db.h can be found in nwipe's source under ../src/embedded_images/ these are the files you want to overwrite. Although you will also find the .jpg files here they are not used by nwipe in any way, either during compilation or when the program is running. Nwipe only uses the data contained within shred_db.c & shred_db.h to create the graphics. |
Beta Was this translation helpful? Give feedback.
-
It's very important that you correctly edit the lines in create_pdf.c with the new value found in shred_db.c If you get it wrong you will get segmentation faults. |
Beta Was this translation helpful? Give feedback.
-
@PartialVolume Whoa! You are genius, how crazy is this. HAHA. I spent like 6 hours recompiling, moving files, etc.... and everytime I got done with the wipe and saved and viewed report the same graphics were in pdf file. I was like baffled thinking "...what in the heck is the methods these graphics were created?" HAHA. I'll try it out! Thank you for the quick replies. |
Beta Was this translation helpful? Give feedback.
-
P.S. I'm now snickering to self thinking of when others will try to change graphics. LOL |
Beta Was this translation helpful? Give feedback.
-
No problem, let ,me know how it goes. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I have tried to figure out how to rebuild the nwipe source with new graphics ( Change the ShredOS and use different graphics for wipe/erase confirmation) but I cannot figure out how to do it.
I'm not sure how exactly it works/flows. I slightly understand it looks to be going from an .jpg file, getting converted to some type of embeddable C code into the pdf.
Can Marti or anyone else help me with how to use PDFgen and create new graphics for the PDF document to be created?
Beta Was this translation helpful? Give feedback.
All reactions