Git Product home page Git Product logo

flamingo-svg-transcoder's People

Contributors

ebourg avatar kirill-grouchnikov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

flamingo-svg-transcoder's Issues

Error in generated class: Keyframe fractions must be increasing

I am not sure if this is an issue with the transcoder, but just posting in case anyone else has this problem. I have generated some Flamingo Resizable Icons using the transcoder, however when I try to load them I get the following error:

java.lang.IllegalArgumentException: Keyframe fractions must be increasing: 0.5
at java.awt.MultipleGradientPaint.(MultipleGradientPaint.java:184) ~[na:1.6.0_24]
at java.awt.LinearGradientPaint.(LinearGradientPaint.java:280) ~[na:1.6.0_24]

I did find this old bug in Sun's database, which doesn't appear to have a resolution:

http://bugs.sun.com/view_bug.do?bug_id=6452175

So it seems related to multiple stops in a gradient at the same point. Surprised this wasn't taken more seriously by Sun, although perhaps not many people ran into it..

Incomplete transformation

when I transform the following svg, the path p2 does not show up in the java icon.

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="300" height="300" id="svg2" version="1.1">
  <defs id="defs4">
    <linearGradient id="lg1">
      <stop id="s1" offset="0" style="stop-color:white;stop-opacity:0;"/>
      <stop id="s2" offset="1" style="stop-color:white"/>
    </linearGradient>
    <linearGradient xlink:href="#lg1" id="lg3" x1="191" y1="156" x2="148" y2="10" gradientUnits="userSpaceOnUse"/>
    <linearGradient id="lg2">
      <stop style="stop-color:#D5FFD5;stop-opacity:1;" offset="0" id="s3"/>
      <stop style="stop-color:#80FF80;stop-opacity:1;" offset="0.36" id="s4"/>
      <stop style="stop-color:#2AFF2A;stop-opacity:1;" offset="0.79" id="s5"/>
      <stop style="stop-color:#00FF00;stop-opacity:1;" offset="1" id="s6"/>
    </linearGradient>
    <radialGradient xlink:href="#lg2" id="rg1" cx="-100" cy="-278" fx="-100" fy="-278" r="155" gradientUnits="userSpaceOnUse" gradientTransform="matrix(1.267,0,0,1.73,26.67,204.12)"/>
  </defs>
  <g id="layer1" transform="translate(255,539)">
    <path style="stroke:#00D400;fill:url(#rg1);stroke-width:4" id="p1" d="M 54 -394 A 154 154 0 1 1 -254,-394 A 154 154 0 1 1 54 -394 z" transform="matrix(0.949753,0,0,0.949753,-10.31027,-14.52566)"/>
    <path style="fill:url(#lg3)" d="M 150,10 C 74,10 12,71 10,147 C 49,182 87,183 106,174 C 126,165 142,136 168,129 C 194,123 208,124 249,141 C 272,150 269,119 286,116 C 271,55 216,10 150,10 z " transform="translate(-255,-539)" id="p2"/>
  </g>
</svg>

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.