Skip to content

offset_right, offset_down points in Illustrator, not absolute to output #4

Description

@heynicejacket

The demo files were configured with units as Points with each artboard being 1000pt².

image

This is caused by this line in dzi_builder():

offset_right_f = float(offset_right / 10)

...where pixels of an individual artboard do not form a tidy ratio of artboard-pixels-to-output-pixels; for instance, all demo artboards are 1000pt, the js_create_artboards() scale is 300%, and the offset value is 3000. Scaling a 1in² artboard 300% isn't the same as scaling a 1000px artboard 300%.

There needs to be a check of artboard/AI file properties prior to this math.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions