DarwinNE/FidoCadJ

The "export" command in some cases cuts images

Max2433BO opened this issue · 0 comments

Hi @DarwinNE ,

testing FidoCadJ 0.24.8_epsilon, I found an anomaly in the "export" command:

if you use it with the measurements in pixels, by entering certain dimensions, the image is not correctly scaled.

For example: this figure measures 390x897 pixels (x / y) in the FidoCadJ grid

prova_390x897

By experimenting, it is possible to reduce, with the "export" command, up to 108x224 (27% for the x axis and 25% for the y axis)

prova_108x224

if you go further down, parts of the drawing are missing.

Even if the reduction is unbalanced between the x and y axes, parts may be missing.
Here, for example, reducing the x-axis to 27% and the y-axis to 35%, we see that part of the writing at the bottom starts to be missing on the right.

prova_108x314

In my opinion it would be convenient:

1)Limit the reduction to 30% per axis.
2)Connect the ratio of the x and y inputs based on the ratio of width and height of the original image: for example if I set the size x, the program should automatically set the size y and vice versa.

Note: The "export" command in dpi mode has no problems, even at the minimum resolution of 72x72 dpi.

That's all...
... at the moment ;)

Bye, Max

P.S.
this is the original test image file .fcd (renamed as .txt)

Valvola_termoionica.txt