Giter VIP home page Giter VIP logo

Comments (4)

mjuhasz avatar mjuhasz commented on August 17, 2024

I tried to reproduce your issue as follows:

  • open a blu-ray or a dvd subtitle file file with BDSup2Sub
  • export it as xml/png
  • open any of the exported png images with the default image viewer under Ubuntu (Gnome Image Viewer) and check for transparency
  • open any of the exported png images with Gimp 2.8 and check for alpha channel existence (Layer/Transparency/Remove alpha channel should be active; after removing the alpha channel the transparency should be gone)

In all my tests the alpha channel was there.

Do you experience this issue with a specific subtitle file?
Can you try with the latest stable or development version of BDSup2Sub: https://github.com/mjuhasz/BDSup2Sub/downloads

from bdsup2sub.

bluemoehre avatar bluemoehre commented on August 17, 2024

After a lot of searching i found out there are kinda special PNG encodings within the SUPs. SuperPNG is a Plugin in Photoshop, which makes it possible to open and save 8bit PNG with alpha channel. Since this is not supported in Photoshop u will loose opacity informations when opening the files.
Maybe u should offer a conversion to "default" 32bit PNG or someone should check if the newer PS version support it.

from bdsup2sub.

mjuhasz avatar mjuhasz commented on August 17, 2024

You ran into the issue described here: https://github.com/mjuhasz/BDSup2Sub/wiki/Supported-Formats

"Note that BDSup2Sub will only export 8bit palettized PNGs with transparency (via tRNS tag) for maximum compatibility with Sonic Scenarist HDMV. Unfortunately, only a few (free) graphic programs support this format correctly. Paint.NET however seems to work just fine."

Indeed, Photoshop cannot open indexed color PNG files that have indexed transparency because it just doesn't fit with Photoshop's image modes. GIMP has the 'Indexed' option under Image/Mode and seems to work well. I get an alpha channel even after exporting and reopening the file (at least under Gimp 2.8).

At the moment I have no plans to change the png format. I have no access to authoring tools so I cannot test the compatibility with them. There are image editors that can handle the indexed png format and I wouldn't want to break the compatibility with authoring tools or the existing workflow of people using the xml/png export feature.

from bdsup2sub.

bluemoehre avatar bluemoehre commented on August 17, 2024

What will happen if i import PNG32? I noticed problems with colored PNG8+Alpha and the XBMCv11 (didn't tried v12 yet). There seems to be a palette problem - the colors are wrong.

from bdsup2sub.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.