# Convert image to OpenSCAD array

This utility accepts an image that can be displayed in your browser, and converts it to grayscale expanded to use the maximum possible luminance range. The file types supported depend on your browser. Alpha channel is ignored. After processing the image as desired, you may save it as an OpenSCAD array.

Keep the output image width small! A large size results in a huge output file when converting an image to text data.

Select an image

You can also paste an image (Ctrl+V) into this section from your clipboard.

Transformations Rescale original width (px):
Top
Left
Crop
Right
Bottom
Appearance
See:
Luma
NTSC grayscale formula NTSC Y′ = 0.299R + 0.587G + 0.114B
Rec. 601: Average human perception of color luminance
sRGB linear luminance sRGB Y′ = 0.2126R + 0.7152G + 0.0722B
Rec. 709: Digital HD, used by OpenSCAD surface()
Invert brightness
Filter Gaussian blur radius (pixels):
Sharpen radius (pixels):
Edge detect radius (pixels):
Contrast Compress brightness above and below threshold
to maximum and minimum brightness.
0
Threshold Level between black (-128) and white (127)
around which to adjust contrast.
0
Output Normalize range to [0,1] — uses [0,255] if unset
Name of array:
≈ 0 bytes