zint / zint-gpl-only

Zint Barcode Generator
https://zint.org.uk/
GNU General Public License v3.0
525 stars 138 forks source link

[HELP] possibility to adjust x-dimension under CLI? #70

Closed ghiewa closed 2 years ago

ghiewa commented 5 years ago

note, The x-dimension of a symbol is size (usually the width) of the smallest element. For a linear symbology this is the width of the smallest bar. The default size of the x-dimension in a raster image is 2 pixels. Many symbologies have a fixed width-to-height ratio where the height is expressed as a multiple of the x-dimension.

is there any possibility have this params CLI command?

oehhar commented 5 years ago

Am 01.08.2018 um 09:51 schrieb Moyan:

note, The x-dimension of a symbol is size (usually the width) of the smallest element. For a linear symbology this is the width of the smallest bar. The default size of the x-dimension in a raster image is 2 pixels. Many symbologies have a fixed width-to-height ratio where the height is expressed as a multiple of the x-dimension.

is there any possibility have this params CLI command?

Moyan,

thank you for the message !

IMHO, a height to module size ("module" is the standard name of your term "x-dimension") ratio is only useful for the EAN symbology family, and there is always a range. In consequence, a fix ratio may not lead to real use cases, which want to fill a certain space.

It is possible to implement this in the CLI. Robin may comment, if he is interested in implementing it. As an alternative, you may provide the implementation.

Thank you and best regards, Harald

gitlost commented 2 years ago

Hi, perhaps I'm misunderstanding but the --scale option in the CLI will adjust the X-dimension for you. Am closing this as this fork is no longer in use but if you've any further questions please raise a ticket at https://sourceforge.net/p/zint/tickets/ or subscribe to the SourceForge mailing list, thanks.