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

  • Home
  • SEARCH
  • 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 622857
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T19:01:46+00:00 2026-05-13T19:01:46+00:00

I want to resize a picture to a new size using one parameter: Width.

  • 0

I want to resize a picture to a new size using one parameter: Width.

If the picture is horizontal, the new size will be: width = Width, height = proportional to width.

And if the picture is vertical, the new size will be: height = Width, width = proportional to height.

Any idea how to implement this?

I’m using ImageMagick with MagickNet wrapper.

  • 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-13T19:01:47+00:00Added an answer on May 13, 2026 at 7:01 pm

    From the usage reference at http://www.imagemagick.org/Usage/resize/

    convert org.jpg    -resize widthxwidth  final.jpg
    

    e.g. widthxwidth can be 256×256

    The aspect ratio will be kept and the resizing will be done within the boundary of 256 X 256 pixel square.

    Quoted from the page above:

    Resize will fit the image into the
    requested size. It does NOT fill, the
    requested box size.

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

Sidebar

Related Questions

I want to resize some window with XResizeWindow(display, xid, width, height) which was created
I don't mean the resize using <img src=URL width=Xy% height=za%> , despite its look
I need to resize a picture to a fixed size. But it has to
I want to resize a div from client-side, it's default value is height:500px, clicking
When I resize a picture that is smaller than desired, I want the image
I want to resize the font of a SPAN element's style until it the
I want to create a Java application bundle for Mac without using Mac. According
I am trying to use Python to resize picture. With my camera, files are
I want to resize bmp images in codeigniter. How do i do that. Codeigniter
I have created a WriteableBitmap in Gray16 format. I want to resize this WriteableBitmap

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.