I happy to put online my first Linux executable (even in beta state)! :)
Link: BitmapRip
BitmapRip is a simple tool able to extract bitmaps (JPG, PNG, GIF and TIFF, currently) from just about any file, searching for their signatures. It could be a game data file, an EXE with embedded graphics resource, etc. It can be used also to undelete images / photos from flash cards, simply pointing it to a disk image file.
The initial Win32 version was coded in PowerBASIC. Yesterday, I played a bit to see if it can easyly ported in FreeBASIC. It was about a 20 minutes jobs, and at the first "no errors compile", it worked. Then, I installed Ubuntu Linux on my iMac, trought Parallels VM, installed FreeBASIC, APT-GETed a couple of libraries, and got FreeBASIC compile the exact same source for Linux without any problems. Nice!
Feedback about the tool on Linux is very appreciated: in witch distro it works / don't works, problems, and so on. I tested it on Ubuntu and seems to works right (altough some displayed numers (like MB/s) are ugly formatted - my fault, will be fixed soon).
Hope the tool can be useful to someone!
Bye!
BitmapRip - Bitmap Ripper for Linux
Here's an usage sample:
Bye!
Code: Select all
zod@minivac:~/downloads$ ./bitmaprip ../DSL-502T_Manual.pdf
Bitmap Ripper v1.07b2/Linux (C) 2006 by M.Pontello
File size: 2.3MB
Searching for signatures...
100% - Found: 12
Writing file(s)...
../DSL-502T_Manual.pdf.0001.JPG - 165.0KB
../DSL-502T_Manual.pdf.0002.JPG - 144.0KB
../DSL-502T_Manual.pdf.0003.JPG - 40.0KB
../DSL-502T_Manual.pdf.0004.JPG - 62.0KB
../DSL-502T_Manual.pdf.0005.JPG - 142.0KB
../DSL-502T_Manual.pdf.0006.JPG - 45.0KB
../DSL-502T_Manual.pdf.0007.JPG - 31.0KB
../DSL-502T_Manual.pdf.0008.JPG - 43.0KB
../DSL-502T_Manual.pdf.0009.JPG - 36.0KB
../DSL-502T_Manual.pdf.0010.JPG - 21.0KB
../DSL-502T_Manual.pdf.0011.JPG - 23.0KB
../DSL-502T_Manual.pdf.0012.JPG - 1447.0KB
Elapsed time: 0.0s - Speed: 2318.5MB/s
-
- Posts: 385
- Joined: Oct 16, 2005 0:15
- Location: USA
- Contact:
@blahboybang:
Why not just modify the source yourself, its not hard...I assume, he's looking for the file signatures, then just mem copies from that point onto the end of the file [which is determined by some byte(s) in the header of the file, depends on which one it is]
This site is God: Wotsit, just type in the extension of the file and it'll give you a few links to the specification...
~Thrawn~
Why not just modify the source yourself, its not hard...I assume, he's looking for the file signatures, then just mem copies from that point onto the end of the file [which is determined by some byte(s) in the header of the file, depends on which one it is]
This site is God: Wotsit, just type in the extension of the file and it'll give you a few links to the specification...
~Thrawn~
-
- Posts: 385
- Joined: Oct 16, 2005 0:15
- Location: USA
- Contact:
-
- Posts: 385
- Joined: Oct 16, 2005 0:15
- Location: USA
- Contact:
Well, technically, ico and bmp are the same, you can literally just change a bitmap to ico extension and it'll be an icon...
He's right though, the sigs are only two bytes long...I do believe theres other bytes in the header that you can scan for and determine if it is a bmp or not [ie. if the bpp field is 10110101 then its not a bmp :p]
Not open source? oh sorry, didnt realize that, if Mark0 would be so kind as to show me the source I could modify it to check for bmps and icos no problem
~Thrawn~
He's right though, the sigs are only two bytes long...I do believe theres other bytes in the header that you can scan for and determine if it is a bmp or not [ie. if the bpp field is 10110101 then its not a bmp :p]
Not open source? oh sorry, didnt realize that, if Mark0 would be so kind as to show me the source I could modify it to check for bmps and icos no problem
~Thrawn~