BitmapRip - Bitmap Ripper for Linux

User projects written in or related to FreeBASIC.
Mark0
Posts: 46
Joined: Jul 25, 2005 14:45
Location: Venice, Italy
Contact:

BitmapRip - Bitmap Ripper for Linux

Postby Mark0 » May 09, 2006 8:57

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!

Image

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!
Mark0
Posts: 46
Joined: Jul 25, 2005 14:45
Location: Venice, Italy
Contact:

Postby Mark0 » May 11, 2006 12:05

Here's an usage sample:

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


Bye!
Thrawn89
Posts: 477
Joined: Oct 08, 2005 13:12

Postby Thrawn89 » May 11, 2006 21:22

Nice work, I could use something like that...unfortunately, Im not a linux communist XD...lol, though Id probally get the win version...

~Thrawn~
blahboybang
Posts: 385
Joined: Oct 16, 2005 0:15
Location: USA
Contact:

Postby blahboybang » May 14, 2006 0:05

woah, those programs are awesome, especially trid. Hey, is there any chance you can get BitmapRip to find ico files? Those are the most common image files used in internal windows apps. There's a lot of awesome icons there.
Thrawn89
Posts: 477
Joined: Oct 08, 2005 13:12

Postby Thrawn89 » May 14, 2006 2:57

@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~
blahboybang
Posts: 385
Joined: Oct 16, 2005 0:15
Location: USA
Contact:

Postby blahboybang » May 14, 2006 3:55

from wotsit, it looks like bmp and ico are exactly the same. Why can't the program detect them? do they have different headers?
blahboybang
Posts: 385
Joined: Oct 16, 2005 0:15
Location: USA
Contact:

Postby blahboybang » May 14, 2006 3:56

and how the heck am I supposed to modify the source when he hasn't released it? The program is NOT open souce.
Mark0
Posts: 46
Joined: Jul 25, 2005 14:45
Location: Venice, Italy
Contact:

Postby Mark0 » May 14, 2006 8:29

:)

Yes, unfortunately ICO & BMP aren't easy to spot via brute-force scanning, because their header is either too short or too common.

Bye!
Thrawn89
Posts: 477
Joined: Oct 08, 2005 13:12

Postby Thrawn89 » May 14, 2006 13:33

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~

Return to “Projects”

Who is online

Users browsing this forum: No registered users and 4 guests