Skip to content

Feature: add control on target output area size #13

@abey79

Description

@abey79

Currently, the physical span of hatched's output is determined by the combination of the image resolution and the scaling factor (-s). This is unfortunate because the output's physical dimension is often something the user might want to control.

Specifically, in order to adjust the image scaling factor while keeping the same line density and physical size requires quite the contortion:

# same dimension and density:
vpype hatched -p 1mm input.png
vpype hatched -p 0.5mm -s 0.5 input.png scale 2 2

This would be solved by adding a -a/--area X Y parameter to control the physical output size. In particular, it would allow to freely adjust the scale without impacting the output dimension nor the line density:

# same dimension and density:
vpype hatched -p 1mm -a 10cm 10cm input.png
vpype hatched -s 0.5 -p 1mm -a 10cm 10cm input.png

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions