Skip to content

Clip artifacts at low zoom #4

Open
@kylebarron

Description

@kylebarron

You could try math.ceil and math.floor instead of round here:

left = round(buffers[0] / crs_width * img_width)
bottom = img_height - round(buffers[1] / crs_height * img_height)
right = img_width - round(buffers[2] / crs_width * img_width)
top = round(buffers[3] / crs_height * img_height)

That would slightly overcompensate, but then the gaps would be white, instead of whatever the background color is.
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions