Jump to content
You must now use your email address to sign in [click for more info] ×

Black background in JPG-export although having white background


joe_l

Recommended Posts

My testfile was a former v1-document in sRGB with rasterised images. When I now open the file in v2 and export to JPG, the white background turns black in the preview window as soon as I change a selected preset e.g. turning off ICC embedding and indeed the exported image has a black background now.

v1 exports fine, v2 document and screenshot are attached.

blackbackground.jpg

Bedeutung Patchkabelfarbe_exporttest.afpub

----------
Windows 10 / 11, Complete Suite Retail and Beta

Link to comment
Share on other sites

The images have transparent background. Your file has no background at all.

When exporting to raster formats not supporting transparency like JPG, transparencies get flattened and matted: in Export UI, you can choose which color is used for transparent areas, probably “Hintergrund” in your screenshot. 
 

What happens if you click on the white color, and actively select one?
 

A better way is to simply add a rectangle in your preferred color on the master page as bottom layer.

Unintended transparencies can cause many surprising issues in PDF documents.

Mac mini M1 A2348 | Windows 10 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

 

Link to comment
Share on other sites

4 minutes ago, NotMyFault said:

Unintended transparencies can cause many surprising issues in PDF documents.

Erm, the background of the page is NOT transparent (white) and why is the background turned into black even when unchecking embedding metadata? As you see on the screenshot, "Hintergrund" is already white. Funny thing is, that when I use the RGB sliders for background the background will not be updated to the new colour. Here I have use an other slider to see the backgroundcolour change.

----------
Windows 10 / 11, Complete Suite Retail and Beta

Link to comment
Share on other sites

The background is transparent. You can see if you choose "PDF" as export format.

765690454_Screenshot2022-12-21at10_20_17.thumb.png.f4cda45fd842c7a03fbd313b0cf1980f.png

Then, if you switch to "JPG", there is a minor UI bug. The matting color is shown in white, but actually black is active.

Screenshot 2022-12-21 at 10.20.43.png

You can correct this by re-selecting white as matting color.

Screenshot 2022-12-21 at 10.26.01.png

 

So there is a UI bug: the preview of the matting color is wrong. Never the less, if you actively choose the matting color again, the preview gets updated, and export is correct.

Mac mini M1 A2348 | Windows 10 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

 

Link to comment
Share on other sites

4 minutes ago, NotMyFault said:

The background is transparent. You can see if you choose "PDF" as export format.

Debatable I would say, that a non-transparent background is transparent no matter what option is checked resp. not checked.

transparent.jpg

----------
Windows 10 / 11, Complete Suite Retail and Beta

Link to comment
Share on other sites

Never the less, as you can see in Export Preview, and if you open the file in Photo (channels panel), or use a channel mixer adjustment:

It shows a transparent background.

 

 

 

Screenshot 2022-12-21 at 10.38.25.png

Mac mini M1 A2348 | Windows 10 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

 

Link to comment
Share on other sites

The flag in Document Setup "transparent background" only impacts the rendering in Publisher, but does not affect the actual document data.

If set, Publisher will show the background as checkered board of light grey / white pixels.

If not set, Publisher will show a white background - which is misleading. The document still is transparent in certain areas!

To summarise:

  • If you want to have a document without transparent areas, you need to add a opaque filled layer as bottom layer.
  • The "Transparent background" in Document setup only impacts rendering in Publisher (not Export). I agree this is bad UI.
  • At export to bitmap formats (e.g. JPG, PNG) you can choose to flatten the transparency and replace by a chosen matting color (completely unrelated to document setup)
  • When exporting to formats supporting vector objects (e.g. PDF, SVG), transparencies stay unless you choose to activate "matting" during export.

 

 

Mac mini M1 A2348 | Windows 10 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.