camrein / EzGraver

Simple multi-platform management software for NEJE laser engravers.
MIT License
133 stars 37 forks source link

Suggestion: dimensioning helpers #32

Open GilDev opened 7 years ago

GilDev commented 7 years ago

To help prepare an engraving, first, a ruler in mm (maybe select between mm and inches) on the image's 4 sides would be nice. Better, automatically calculate image size in pixels and convert it into millimeters. The result could be shown under the image. Here's an example with the dimensions randomly positioned (they should be outside the image) and the rectangle that “crops” to the image:

Dimensions

camrein commented 7 years ago

This feature seems quite interesting. I have already thought about the first iteration with a simple ruler on the image borders like the original software. However, I didn't integrate it as I thought that the sizes might not match for all devices. You mentioned that, at least for now, the sizes for all NEJEs is 38x38 mm in issue #28. Additionally, I thought that besides the build-platform size, also the resolution (pixel / mm ratio) might differ. But as you suggested, these things should be configurable. Nevertheless, EzGraver currently only works with 512x512 images anyway.

Supporting the configuration of the dimensions will require that the rules are rendered dynamically. But I think, as long as EzGraver only works with machines that accept a 512x512 image, it can be assumed that the devices will have the same engraving areas.

GilDev commented 7 years ago

Exactly. And while rulers are nice, again, calculated dimensions would be a lot more practical to use. I don't see the point of adding a ruler if there's something like this available. Once the image pixel size is determined, the dimensions' calculation is easy and would be easy to adapt to a variable bed size, it's just a cross-multiplication.

jthurston commented 5 years ago

A grid would be helpful also.