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 888281
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T13:22:17+00:00 2026-05-15T13:22:17+00:00

I want to crop an image at the server side (I am using ‘JCrop’

  • 0

I want to crop an image at the server side (I am using ‘JCrop’ and ‘ASP.NET 3.5’).
There is a case when the user can add an image from external site to an article.I want
to anable the user to create a thumbnail from that image and store the result on the server.
In this case code like

string originalFile = Server.MapPath(this.srcImage.ImageUrl);
using (Image img = Image.FromFile(originalFile))
{
    using (System.Drawing.Bitmap _bitmap = new System.Drawing.Bitmap(w, h))
    {
        _bitmap.SetResolution(img.HorizontalResolution, img.VerticalResolution);
        ......
        [Please see code here][1] will not work as the image URL is external and not a file on the server's file system.

Can someone please show me how can I create an System.Drawing.Image object from a given external image URL string

  • 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-15T13:22:18+00:00Added an answer on May 15, 2026 at 1:22 pm

    Load the image from web, put the data in a MemoryStream (see here for an example: http://www.vcskicks.com/image-from-url.php)

    and then use FromStream() method:

    http://msdn.microsoft.com/it-it/library/93z9ee4x(v=VS.80).aspx

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

Sidebar

Related Questions

i want to crop image via drawing circle using touchMoved event. so how can
I want to process(crop) image having resolution with more than 3MP. Can anybody help
Is there any way to crop a photo using client side JavaScript only? When
I want to crop an image using images library of google app engine. The
With Jcrop one can select parts of an image to crop it later on
How can I resize an image using HTML/CSS only (i.e no server code) while
I am using JCrop plugin to crop image, things are working good with following
I want to crop Red part from following image, Is there any simple method
I want to crop an image. Is it possible to do like this. And
I want to crop images using the GD, but I want it to crop

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.