You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by or...@io7m.com on 2016/06/18 11:39:07 UTC

Scaling an image without scaling line widths?

Hello.

I think the subject says it all.

Packages such as Inkscape allow one to scale an image up and down
without affecting the widths of lines.

Here's an example:

  http://waste.io7m.com/2016/06/18/before.svg
  http://waste.io7m.com/2016/06/18/after.svg

I'm a little overwhelmed by the API and am not even sure where to start
looking for such a thing.

M

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


Re: Scaling an image without scaling line widths?

Posted by or...@io7m.com.
Hello!

On 2016-06-22T14:04:05 +0200
Christoffer Bruun <cd...@flyingpigs.dk> wrote:

> Hi,
> 
> Batik does not support vector-effect="non-scaling-stroke" - which does
> what you want.
> (http://stackoverflow.com/questions/26923628/batik-does-not-support-style-with-vector-effect-non-scaling-stroke)
> 
> Also check:
> https://www.google.dk/search?q=svg+scale+keep+line+width+constant&ie=utf-8&oe=utf-8&client=firefox-b&gws_rd=cr&ei=Qn5qV5zwAsub6ASE2K3AAQ
> 
> Br
> Christoffer Bruun

OK, thanks.

However, I think we may be talking about two different things here.
There's evidently the "non-scaling-stroke" effect shown above that's
actually present in the SVG file and is applied at rendering time by
whatever is doing the rendering. There's also the the ability to
manually transform shapes (that is, actually modifying their
definitions) whilst manually keeping the stroke width untransformed.
The latter is what Inkscape implements; there are no references to a
"non-scaling-stroke" effect in the resulting SVG files.

M

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


Re: Scaling an image without scaling line widths?

Posted by Christoffer Bruun <cd...@flyingpigs.dk>.
Hi,

Batik does not support vector-effect="non-scaling-stroke" - which does
what you want.
(http://stackoverflow.com/questions/26923628/batik-does-not-support-style-with-vector-effect-non-scaling-stroke)

Also check:
https://www.google.dk/search?q=svg+scale+keep+line+width+constant&ie=utf-8&oe=utf-8&client=firefox-b&gws_rd=cr&ei=Qn5qV5zwAsub6ASE2K3AAQ

Br
Christoffer Bruun

Den 18-06-2016 kl. 13:39 skrev org.apache.commons@io7m.com:
> Hello.
>
> I think the subject says it all.
>
> Packages such as Inkscape allow one to scale an image up and down
> without affecting the widths of lines.
>
> Here's an example:
>
>   http://waste.io7m.com/2016/06/18/before.svg
>   http://waste.io7m.com/2016/06/18/after.svg
>
> I'm a little overwhelmed by the API and am not even sure where to start
> looking for such a thing.
>
> M
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org