Welcome to TalkGraphics.com
Page 1 of 3 123 LastLast
Results 1 to 10 of 28
  1. #1

    Default export with "bmp" format with standard DPI headers

    This is quite specific because my employment is using software that is specialized for use with BMP's. I am not sure why we do not have the option to set the DPI header upon export. Every other software I have used includes this.

    Thank you
    RonC

  2. #2
    Join Date
    Nov 2000
    Location
    Red Boiling Springs TN USA
    Posts
    19,208

    Default Re: export with "bmp" format with standard DPI headers

    Ron can you attach a screen shot of any software's option to set a bmp dpi header?

    I don't recall ever seeing one.

    Microsoft bitmap images (.bmp) has always been a default of 96 dpi (standard windows resolution).
    Soquili
    a.k.a. Bill Taylor
    Bill is no longer with us. He died on 10 Dec 2012. We remember him always.
    My TG Album
    Last XaReg update

  3. #3
    Join Date
    Nov 2000
    Location
    Red Boiling Springs TN USA
    Posts
    19,208

    Default Re: export with "bmp" format with standard DPI headers

    This link shows the Windows bitmap file structure. http://www.fileformat.info/format/bm...86d9c/view.htm

    The header specification does not include any dpi information that I can find.
    Soquili
    a.k.a. Bill Taylor
    Bill is no longer with us. He died on 10 Dec 2012. We remember him always.
    My TG Album
    Last XaReg update

  4. #4
    Join Date
    Nov 2000
    Location
    Red Boiling Springs TN USA
    Posts
    19,208

    Default Re: export with "bmp" format with standard DPI headers

    Maybe you are referring to a .dib (device independant bitmap)? File structure: http://www.fileformat.info/format/bm...c67a4/view.htm

    The .dib still image format contains an embedded jpeg image which does support a dpi.
    Soquili
    a.k.a. Bill Taylor
    Bill is no longer with us. He died on 10 Dec 2012. We remember him always.
    My TG Album
    Last XaReg update

  5. #5
    Join Date
    Nov 2000
    Location
    Red Boiling Springs TN USA
    Posts
    19,208

    Default Re: export with "bmp" format with standard DPI headers

    It appears there is a resolution for Target Device in the BITMAPINFOHEADER structure.

    The values are normally set to zero although it is possible to set the number of pixels per meter that the target device supports.

    The biXPelsPerMeter is used for Horizotal resolution and biYPelsPerMeter for the Vertical resolution. Both refer to a specific target device resolution. An application can use those values to determine a specific bitmap within a resource group to send to a specific target device.

    The display screen is usually the target device for a .bmp image so the biXPelsPerMeter and biYPelsPerMeter are set to 0 by current applications creating an individual bitmap image for display.

    I'm not aware of applications that are created to support output devices that work using Pixels Per Meter, although it sounds like a good feature for (extremely) large format printers designed for billboards.
    Soquili
    a.k.a. Bill Taylor
    Bill is no longer with us. He died on 10 Dec 2012. We remember him always.
    My TG Album
    Last XaReg update

  6. #6

    Default Re: export with "bmp" format with standard DPI headers

    I can define further what I mean once I talk to my boss, he codes the software for this so he's pretty familiar with the .bmp file...

  7. #7
    Join Date
    May 2004
    Location
    Xara Group Ltd
    Posts
    415

    Default Re: export with "bmp" format with standard DPI headers

    Don't worry, we know all about the PelsPerMeter settings. The value equivalent to 96dpi is 3780 (actually 3779.53). Writing different values into these fields in a BMP used to (i.e. more than 10 years ago) cause many more problems than it solved but we should probably look at it again.

    Gerry

  8. #8
    Join Date
    Nov 2000
    Location
    Red Boiling Springs TN USA
    Posts
    19,208

    Default Re: export with "bmp" format with standard DPI headers

    Thanks Gerry, I wasn't worried.

    If the issue of setting values other than zero in those fields were resolved I think it would have been significant enough to have been heard around the world.
    Soquili
    a.k.a. Bill Taylor
    Bill is no longer with us. He died on 10 Dec 2012. We remember him always.
    My TG Album
    Last XaReg update

  9. #9

    Default Re: export with "bmp" format with standard DPI headers

    Here's what I mean, if you can access a program such as photoshop, you can see what I mean. You can open a .psd file with dpi for example of 300, and then export it as bmp. Reload the bmp into photoshop and do image properties and it will show 300 dpi. If you do this with a .psd file of a dpi of 600, and export, load bmp, and it will show 600 dpi in the image properties.

  10. #10

    Default Re: export with "bmp" format with standard DPI headers

    I think there is a difference between vector and bitmap formats as far as designing and exporting going on here. Not that XDP should not be able to allow for this. But the vector design is resolution independent. Combined with the fact that XDP doesn't allow the change in bitmap (BMP format) resolution directly. I.e., left by itself XDP wants to export at screen resolution and the drop down for changing this is disabled.

    So, I loaded a card design, a TIFF that is 300 dpi.

    Click image for larger version. 

Name:	card_tiff.png 
Views:	146 
Size:	42.2 KB 
ID:	82128

    I then loaded this TIFF into XDP7. When I go to export, this is what I see:

    Click image for larger version. 

Name:	export_01.png 
Views:	166 
Size:	122.0 KB 
ID:	82129

    Note the resolution XDP wants to export at. Not good as I already know the dimensions from loading the TIFF version into my bitmap editor. And I cannot simply choose the DPI drop down.

    Knowing the dimensions I desire, though, I can then type them into the appropriate dialog box as so:

    Click image for larger version. 

Name:	export_02.png 
Views:	145 
Size:	122.0 KB 
ID:	82130

    When I set the dimensions upon export, the graphic is reported at the size it was desired to be and is thus reported when I load the BMP version into my image editor:

    Click image for larger version. 

Name:	card_win_bmp.png 
Views:	149 
Size:	45.8 KB 
ID:	82131

    Perhaps I have misunderstood. But this seems to work "fine." XDP cannot "know" what one's export intent is. It *can* be made to realistically allow setting these options a little easier, more intuitive though.

    Choosing to work in pixels as units is a must for this type of work. Combined with the settings to the desired dimensions seems to end up as a work-around for not being able to set the BMP DPI directly.

    Take care, Mike

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •