Re: Image hell(p)

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: S. Justin Gengo (sjgengo_at_aboutfortunate.com)
Date: 06/14/04


Date: Mon, 14 Jun 2004 13:49:18 -0500

Steve,

I saw your post.

I just finished creating exactly what you need. A couple of .Net pages that
allow you to convert and upload almost any image to a web server. You can
change image size and quality and then save as a .jpg file. I'm working on
the ability to save as .gif also, but that isn't complete yet.

While I didn't finish the .gif portion yet. The code all works perfectly for
.jpg. I was planning on putting the completed project out on my website and
decided to put it out early for you. Everything on my site is free for
anyone's use.

You can download the project from the code library area of my website,
www.aboutfortunate.com. Just click on the "Code Library" link on the to
right of the page. The code you need is now the first entry in the datagrid.

If you have any questions about the code or getting the project running feel
free to contact me.

-- 
Sincerely,
S. Justin Gengo, MCP
Web Developer / Programmer
www.aboutfortunate.com
"Out of chaos comes order."
                            Nietzsche
"Steve Peterson" <speterson@arrakis.es> wrote in message
news:uBNaHhfUEHA.3420@TK2MSFTNGP12.phx.gbl...
> Hi
>
> I've been beating my head against the wall trying to get this done, with
> little to no success so I thought I would turn to the .Net community for
> some help.
>
> I have an .NET app in which the user can upload an image file. What I need
> to do is take the image and save it in a scale it to a preset size (for
> example an image origanally 640X480 to 320X240 or 50% of original size).
> Doing the math to get the correct new width & height is no problem. The
> problem is saving the image in .jpg format and KEEPING the image quality
as
> best as possible.
>
> At first I tried using the "GetThumbnailImage" method, but quickly
realized
> that won't work for a couple of reasons: image quality & possible imbedded
> thumbnails.
>
> So far all the documentation I''ve found has been very confusing &
> complicated. I'm a database/ business object guy with very little
experience
> working with graphics....
>
> So - I'm hoping that someone out there will point me in the correct
> direction on how to do this using the GDI+
>
> TIA
> Steve
>
>


Relevant Pages

  • Re: help! pics on website are coming up red "x"
    ... It depends on the choice you have for saving the image as a jpeg (jpg) in Jasc Paint Shop. ... FrontPage Resources, WebCircle, MS KB Quick Links, etc. ... I noticed when I try to upload ... I can upload it and it does come up on the webpage. ...
    (microsoft.public.frontpage.client)
  • RE: Malicious file upload in .JPG or GIF format
    ... Some checks are so bad that as long as the string includes .jpg ... Filename must end with .jpg ... Content upload to database ... If the server changes the extension to .JPG/.GIF (or only allows those ...
    (Pen-Test)
  • Re: mime types
    ... $msg = 'Problem: file is not jpg'; ... to upload a jpg using internet explorer an error is produced saying that ... bill there are other proxies not made by Microsoft Employees, ... want to allow image uploads, then make sure they are images, after all ...
    (alt.php)
  • Re: For John Inzer---->SUCCESS & another question :)
    ... Meant to say below PNG not JNG instead of JPG. ... > a collage done and tried to upload it for copies and it wouldn't upload ... >> Digital Image Support Center ...
    (microsoft.public.windowsxp.photos)
  • Re: Using CR2 and Photoshop CS....
    ... Not having used .tif much and only using .jpg to save images that ... the Canon software to either of these formats I will loose image ... Working in TIFF does not cause you to loose any image quality compared ... As a .tif? ...
    (alt.graphics.photoshop)