fritzing / fritzing-app

Fritzing desktop application
http://fritzing.org
Other
3.97k stars 826 forks source link

Import a TIF on silklayer #3892

Closed jaapcammeraat closed 1 year ago

jaapcammeraat commented 2 years ago

Current Behaviour

In version 0.9.6 I could import and place some icons/images on a pcb. I used .tif files for years without issues. In version 0.9.9 (on macOS) this isn’t working anymore because imported imagefiles are complete black.

Build: Version 0.9.9 (bCD-348-0-f0af53a9 2021-09-22) Cocoa [Qt 5.15.2]

Operating System: macOS 11.6

Steps to reproduce: Go to tab: PCB Go to core-parts-item: Place Silkscreen image Drag this icon to the PCB Use button to load an image Loaded image will be full black

Expected Behaviour

In version 0.9.6 the loaded image function shows the .tif as should.

jaapcammeraat commented 2 years ago

Example image: https://forum.fritzing.org/t/import-a-tif-on-silklayer/14024/6?u=xinfinite

KjellMorgenstern commented 2 years ago

The image in the forum is a .jpg

jaapcammeraat commented 2 years ago

https://forum.fritzing.org/t/import-a-tif-on-silklayer/14024/8?u=xinfinite I uploaded the tif to my domain with screenshots! .

KjellMorgenstern commented 2 years ago

01.tif.zip

The image is in color format. The image loads fine in breadboard view, but can not load in PCB view, as Fritzing fails to convert it into a monochromatic image. A simple workaround of course is to convert the image manually, before loading it in Fritzing.

We should at least show an error message in that case.

jaapcammeraat commented 2 years ago

Yes you are right! I changed the .psd to monochrome(grayvalues) and saved it again as a .tif and the image is displayed as should!