topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday March 28, 2024, 12:30 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: BitmapRip - Bitmap Ripper  (Read 22980 times)

Mark0

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 652
    • View Profile
    • Mark's home
    • Donate to Member
BitmapRip - Bitmap Ripper
« on: March 24, 2006, 06:47 AM »
I quickly coded this simple tool the other day, out of a immediate need.
I tried a couple of tools but no one really worked the way I wanted.


It can extract embedded bitmaps (JPEG, PNG, GIF) from any given file. It search for bitmap's headers / signatures, and create a new file for every data block that "seems to be" a valid image. No particular things are done to "clean up" the extracted images (i.e., remove eventual garbage at the end of the file); if you want to get rid of that, simply open the files with a graphic tools / viewer of your choice and re-save them.

Can also be used as a recovery tool of some sort in certain situations, for example if you have an image file of a compact flash with accidentally deleted photos.

Link: BitmapRip 1.02

Hope it can be useful to someone.

Edit:
Updated the screenshot, and changed the sample file from a PDF to a PowerPoint one to show a little more variety in the extracted bitmaps.

Bye!
« Last Edit: March 24, 2006, 09:48 AM by Mark0 »

Carol Haynes

  • Waffles for England (patent pending)
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 8,066
    • View Profile
    • Donate to Member
Re: BitmapRip - Bitmap Ripper
« Reply #1 on: March 24, 2006, 07:02 AM »
Have you PDF Explorer at http://homepage.oniduo.pt/pdfe/ which give as nice graphical interface for extracting the images you want?

Mark0

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 652
    • View Profile
    • Mark's home
    • Donate to Member
Re: BitmapRip - Bitmap Ripper
« Reply #2 on: March 24, 2006, 07:21 AM »
Nice tools, thanks for mentioning it.
Anyway, the PDF extraction is just a sample; I built the utility to get the images out of any kind of file.

Bye!

Carol Haynes

  • Waffles for England (patent pending)
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 8,066
    • View Profile
    • Donate to Member
Re: BitmapRip - Bitmap Ripper
« Reply #3 on: March 24, 2006, 09:39 AM »
Right I missed that - useful idea.
« Last Edit: March 27, 2006, 05:43 PM by Carol Haynes »

tinyvillager

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 444
    • View Profile
    • Donate to Member
Re: BitmapRip - Bitmap Ripper
« Reply #4 on: March 27, 2006, 05:33 PM »


  Pretty cool,i created a screencast of it for anyone who is curious about it from a visual stand point.

Not the most exciting screencast,but hey i'm bored and i have to do something with my google space.


The size is somewhere in the area of 96 kbytes.
http://screencaster....s.com/Bitmaprip.html
 

Mark0

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 652
    • View Profile
    • Mark's home
    • Donate to Member
Re: BitmapRip - Bitmap Ripper
« Reply #5 on: March 27, 2006, 05:58 PM »
Very nice! Thanks!!

Bye!

Mark0

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 652
    • View Profile
    • Mark's home
    • Donate to Member
Re: BitmapRip - Bitmap Ripper
« Reply #6 on: March 29, 2006, 05:36 AM »
I updated the tool a little.
Now can work with files of any size, and it's pretty fast too (got about 70MB/s from a cached file).
I also tested it as a recovery tool. Copied some photos / images on a compact flash disk, quick formatted, then made an image with the free DriveImage XML (pretty good tool, BTW), and then it recovered back all the images.

Bye!

Mark0

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 652
    • View Profile
    • Mark's home
    • Donate to Member
Re: BitmapRip - Bitmap Ripper
« Reply #7 on: May 09, 2006, 04:01 AM »
Linux beta version available here! :)
Tested only under Ubuntu, but it shouldn't have any strange dependencies.



Bye!
« Last Edit: May 09, 2006, 06:58 AM by Mark0 »

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,959
    • View Profile
    • Donate to Member
Re: BitmapRip - Bitmap Ripper
« Reply #8 on: November 29, 2007, 04:42 AM »
hi

anyone got any tips on how to use this :)
unfortunately got a 404 on tinyvillagers screencast

Tried putting in folder name where file is then followed hints from image in first post
eg
F:\TIFFs\Cork>bitmaprip MAP0100.pdf
also tried using Temp folder??

thanks for any help :)
Tom

Mark0

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 652
    • View Profile
    • Mark's home
    • Donate to Member
Re: BitmapRip - Bitmap Ripper
« Reply #9 on: November 29, 2007, 05:01 AM »
It should work both specifying just a filename or path+filename.
What's the specific problem? It give out some errors, or don't find any bitmap to extract?

Bye!

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,959
    • View Profile
    • Donate to Member
Re: BitmapRip - Bitmap Ripper
« Reply #10 on: November 29, 2007, 05:15 AM »
First, the bitmaprip files are in
C:\Program files\bitmaprip\

I never use command line stuff so maybe I'm doing something wrong:
Win+R
then type:
bitmaprip MAP0100.pdf

I get the message:
---------------------------
bitmaprip
---------------------------
Windows cannot find 'bitmaprip'. Make sure you typed the name correctly, and then try again. To search for a file, click the Start button, and then click Search.
---------------------------
OK   
---------------------------

or, for
F:\TIFFs\ASI\ASI_CorkVol5>bitmaprip MAP0100.pdf
which is - the parent folder>etc filename
I get:

Windows cannot find 'F:\TIFFs\ASI\ASI_CorkVol5>bitmaprip'. etc

PS thanks for quick response!
Tom

Mark0

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 652
    • View Profile
    • Mark's home
    • Donate to Member
Re: BitmapRip - Bitmap Ripper
« Reply #11 on: November 29, 2007, 05:19 AM »
Oh, I see. You need to change to the folder where you unzipped/put the bitmaprip.exe file.
So, assumed that you unzipped the package in a c:\bitmaprip folder, you need to do something:

[Win]+[R]
CMD [ENTER]
(a Command Prompt window will open)

There you'll type:
CD \bitmaprip
bitmaprip F:\TIFFs\ASI\ASI_CorkVol5\MAP0100.pdf

Bye!

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,959
    • View Profile
    • Donate to Member
Re: BitmapRip - Bitmap Ripper
« Reply #12 on: November 29, 2007, 05:28 AM »
You need to change to the folder where you unzipped/put the bitmaprip.exe file.
So, assumed that you unzipped the package in a c:\bitmaprip folder, you need to do something:

sorry Marko,
I'm not fully clear there -
should I move it to c:\bitmaprip ?
(I would prefer to have it in a programme folder of sorts but wont loose any sleep over it :))

If I have it
C:\Program files\bitmaprip\

Should I type:-
CD Program files\bitmaprip bitmaprip F:\TIFFs\ASI\ASI_CorkVol5\MAP0100.pdf

or
because of the space, with "*" (or '*')
CD "Program files\bitmaprip" bitmaprip F:\TIFFs\ASI\ASI_CorkVol5\MAP0100.pdf
Tom

Mark0

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 652
    • View Profile
    • Mark's home
    • Donate to Member
Re: BitmapRip - Bitmap Ripper
« Reply #13 on: November 29, 2007, 05:46 AM »
When you have spaces in the path/filename, you must use quotes, yes.
So, first change directory:

cd "\program files\bitmaprip"

And then you could run the tool:

bitmaprip F:\TIFFs\ASI\ASI_CorkVol5\MAP0100.pdf

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,959
    • View Profile
    • Donate to Member
Re: BitmapRip - Bitmap Ripper
« Reply #14 on: November 29, 2007, 01:15 PM »
hmm..

cd "\program files\bitmaprip"
gives the message -
cant find "cd"

could this be a problem with my relatively fresh windows install.. :-\
indexing is turned off; search works okay;
help is turned off in services too I think, cant think of anything else that might be relevant.

This is the first time I've tried to run anything "non-windows" from command line -
windows stuff seem okay (regedit, perfmon.msc, etc)
Tom

Mark0

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 652
    • View Profile
    • Mark's home
    • Donate to Member
Re: BitmapRip - Bitmap Ripper
« Reply #15 on: November 29, 2007, 01:35 PM »
You first need to open to open a Command Prompt:

[Win]+[R]
CMD [ENTER]

Bye!

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,959
    • View Profile
    • Donate to Member
Re: BitmapRip - Bitmap Ripper
« Reply #16 on: November 29, 2007, 01:54 PM »
oops  :-[  will try now...
Tom

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,959
    • View Profile
    • Donate to Member
Re: BitmapRip - Bitmap Ripper
« Reply #17 on: November 29, 2007, 02:20 PM »
well I'm certainly getting places,
but no success with the chosen file for some reason
ignore the first few lines :-[
bitmaprip01.pngBitmapRip - Bitmap Ripper

the file is two scanned (A4) images
they arent very high resolution, not sure how file was made (could find out tomorrow)

I did try using "PDF Image Extraction Wizard" (trial) software earlier -
it was able to extract the images but reduced them to half their width (kept same height though :down:)
I've gotten round it by taking screenshots of the maps but would like to figure this out all the same if possible
At least it found the correct file and windows found it so I've learned quite a bit for an IT-analphabetic as Curt says.

:) also, thanks for your patience Marko
Tom

Mark0

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 652
    • View Profile
    • Mark's home
    • Donate to Member
Re: BitmapRip - Bitmap Ripper
« Reply #18 on: November 29, 2007, 02:23 PM »
:) also, thanks for your patience Marko
No problems! ;D
I'm just sorry that the tool wasn't really useful with your file, in the end.

Bye!