How to reduce image file size?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Parrot

    How to reduce image file size?

    Is there any routine I can call to reduce the size of an image file after
    uploading a file from a client. I am looking to reduce file sizes
    programmaticall y using C# in my web page after uploading. I know that
    Photoshop can do it but I need to do it dynamically in my web page. I tried
    doing it myself with some of the Bitmap thumbnail instructions but the
    resulting image is very bad. I need a file reduction routine that creates a
    good image that is smaller. I figured if Photoshop can do it then so can I
    but how?

  • Mike Brind

    #2
    Re: How to reduce image file size?


    Parrot wrote:[color=blue]
    > Is there any routine I can call to reduce the size of an image file after
    > uploading a file from a client. I am looking to reduce file sizes
    > programmaticall y using C# in my web page after uploading. I know that
    > Photoshop can do it but I need to do it dynamically in my web page. I tried
    > doing it myself with some of the Bitmap thumbnail instructions but the
    > resulting image is very bad. I need a file reduction routine that creates a
    > good image that is smaller. I figured if Photoshop can do it then so can I
    > but how?[/color]

    This news group covers classic ASP. Your use of C# suggests ASP.NET,
    which is a completely different technology. I suspect you can use the
    ..Net GDI library and/or classes in the System.Drawing namespace to do
    what you want, but you will probably get more help over at
    microsoft.publi c.dotnet.framew ork.aspnet.

    --
    Mike Brind

    Comment

    • Bob Barrows [MVP]

      #3
      Re: How to reduce image file size?

      Parrot wrote:[color=blue]
      > Is there any routine I can call to reduce the size of an image file
      > after uploading a file from a client. I am looking to reduce file
      > sizes programmaticall y using C# in my web page after uploading. I
      > know that Photoshop can do it but I need to do it dynamically in my
      > web page. I tried doing it myself with some of the Bitmap thumbnail
      > instructions but the resulting image is very bad. I need a file
      > reduction routine that creates a good image that is smaller. I
      > figured if Photoshop can do it then so can I but how?[/color]

      There was no way for you to know it, but this is a classic asp newsgroup.
      ASP.Net is a different technology from classic ASP.
      While you may be lucky enough to find a dotnet-savvy person here who can
      answer your question, you can eliminate the luck factor by posting your
      question to a newsgroup where the dotnet-savvy people hang out. I suggest
      microsoft.publi c.dotnet.framew ork.aspnet.

      HTH,
      Bob Barrows
      --
      Microsoft MVP -- ASP/ASP.NET
      Please reply to the newsgroup. The email account listed in my From
      header is my spam trap, so I don't check it very often. You will get a
      quicker response by posting to the newsgroup.


      Comment

      • Parrot

        #4
        Re: How to reduce image file size?

        Mike;
        Thanks for the redirection.
        Dave

        "Mike Brind" wrote:
        [color=blue]
        >
        > Parrot wrote:[color=green]
        > > Is there any routine I can call to reduce the size of an image file after
        > > uploading a file from a client. I am looking to reduce file sizes
        > > programmaticall y using C# in my web page after uploading. I know that
        > > Photoshop can do it but I need to do it dynamically in my web page. I tried
        > > doing it myself with some of the Bitmap thumbnail instructions but the
        > > resulting image is very bad. I need a file reduction routine that creates a
        > > good image that is smaller. I figured if Photoshop can do it then so can I
        > > but how?[/color]
        >
        > This news group covers classic ASP. Your use of C# suggests ASP.NET,
        > which is a completely different technology. I suspect you can use the
        > ..Net GDI library and/or classes in the System.Drawing namespace to do
        > what you want, but you will probably get more help over at
        > microsoft.publi c.dotnet.framew ork.aspnet.
        >
        > --
        > Mike Brind
        >
        >[/color]

        Comment

        Working...