Re: resize/zoom ?

Pro Turm <[email protected]> Thu, 3 Dec 2020 16:06:57 +0100
Newsgroups gmane.comp.video.graphicsmagick.help
Message-ID <CADC9rU9QjNo8U_uKCRThAXjg8_V7R7P246sEr7U74X8hbXftMA@mail.gmail.com>
> density (which becomes image->x_resolution and image->y_resolution after
being parsed) is used to set the initial affine scaling values around line
3885 of svg.c.
1) In case of zoom-in, would this preserve the quality of the image ?
2) My problem with the density approach on the whole image is that it would
blow up at some point (the limit of memory e.g.) and inefficiency (cpu
time). Suppose I would like to zoom in 20x, would I need to create a whole
20x dense image (and why not only part of it)?

> I am not aware of a way to easily accomplish this other than to render
the whole SVG to a raster image and then crop the portion you want from
it.
Here arises my problem with the 20x zoom-in.

> Otherwise, you would need to be able to modify the SVG itself so it only
renders the desired portion.
I would like to have only one SVG on which to operate. Changing it would
mean parsing, adding, replacing IO operations. Which is not completely
magick... Does no GIS have ever used GM/IM yet? GISs have tiles.

The

Am Do., 3. Dez. 2020 um 15:35 Uhr schrieb Bob Friesenhahn <
[email protected]>:

> On Thu, 3 Dec 2020, Pro Turm wrote:
>
> > Forgot to mention, I'm interested mainly in SVG zooming.
> >
> > 3)  if 2) is not the way, what is the proper way to resize only a portion
> > of the svg? Can I define a viewbox and then crop it -> resize it ? (e..g
> > zooming only part of it?)
>
> I am not aware of a way to easily accomplish this other than to render
> the whole SVG to a raster image and then crop the portion you want
> from it.  Otherwise, you would need to be able to modify the SVG
> itself so it only renders the desired portion.
>
> Bob
> --
> Bob Friesenhahn
> [email protected], http://www.simplesystems.org/users/bfriesen/
> GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
> Public Key,     http://www.simplesystems.org/users/bfriesen/public-key.txt
>
>
> _______________________________________________
> Graphicsmagick-help mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/graphicsmagick-help
>

_______________________________________________
Graphicsmagick-help mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/graphicsmagick-help