You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Canvas insert and canvas file filter extension problem #4048
When I chose to insert canvas from computer, it show that to insert .STEP, .3MF, .STL file, etc, not image. Is the same problem as insert->decal. Also, when I open a .png file it show me the following error (see image below): "design file is not UTF-8 JSON".
Also, what is the difference between "open from computer" and "insert from computer"?
Confirmed in the code on main@e9490093: in the web version, Canvas and Decal can't get an image from your computer.
Cause: Canvas and Decal ask for a PNG or JPEG (crates/ui-egui/src/sketch_tools.rs:325). The web version sends only design files to the browser's file dialog. For anything else, including images, it opens its general files window and hands nothing back to Canvas (apps/solidcraft-web/src/main.rs:582). That window's buttons are for designs and models, which is why it lists STEP, 3MF and STL.
The UTF-8 error: picking the PNG with Open from computer opens it as a SolidCraft design, and a PNG isn't one, hence "design file is not UTF-8 JSON". I get the same message on the command line by opening a PNG with doc.open, while the same PNG inserted as a Canvas loads fine.
Open vs Insert from computer (apps/solidcraft-web/src/main.rs:243):
Open from computer opens a design.
Insert from computer adds a STEP, 3MF or STL file's bodies to the design that is open (into an empty design it simply opens the file).
Neither one is meant for images. The fix is for the image picker to go to the browser's file dialog the way design files do.
Activity
raykholo commentedon Oct 21, 2026
Confirmed in the code on main@e9490093: in the web version, Canvas and Decal can't get an image from your computer.
Cause: Canvas and Decal ask for a PNG or JPEG (
crates/ui-egui/src/sketch_tools.rs:325). The web version sends only design files to the browser's file dialog. For anything else, including images, it opens its general files window and hands nothing back to Canvas (apps/solidcraft-web/src/main.rs:582). That window's buttons are for designs and models, which is why it lists STEP, 3MF and STL.The UTF-8 error: picking the PNG with Open from computer opens it as a SolidCraft design, and a PNG isn't one, hence "design file is not UTF-8 JSON". I get the same message on the command line by opening a PNG with
doc.open, while the same PNG inserted as a Canvas loads fine.Open vs Insert from computer (
apps/solidcraft-web/src/main.rs:243):Neither one is meant for images. The fix is for the image picker to go to the browser's file dialog the way design files do.
github-actions commentedon Oct 21, 2026
Claimed by @raykholo through #4054. The claim lapses after 14 days without pushes.
Web: let Canvas and Decal pick PNG and JPEG images (tangency-labs#4048)