Image and box render to canvas #61

Closed
opened 2023-12-23 03:02:51 +00:00 by jgeorgi · 1 comment
Owner

I'm wondering if styling and drawing are easier if the image is placed in a canvas instead and how difficult it is to draw boxes on it that way.

Pros:

  • could even go to multiple boxes more easily
  • I think image scaling is handle much more cleanly with a canvas

Cons:

  • no idea how easy it is to erase/move drawn boxes
  • no idea if the canvas works as easily in % scale
I'm wondering if styling and drawing are easier if the image is placed in a canvas instead and how difficult it is to draw boxes on it that way. Pros: - could even go to multiple boxes more easily - I think image scaling is handle much more cleanly with a canvas Cons: - no idea how easy it is to erase/move drawn boxes - no idea if the canvas works as easily in % scale
jgeorgi added the
enhancement
question
labels 2023-12-23 03:02:51 +00:00
Author
Owner
  • I think image scaling is handle much more cleanly with a canvas

Couldn't be more wrong. Image scaling in canvas is an abomination. Turns out the only way to downsample a image decently into a canvas is to make it the background image (which isn't significantly easier than just using the img element in the first place. Might still be easier for boxes though.

> - I think image scaling is handle much more cleanly with a canvas Couldn't be more wrong. Image scaling in canvas is an abomination. Turns out the only way to downsample a image decently into a canvas is to make it the background image (which isn't significantly easier than just using the img element in the first place. *Might* still be easier for boxes though.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ALVINN/ALVINN_f7#61
No description provided.