GDQuest / krita-batch-exporter

A Free Krita plugin to batch export layers and groups with maximum flexibility. Scale, trim, export multiple copies of your layers...
GNU General Public License v3.0
320 stars 26 forks source link

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

Open simonschreibt-code opened 3 years ago

simonschreibt-code commented 3 years ago

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.
NathanLovato commented 3 years ago

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.

simonschreibt-code commented 3 years ago

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

NathanLovato commented 3 years ago

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?

razcore-rad commented 3 years ago

@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.

simonschreibt-code commented 3 years ago

@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!

razcore-rad commented 3 years ago

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.