"Robert" == Robert O'Connor <[EMAIL PROTECTED]> writes:

Robert> I don't know what your database is distributing, but with the color support

BTW: Color Support: Last time i tested it i noticed that in bpp=2 very
light gray text are converted to white in the viewer.

Robert> Would want to keep any calls to this, renderable in other HTML viewers,
Robert> perhaps a syntax thus of putting the 1bpp as src parameter and rest as
Robert> increasing depth:
Robert> <img src="photo.gif" src2bpp="photo_2bpp.gif" src4bpp=""
Robert> src8bpp="photo_8bpp.gif">
Robert> or letting src be any depth:
Robert> <img src="photo.gif" src1bpp="photo_1bpp.gif" src2bpp="photo_2bpp.gif"
Robert> src4bpp="" src8bpp="photo_8bpp.gif">
Robert> Parser, upon finding a src1bpp paramter while parsing an img tag, would then
Robert> build a imagefamily entry with the specified standard b&w, 2bp,
Robert> no-entry-for-4bpp-grays (empty quotes after src4bpp tells viewer just want
Robert> to drop to use the 2bpp on 4bpp instead of including a separate image), and
Robert> a 8bpp color version.

Instead to use the imagefamily (were are get problems with the 60KB
limit) why not use the HTML syntax you describe an create all the
bitdepths in different images. Lets say we have:

  <img src="photo.gif" src1bpp="photo_1bpp.gif" src2bpp="photo_2bpp.gif"
  src4bpp="" src8bpp="photo_8bpp.gif">

Then the viewer create 3 image record in the Database. For example
 Record 20 = the tbmp of photo_1bpp.gif in bpp1
 Record 21 = the tbmp of photo_2bpp.gif in bpp2
 Record 22 = the tbmp of photo_8bpp.gif in bpp8

And in the phtml record there are an new Function code say:
  If bpp1: display rec 20 image here
    If bpp2: or bpp4 display rec 21 here
      if bpp8: or more display rec 22 here

 I _guess_ this cause a very small overhead and not much work in the
 viewer code.
      
Robert> It is unlikely that the viewer will ever start dithering color images down,

The OS do that for you. On my OS3.5.2 with max bpp2 I see bpp8
pictures in the DB as bpp2 (auto dithered by the OS). But sure this
give not the best results.

Robert> imagefamily=1,2,8
Robert> to generate 1,2, and 8 bpp versions for all images found during the pluck,
Robert> and include them as  output for the imagefamily part of the document data.
Robert> Also allow access to autogenerate of versions on an img by img basis with:
Robert> <img src="photo.gif" IMAGEFAMILY >

But IMHO making an imagefammily from one source does not help (For
Example a Photo auto dithered to pbb1 i may wan't not see). To give
really usable results its need a special designed picture for every
bpp.

Robert> I could use this feature myself also as it would make
Robert> distribution/maintenance easier. Most of the image I am using are just b&w
Robert> so can be currently addressed, but some images would benefit from having
Robert> some extra colors to work with.

But always take care about users memory. As a user of prebuild
databases i still prefer an Database that contain _only_ the stuff
that _i_ could display and i not wan't waste (my tiny) memory with
some large bpp16 pictures i never see.


And distribution/maintenance of different bpp version DBs are really
easy *). So why not distribute the DBs in this why?

cu,
 Dirk

*) Lets say you source HTML are in Subdir C:\Infos\HTML. Putt all the
HTML stuff in the and do the images in with <img src="img1.gif">. Then
put the different bpp images in C:\Infos\BPP1 and C:\Infos\BPP2 and so
on. Then if you build the DB call a Batch:

 Del C:\Infos\HTML\*.gif
 Del C:\Infos\HTML\*.jpg
 Copy C:\Infos\BPP1\. C:\Infos\HTML\.
 plucker-build -f xxxxx_bpp1 -H xxxxxx .... -bpp=1
 Del C:\Infos\HTML\*.gif
 Del C:\Infos\HTML\*.jpg
 Copy C:\Infos\BPP2\. C:\Infos\HTML\.
 plucker-build -f xxxxx_bpp2 -H xxxxxx .... -bpp=2
 ..you get the point..

Then after you have updated your HTML run this Batch and you get all
you DBs in one go.
-- 
Permanent URLs to the latest Version (1.1.13) of the Plucker Windows installer
 - For the Webpage: http://www.dirk-heiser.de/plucker
 - Direct Download: http://www.dirk-heiser.de/plucker/plucker.exe [2.08MB]

Reply via email to