Book a Demo

Author Topic: Generate Diagram Images  (Read 3629 times)

ngong

  • EA User
  • **
  • Posts: 275
  • Karma: +2/-2
    • View Profile
Generate Diagram Images
« on: January 30, 2011, 01:32:15 am »
exporting XMI you may get all images as JPEG files. That is terrific!

JPEG files contain information about their print size.

Is it possible to change that? E.g. is it possible to go for 120 dots/inch instead of 72 - making the picture smaller but looking better?

Rolf
Rolf

ngong

  • EA User
  • **
  • Posts: 275
  • Karma: +2/-2
    • View Profile
Re: Generate Diagram Images
« Reply #1 on: January 30, 2011, 06:49:24 am »
meanwhile I did a Gimp macro that is able to set the dpi to 120 in batch mode.
« Last Edit: January 30, 2011, 06:49:58 am by ngong »
Rolf

ngong

  • EA User
  • **
  • Posts: 275
  • Karma: +2/-2
    • View Profile
Re: Generate Diagram Images
« Reply #2 on: February 24, 2011, 08:45:03 am »
Finally I found out changing the binary of the jpg is safe and much easier. The print size is contained in the first bytes of a jpg file and set to 0 by EA. Many programs exposing jpg assume a default of 72dpi which leads to images bigger than a letter page. Exchanging the two zeros in x and y scaling by 120 fits the diagrams back on a page.
Rolf