Inserting imported PNG into sketch

graham_lock
graham_lock Member Posts: 277 PRO
edited March 2025 in Community Support

Hi,

I'm having problems importing a PNG file into a sketch - it renders as a dark grey rectangle.

When the file is viewed in its browser tab it's fine.

Not a show stopper because JPG imports work but it would be good to understand the problem.

My test document is here:

https://cad.onshape.com/documents/a1c8e7396701ea7cc181e411/w/f75c7eee688d240a89becb00/e/f45a866919271bcd601ca3da

Any thoughts appreciated.

Thank you.

Best Answer

  • GregBrown
    GregBrown Member, Onshape Employees, csevp, pcbaevp Posts: 412 image
    Answer ✓

    The max image size allowed in sketch background will be GPU dependent, and you can check yours out here: https://webglreport.com/
    In my case I have (MacBook Pro M1)

    image.png

    Indeed by resizing your PNG to be width = 16384 it works fine as a sketch background.

Answers

  • jelte_steur_info
    jelte_steur_info Member Posts: 683 PRO

    this may be worth a support call for a bug report. beats me anyway

  • MDesign
    MDesign Member Posts: 1,472 PRO

    You must be hitting some kind of max resolution or file size with that… resizing it to 90% allows it to work. your jpg is much smaller resolution.

  • GregBrown
    GregBrown Member, Onshape Employees, csevp, pcbaevp Posts: 412 image
    Answer ✓

    The max image size allowed in sketch background will be GPU dependent, and you can check yours out here: https://webglreport.com/
    In my case I have (MacBook Pro M1)

    image.png

    Indeed by resizing your PNG to be width = 16384 it works fine as a sketch background.

  • graham_lock
    graham_lock Member Posts: 277 PRO

    Thank you all for your replies.

    @GregBrown - I have an NVIDIA GeForce RTX 4080 and the textures report is identical to your MacBook.