krita-batch-exporter icon indicating copy to clipboard operation
krita-batch-exporter copied to clipboard

Vector layer gets exported as an empty image if using a custom color profile

Open simonschreibt-code opened this issue 4 years ago • 6 comments

  • [x] Bug report.
  • [ ] Feature request.

Bug report

What is the current behavior?

Vector layer does not exported (is not visible) BUT trimming respects the bounding box of the vector text!

What is the expected behavior?

Vector layer is visible in exported PNG:

Tell us the steps to reproduce the bug, and if possible share a minimal demo of the problem.

  1. Get the file: https://www.dropbox.com/s/x8gddk0fnyw2bw8/gamejam_headlines_01.kra?dl=0
  2. Click "All Layers" in the Batch Exporter
  3. See that the file has the correct dimensions (after trimming) but the text is not readable.

simonschreibt-code avatar Aug 13 '21 22:08 simonschreibt-code

That's an unsupported feature, the addon doesn't support vector layers. Note we're not actively working on it at the moment. Someone's welcome to add the feature but we won't work on it.

NathanLovato avatar Aug 14 '21 01:08 NathanLovato

Oh, in that case I'm afraid the documentation is out of date: Screenshot_20210814-105603_Brave

simonschreibt-code avatar Aug 14 '21 08:08 simonschreibt-code

I checked the code, and indeed we do try to export vector layers. I didn't remember that, my bad. What I'm seeing too is we rely on Krita's internal conversion mechanism, and it seems it doesn't work with text perhaps?

@razcore-rad this user has a vector layer with text and the text doesn't get rasterized when exporting the corresponding layer with batch exporter. The output image is empty. Do you know something about that?

NathanLovato avatar Aug 15 '21 14:08 NathanLovato

@ilegacy It seems like there's a problem with non-default Color Profiles. After converting your image to the default profile (Image -> Properties...):

image

I could successfully export the image:

einleitung_01


I don't know if this is an internal issue or a bug in our plugin yet.

razcore-rad avatar Aug 16 '21 06:08 razcore-rad

@razcore-rad Thank you! Yes, you are right. When I change the color-profile to default, save the file, re-load the file and re-export with the batch exporter, it works! Maybe it would be an idea to add a little (i) info about that in the documentation - just in case other people run into the same issue?

Thank you for the help!

simonschreibt-code avatar Aug 16 '21 08:08 simonschreibt-code

Yeah, I just don't know why this is happening, cause before save we convert the image in the plugin to the default color profile as well.

We didn't document this cause we didn't know it's an issue until now.

razcore-rad avatar Aug 16 '21 09:08 razcore-rad