1

What I want is, when someone upload an image bigger than 1MB it get compressed and resized to be 1MB.
I am using http://nuget.org/packages/ImageResizer/ if this can help me doing this task

Amr Elgarhy
  • 66,568
  • 69
  • 184
  • 301
  • Does this need to be exact, or would "about 1MB" be ok? – Eric Petroelje Jul 16 '13 at 14:30
  • A quickscan of the tool: When you request a picture you can specify the size. This is not what you want. You want the picture resized when it is uploaded. – RvdK Jul 16 '13 at 14:30
  • 2
    There's too many different ways to compress an image to a given size. You can throw away quality. You can simply shrink it. You can crop it. You can change the file type of the picture... – Bobson Jul 16 '13 at 14:31
  • @EricPetroelje about 1MB – Amr Elgarhy Jul 16 '13 at 14:32
  • I don't want to crop it, resize will be the best, but how I know which size will give me less than 1MB file size – Amr Elgarhy Jul 16 '13 at 14:34
  • There isn't a *good* way to force a size, although it's possible. See the question I linked to for some ideas. – Bobson Jul 16 '13 at 15:14

0 Answers0