Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6683757
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:51:32+00:00 2026-05-26T04:51:32+00:00

I have an SVG with many polygons: https://github.com/barrycarter/bcapps/blob/master/sample-data/current-temps.svg that looks somewhat like this: Cropping

  • 0

I have an SVG with many polygons:

https://github.com/barrycarter/bcapps/blob/master/sample-data/current-temps.svg

that looks somewhat like this:

enter image description here

Cropping this and converting to PNG works fine:

convert -crop 100x100+200+150 current-temps.svg /tmp/exhb2.png

enter image description here

Cropping and scaling, however, fails:

convert -crop 100x100+200+150 -scale 1000x750 current-temps.svg /tmp/exhb3.png

enter image description here

How do I make ImageMagick “zoom into” the SVG before cropping?

(I realize ImageMagick can only read, not write, the SVG format, but
it should still be able to do what I want?)

EDIT/SOLVED:

Thanks, robermorales.

inkscape -z -e out4.png -w 1000 -h 1000 -a 200:200:400:400 current-temps.svg 

(for example) worked like a charm.

I also realized that copying the SVG, tweaking the transform line:

<g transform="scale(3,3) rotate(-90) translate(-90,180)"> 

and then converting to PNG is another solution.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T04:51:32+00:00Added an answer on May 26, 2026 at 4:51 am

    Try doing scale before crop.

    However, doing that using inkscape cli is easier.

    Sorry for no links, afk

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a SVG file that I want to extend by adding onclick handlers
I have an SVG map of the world, and I want to colour each
I have made a SVG image, or more like mini application, for viewing graphs
I have the following SVG source code that generates a number of boxes with
I have a rather interesting issue with SVG animation. I am animating along a
I have a php script (generator.php) which generates certain HTML/XML/SVG depending on various conditions.
I need to have a linked text inside a svg graph. Here is what
I have a large SVG file (approx. 60 MB, 10000x10000 pixels but with the
I have made a very simple Pie Graph generator using Javascript & SVG graphics.
I have an SVG file inside HTML, and one of the things I've heard

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.