Inskape svg plugin ...
 
Notifications
Clear all

Inskape svg plugin with no transparency?  

  RSS

armando
(@armando)
Active Member
Joined: 3 months ago
Posts: 18
16/10/2020 9:44 am  

Hi, everyone...

I'm trying to use the svg inkscape plugin. I think that it is a very good idea the possibilty of insertion and modifying svg files whitin in Cin.

Unfortunately the svg file when imported in Cin has no transparent background.

If that same file is imported in gimp, it has it's background transparent. So that tells me that even if the svg format has no implementation of transparency by default, the Inkscape svg file tell gimp that this particular file has no background.

Of course I can have a green background in that file and remove via Chroma key filters but this add a layer of work and complexity...

Or perhaps I'm missing something to get imported the Inskcape svg file with transparency.

Any help or hint will be welcome.

Tanks

Armandux

This topic was modified 1 week ago by armando

Quote
phylsmith2004
(@phylsmith2004)
Estimable Member
Joined: 2 years ago
Posts: 134
17/10/2020 12:40 am  

Hi, GG is looking at this yet today (my computer has been unavailable all day so late in seeing this).  I think I remember having looked into this before but do not remember the result. 

Update: continuing tomorrow.  It may be a result of an update in Inkscape that has not been propagated in Cinelerra, but we are not sure yet.

This post was modified 7 days ago by phylsmith2004

ReplyQuote
phylsmith2004
(@phylsmith2004)
Estimable Member
Joined: 2 years ago
Posts: 134
17/10/2020 11:23 pm  

Turns out that the changes are due to "upgrades" in inkscape. When cinelerraGG needs to update the image file, it runs a batch inkscape command like this:

[[email protected] svg]# inkscape --without-gui --export-background=0x000000 --export-background-opacity=0 -d 96.000000 /tmp/bs.svg --export-png=/tmp/bs.svg.png
Warning: Option --without-gui= is deprecated
Warning: Option --export-png= is deprecated

** (org.inkscape.Inkscape:29472): WARNING **: 15:50:21.060: Fonts dir '/root/.config/inkscape/fonts' does not exist and will be ignored.
Background RRGGBBAA: ffffffff
Area 0:0:1280:720 exported to 1280 x 720 pixels (96 dpi)

The log indicates that the changes introduced damages to cin.

I have upgraded the new.svg default image, and revised the command:

[[email protected] svg]# inkscape --export-background=0x000000 --export-background-opacity=0.001 -d 96.000000 /tmp/bs.svg --export-filename=/tmp/bs.svg.png

** (org.inkscape.Inkscape:29491): WARNING **: 15:50:49.791: Fonts dir '/root/.config/inkscape/fonts' does not exist and will be ignored.
Background RRGGBBAA: ffffff00
Area 0:0:1280:720 exported to 1280 x 720 pixels (96 dpi)

The changes avoid the warnings, and the opacity is back to 00.
Still, these are damages to the interface. The opacity is wrong,
and the export code used to not depend on the X server running.
There may be limits to what works from a batch job.

1) The without-gui and export-png features are deleted/renamed.
2) The program could fail on a batchrender if X is not running.
3) The export-background-opacity has been changed from 00 to ff.

 


ReplyQuote
phylsmith2004
(@phylsmith2004)
Estimable Member
Joined: 2 years ago
Posts: 134
17/10/2020 11:27 pm  

(Previous reply written by GG.)

The changes to fix the transparency problem for now will be checked in and available in the October 31 builds.  If you need the changes earlier than that, we can create a static tar build for whichever Operating System you are using.

 

Thanks so much for reporting this deficiency -- it is how we can keep up with the changes needed.

 

P.S. The October builds will also include an "drag select" to select multiple edits on the timeline and also to easy deselect multiple edits as you mentioned in a previous forum topic.

This post was modified 6 days ago by phylsmith2004

ReplyQuote
IgorBeg
(@igorbeg)
Active Member
Joined: 6 days ago
Posts: 1
18/10/2020 9:16 am  

Hi Armando,

could you check which Color model are you using, please?

You have to use a RGBA or YUVA format for the alpha channel.

Check it in, Menu-> Settings-> Format..., Video area, Color model.

In my test with Cin_20200930 and Cin_20200531, and Inkscape_0.92.4 it works right (my OS is UbuntuStudio_16.04).

 

PS:

Sigh-sigh. I am also here.


ReplyQuote
armando
(@armando)
Active Member
Joined: 3 months ago
Posts: 18
18/10/2020 10:17 am  

@phylsmith2004

Great. It is wonderful the quick and kind response.

Thank you so muuuuchhhh...!

🙂


ReplyQuote
armando
(@armando)
Active Member
Joined: 3 months ago
Posts: 18
18/10/2020 10:24 am  

@igorbeg

Thank you for your kind help. I always use RGBA model, because I use a lot the Tittle/text plugin to sobreimpress text to image.

I'm using ubuntustudio 20.04 and Inkskape 1.0, and as phyllis have pointed wisely it is a new implementation of the inksape file that causes this issue in Cin.

Anyway thank you.

Armando


ReplyQuote
Share: