Highlighted

Import TIFF file in InDesign loses its transparency

Participant ,
May 04, 2018

Copy link to clipboard

Copied

Hi everyone,

I created a barcode in RGB with a library in Objective-C. Then I convert it to CMYK colorspace using ImageMagick.

The converted graphic shows transparency when putting it in Photoshop, but not in InDesign..

It has the alpha channel. If I open it in Photoshop, save it FROM photoshop to TIFF and import in InDesign, then the transparency appears.

Adobe Community Professional
Correct answer by rob day | Adobe Community Professional

You can use Color Settings>Working CMYK>Custom CMYK to set the Max Black  Generation and then use Save CMYK to save the .icc profile to one of your profile folders.

This really is doing it the hard way

Views

6.6K

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Import TIFF file in InDesign loses its transparency

Participant ,
May 04, 2018

Copy link to clipboard

Copied

Hi everyone,

I created a barcode in RGB with a library in Objective-C. Then I convert it to CMYK colorspace using ImageMagick.

The converted graphic shows transparency when putting it in Photoshop, but not in InDesign..

It has the alpha channel. If I open it in Photoshop, save it FROM photoshop to TIFF and import in InDesign, then the transparency appears.

Adobe Community Professional
Correct answer by rob day | Adobe Community Professional

You can use Color Settings>Working CMYK>Custom CMYK to set the Max Black  Generation and then use Save CMYK to save the .icc profile to one of your profile folders.

This really is doing it the hard way

Views

6.6K

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
May 04, 2018 0
Most Valuable Participant ,
May 04, 2018

Copy link to clipboard

Copied

Did you select the save transparency option when saving the TIFF?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 04, 2018 1
Participant ,
May 04, 2018

Copy link to clipboard

Copied

My TIFF file is created from a library in Objective-C so there is not really a save transparency option, but when I preview the created barcode in Mac Preview or open it in Photoshop or Sketch, I can see the transparency. It just does not show up in InDesign when importing it.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 04, 2018 0
Adobe Community Professional ,
May 04, 2018

Copy link to clipboard

Copied

You'll have to Save As as from Photoshop. The PSD format has the advantage of Object Layer Options in InDesign.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 04, 2018 1
Participant ,
May 04, 2018

Copy link to clipboard

Copied

Yes, but ideally I would like to not have to open it in photoshop and save again.. as I have hundreds of graphics to process..

My question is more like why opening the original .tiff file in photoshop shows transparency while it does not in InDesign

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 04, 2018 0
Most Valuable Participant ,
May 04, 2018

Copy link to clipboard

Copied

You can batch process hundreds of files in Photoshop without opening the file.

What kind of barcode are you creating? i.e. Code 39, UPC, QR, etc. There may be a better way to create the barcode.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 04, 2018 1
Participant ,
May 04, 2018

Copy link to clipboard

Copied

I'm creating Data Matrix barcodes.

Do you think it would be possible to batch process the Photoshop file from my code written in Objective-C/Swift?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 04, 2018 0
Most Valuable Participant ,
May 04, 2018

Copy link to clipboard

Copied

Photoshop, as a dedicated graphic image file processor, supports more file types, and more variants of each file type, than InDesign does. If InDesign does not support alpha transparency in CMYK TIFF files natively (*), then you must indeed open then and re-save with other software into a format that ID does support.

An alternative to open and close everything with Photoshop (you know PS can make it a batch process so it can run overnight?) is to use a command line utility such as ImageMagick, or, as you are in control of the source software, have that output something more compatible so you don't need to convert anything later on.

(*) I searched around a bit for confirmation but was unable to verify this with a casual google, but I think InDesign never has supported CMYK + alpha transparency for TIFF images.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 04, 2018 1
Adobe Community Professional ,
May 04, 2018

Copy link to clipboard

Copied

Looking at ImageMagick's documentation, it looks like there is a 1-bit option—PBM.

If the barcode is saved as 1-bit (Black and White), the white pixels will be transparent if the placed image's container box is set to [None].

Screen Shot 1.png

Black and White images can also be assigned any CMYK swatch:

Screen Shot 2.png

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 04, 2018 2
Most Valuable Participant ,
May 04, 2018

Copy link to clipboard

Copied

Bar codes! I don't even have to create them as a separate file, I have a script for that!

(Courtesy of Marc Autret; I have an older one, on Indiscripts :: BookBarcode 2.036 Patch for InDesign CS6 & CC is the latest version.)

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 04, 2018 1
Most Valuable Participant ,
May 04, 2018

Copy link to clipboard

Copied

What is the format from Object-C? If it is a format Photoshop can open, then an action and batch process could be used for the things mentioned: convert RGB to grayscale, flatten image, save to specific format, etc.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 04, 2018 0
Participant ,
May 04, 2018

Copy link to clipboard

Copied

But InDesign does support CMYK with TIFF if you save it from Photoshop just not directly from the conversion done by ImageMagick it looks like?

I can switch to another format if needed, I only need the CMYK ColorSpace for printing AND transparency.

"as ImageMagick, or, as you are in control of the source software, have that output something more compatible so you don't need to convert anything later on."

--> Does that mean there is an option I could use to have the transparency correctly in ID?

Here is the command I use with ImageMagick:

convert /path/to/RGB_GRAPHIC.tiff -profile /path/to/cmyk_profile.icc /path/to/CMYK_GRAPHIC.tiff

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 04, 2018 0
Participant ,
May 04, 2018

Copy link to clipboard

Copied

It can be: TIFF, JPEG, PNG, GIF..

It's just that I'm trying to do everything in one go, the user input the barcode and it gives you a CMYK Data Matrix barcode.

I have all this so far, just the transparency that is gone when importing to InDesign.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 04, 2018 0
Most Valuable Participant ,
May 04, 2018

Copy link to clipboard

Copied

For this to happen in one go, create an action and droplet in Photoshop:

1. The action can be accomplished by opening an image, using the action record button and perform all necessary transformations, click stop and save.

2. Then use Create Droplet, this will associate a folder to the action, and then files can be saved directly from Object-C to the droplet folder, perform conversions, and be ready to place into ID.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 04, 2018 0
Adobe Community Professional ,
May 04, 2018

Copy link to clipboard

Copied

Here is the command I use with ImageMagick:

convert /path/to/RGB_GRAPHIC.tiff -profile /path/to/cmyk_profile.icc /path/to/CMYK_GRAPHIC.tiff

That would have to create a 4-color black—open one of the barcodes in Photoshop and check the values.

Why not grayscale set to Multiply? You don't need a transparent background.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 04, 2018 0
Participant ,
May 04, 2018

Copy link to clipboard

Copied

I do need a transparent background, I have barcodes that are black on transparent or white on transparent, taking the color of the background.

EDIT:

What do you mean by check the values in Photoshop?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 04, 2018 0
Adobe Community Professional ,
May 04, 2018

Copy link to clipboard

Copied

I have barcodes that are black on transparent or white on transparent, taking the color of the background.

I think I understand what you are trying to do, but it can be done via InDesign's Blend Modes or by simply assigning the [None] swatch to a 1-bit image's container frame.

These barcodes are grayscale tiffs with no transparency

Screen Shot 7.png

Screen Shot 8.png

Screen Shot 11.png

These are 1-bit tiffs where I've set the barcode's container color to [None]. This page has no transparency:

Screen Shot 10.png

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 04, 2018 1
Adobe Community Professional ,
May 04, 2018

Copy link to clipboard

Copied

What do you mean by check the values in Photoshop?

Normally if you make a conversion from RGB to CMYK your barcode wouldn't be black only, which would be a problem on an offset press. Open one of your barcodes and set Photoshop's Info to Actual color.

This is a default conversion from RGB to CMYK in Photoshop. If you need the barcode to be on the black plate grayscale or 1-bit would be better:

Screen Shot 12.png

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 04, 2018 0
Adobe Community Professional ,
May 04, 2018

Copy link to clipboard

Copied

Here are my example files:

Barcodes

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 04, 2018 1
Participant ,
May 04, 2018

Copy link to clipboard

Copied

Here is what I have when opening the converted barcode from ImageMagick in Photoshop:

Screen Shot 2018-05-04 at 4.10.46 PM.png

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 04, 2018 1
Adobe Community Professional ,
May 04, 2018

Copy link to clipboard

Copied

Hi,

how did you open this in PhotoShop?

You could open it in Grayscale mode if you like.

You could even do a color conversion to CMYK where R=G=B values are converted to 100% Black. Provided you are using the right ICC color profile. See into two profiles here:

ISOcoated_v2_grey1c_bas.ICC

Grayscale with maximum Black = 100%:

colormanagement - ISO Profile

ISOcoated_v2_sw_bas.ICC

CMYK profile where R=G=B will convert to Black. Maximum Black = 100%:

colormanagement - ISO Profile

Regards,
Uwe

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 04, 2018 1
Participant ,
May 04, 2018

Copy link to clipboard

Copied

I just drag and drop the file to Photoshop.

I converted to CMYK using: USWebCoatedSWOP.icc

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 04, 2018 0
Adobe Community Professional ,
May 04, 2018

Copy link to clipboard

Copied

alexandrel16871950  wrote

Here is what I have when opening the converted barcode from ImageMagick in Photoshop:

Screen Shot 2018-05-04 at 4.10.46 PM.png

Right converting to CMYK is going to be a problem. Even if you used a max black profile as Uwe suggests, there’s no reason to do it. InDesign puts grayscales on the black plate.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 04, 2018 0
Participant ,
May 04, 2018

Copy link to clipboard

Copied

Hmmm interesting!

It seems that I just found a way to do it programmatically! Instead of using ImageMagick to convert from RGB to CMYK. I used "sips" which is a built-in macOS tool, and with this, the graphic opens directly with transparency in InDesign!

sips - scriptable image processing system.

This tool is used to query or modify raster image files and ColorSync ICC profiles.

Its functionality can also be used through the "Image Events" AppleScript suite.

Try 'sips --help' or 'sips --helpProperties' for help using this tool

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 04, 2018 0
Adobe Community Professional ,
May 04, 2018

Copy link to clipboard

Copied

Instead of using ImageMagick to convert from RGB to CMYK. I used "sips" which is a built-in macOS tool, and with this, the graphic opens directly with transparency in InDesign!

You would still have the 4-color CMYK problem with a conversion to SWOP.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 04, 2018 1
Participant ,
May 04, 2018

Copy link to clipboard

Copied

I am not sure I follow what's the issue? I just needed a CMYK barcode with transparency in InDeisng and that's what I got? Or InDesign is doing something under the hood? It's for a printer so unless he tells me there's an issue?

It's only black and white colors.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 04, 2018 0
Adobe Community Professional ,
May 04, 2018

Copy link to clipboard

Copied

You can also check the barcode's output values in InDesign via Separation Preview. Here's an RGB barcode converted to SWOP.

Is there a technical reason  for the CMYK mode?

Screen Shot 13.png

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 04, 2018 1
Adobe Community Professional ,
May 04, 2018

Copy link to clipboard

Copied

I am not sure I follow what's the issue?...

It's only black and white colors.

But it's not—with typical CMYK color profiles the conversion from 0|0|0 black to CMYK will be a 4-color mix and not the black only 0|0|0|100 you need. With SWOP it would be  something like 75|68|67|90.

If the output is to a composite printer there wouldn't be a problem, but then you may as well place RGB.

If the output is to an offset press you will likely have a registration problem:

Screen Shot 14.png

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 04, 2018 1
Adobe Community Professional ,
May 04, 2018

Copy link to clipboard

Copied

Then I convert it to CMYK colorspace using ImageMagick

If you set the barcode to Multiply you wouldn't need a transparent background. Also, normally a color managed conversion from RGB to CMYK would produce a 4-color black, which might be a problem if the destination is an offset press. I would think you would be better off with a grayscale conversion.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 04, 2018 1
Most Valuable Participant ,
May 17, 2018

Copy link to clipboard

Copied

Does the program which you use to create the barcode also support vector formats, like eps or pdf or even ai? Use them and it is easier to change it to K-only colors. The quality would be better than tiff or any pixel image. I do it always this way and get superior quality.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 17, 2018 0
New Here ,
Apr 15, 2020

Copy link to clipboard

Copied

Hi, When you are saving in Photoshop save tiff file, click Save Transpaerncy.

charith73_0-1587015432386.png

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Apr 15, 2020 1