Re: corel files cdr and cmx and thumbnails in it



"JohnShade" <profesor_kinbote@xxxxxxxxxxxxxx> wrote in message
news:1166613148.730576.223960@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
JohnShade napisal(a):
[jongware] napisal(a):
"JohnShade" <profesor_kinbote@xxxxxxxxxxxxxx> wrote in message
news:1166460689.302076.285230@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
How to extract miniature rester images which are contained in corel
vector
graphics files (I mean .cdr and .cmx) ? I have done a very notifable
amount of
work searching up and down the internet - and I do not know still
how
can I do it.

Ppl say that .cdr is (or was) proprietary format so i am not sure if
I
have a rights
to extract this thumbnail from it, but cmx should be free and is (
ppl
say )
documented by corel - but i still cannot find this documentation. I
ve
found
2 small pices of code by ppl in theme of reading cmx but it has not
enough information
to me and I still know almost nothing except that in this files
there
are sometimes
inside raster miniarures of proper vestor graphics in it. BUt where
exactly and exactly
in which format?

Use (or write) a program to examine these files. Somewhere near the
beginning you can see the bitmap, in a 256-indexed color format and
(most
likely!) of a fixed size -- perhaps, being thumbnail sized, something
like
64x64. Examining a number of files can tell you if the position of
this
bitmap in the file is always the same (likely), or there is an offset
very
close to the start of the file which points to it. The 256 colors are
(again, most likely) taken from a fixed palette, or there are 256 RGB
color
values very close to the start of the file.
The reason everything is "close to the start of the file" is so
programs
which want to display the preview do not have to read the entire file
first.
The reason for making the layout as simple as possible (fixed position
in
the file, fixed size, and fixed color palette) is to make reading and
displaying as fast as possible.
Note that Corel may have the option of saving without thumbnail, so
you
can't always rely on this information -- but again, some flag in the
file
header should tell you.

[Jongware]

You're right! Indeed i tried it and i ve done it, There It was simple
(speakin about .cdr
because cmx are still mystery for me)- in cdr there is from offset 0x14
an regular
256 color bitmap with about 14 bytes of headrer "damaged"
(overvritten), - so read from
stream, cut and recreate this few bytes and there we have a bitmap.

JSh

sorry for my bad english

cmx is very simple too - i post it for a some man who maybe will
searching through
usenet in this theme ;) - same as cdr except there is a 24b bitmap (no
paltte)
and bitmap offset in cmx is 0x116 no 0x014 as in cdr)

Congratulations! Not only do you have a fish to eat, but you know how to
catch one as well.

[Jongware]


.



Relevant Pages

  • Re: corel files cdr and cmx and thumbnails in it
    ... How to extract miniature rester images which are contained in corel ... Ppl say that .cdr is proprietary format so i am not sure if I ... to extract this thumbnail from it, but cmx should be free and is (ppl ... bitmap in the file is always the same, or there is an offset very ...
    (comp.programming)
  • Re: Deleting un(?)reachable code
    ... CDR form. ... Usually when I get these "deleting unreachable code" errors its because I did something stupid, generally rather far from the code which is flagged. ... Why does the compiler single out the format strings as ...
    (comp.lang.lisp)
  • Deleting un(?)reachable code
    ... CDR form. ... Why does the compiler single out the format strings as ... ; note: deleting unreachable code ... (def-inline usable (word fortree baktree &optional verbose) ...
    (comp.lang.lisp)
  • Re: Format not an option for D:
    ... you don't format CD-R media. ... you still would rarely format a CDR for usage. ... Associate Expert - WindowsXP Expert Zone ...
    (microsoft.public.windowsxp.general)
  • Re: Win2k and CDRs
    ... UDF format, you will ... >need a UDF reader installed on your PC (or on every CDRW ... The problem exists with either CDR or CDRWs. ... Further, the installation of Win2K is virgin, that is ...
    (microsoft.public.win2000.hardware)