fix: rotate preview to be human-readable #4
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "ptrc/labelmaker:rotate-preview"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
fix: rotate preview to be human-readableto WIP: fix: rotate preview to be human-readableWIP: fix: rotate preview to be human-readableto fix: rotate preview to be human-readableend result on firefox:
@ -17,3 +17,3 @@
INCH_PER_MM = 0.039
DPI = 300
def __init__(self, size=(36, 89)):
def __init__(self, preview=False, size=(36, 89)):
New argument is unused.
whoops, left over after trying to incorporate this into Renderer itself, thanks
removed
@ -38,6 +38,16 @@ class Renderer(object):
with open(name, 'wb') as f:
self.surface.write_to_png(f)
def get_preview(self):
Note: you could also just rotate this in CSS, but this is fine too if you insist.
transform: rotate(-90deg)
messes up the layout on FFas in, this happens, because the transform is applied after
max-width
determines the size, and resizing it on the backend seems like a less painful solution than working around this bullshit client-sideAck.
3d088365be
to67efaca6dc