Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. asp.net (simple) image editor

asp.net (simple) image editor

Scheduled Pinned Locked Moved The Lounge
csharpasp-netmobiledesignarchitecture
11 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Jan R Hansen

    hi, I need a somewhat simple image editor for my customers website. I've implemented a file archive with upload, delete, move, rename yada yada yada... - and now I need an editor for the images they upload. It should be able to resize the original picture, maybe crop, maybe convert to grayscale etc. Nothing really advanced is needed, but I need a good and responsive UI (AJAX-ified) that works in most browsers. The image operations may be simple enough to implement in C#, but I can't afford the time it will take (ages) to create a solid UI. It doesn't have to be free, but I would like to get the source when buying. It could be a third-party you have used and will recommend - or something you have just made for yourself. If so, just respond. Any good ideas ? BR /Jan

    Do you know why it's important to make fast decisions? Because you give yourself more time to correct your mistakes, when you find out that you made the wrong one. Chris Meech on deciding whether to go to his daughters graduation or a Neil Young concert

    A Offline
    A Offline
    achimera
    wrote on last edited by
    #2

    I noticed this[^] the other day. I have no idea if it is worthwhile though.

    J 1 Reply Last reply
    0
    • A achimera

      I noticed this[^] the other day. I have no idea if it is worthwhile though.

      J Offline
      J Offline
      Jan R Hansen
      wrote on last edited by
      #3

      thanks - not quite what I expected as this component seem to be very insistent that you upload though it :-D I'll take a good look at it though, might suit our needs fine after all. - any other suggestions, people ?

      Do you know why it's important to make fast decisions? Because you give yourself more time to correct your mistakes, when you find out that you made the wrong one. Chris Meech on deciding whether to go to his daughters graduation or a Neil Young concert

      C 1 Reply Last reply
      0
      • J Jan R Hansen

        thanks - not quite what I expected as this component seem to be very insistent that you upload though it :-D I'll take a good look at it though, might suit our needs fine after all. - any other suggestions, people ?

        Do you know why it's important to make fast decisions? Because you give yourself more time to correct your mistakes, when you find out that you made the wrong one. Chris Meech on deciding whether to go to his daughters graduation or a Neil Young concert

        C Offline
        C Offline
        Christian Graus
        wrote on last edited by
        #4

        What do you need to do, exactly ? cropping/resizing/greyscaling an image seems like it wouldn't take long to write.  If you use Atlas, it's not overly efficient, but you get AJAX basically for free.

        Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert

        J 1 Reply Last reply
        0
        • C Christian Graus

          What do you need to do, exactly ? cropping/resizing/greyscaling an image seems like it wouldn't take long to write.  If you use Atlas, it's not overly efficient, but you get AJAX basically for free.

          Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert

          J Offline
          J Offline
          Jan R Hansen
          wrote on last edited by
          #5

          well, what do I need... * cropping * resizing nice-to-have: * grayscaling * - and other (similar) effects * quality (encoding) change It might not be that difficult to do - but my experience is that creating a (web) user interface for _very_ common and simple things are a) done before by someone else who had more time on his hands than I do now - and b) actually a tad more difficult when you implement it than what it seemed to be at first glance :-D - so I would like to get someone else to do the dirty work and make sure it _also_ works in firefox and so on. But the strange thing is that you usually get overwhelmed with third party controls for such things - and I couldn't find anything suitable with google. Maybe I'm using the wrong keywords: wysiwyg image editor asp.net - all I get is rich text editors...

          Do you know why it's important to make fast decisions? Because you give yourself more time to correct your mistakes, when you find out that you made the wrong one. Chris Meech on deciding whether to go to his daughters graduation or a Neil Young concert

          C R 2 Replies Last reply
          0
          • J Jan R Hansen

            hi, I need a somewhat simple image editor for my customers website. I've implemented a file archive with upload, delete, move, rename yada yada yada... - and now I need an editor for the images they upload. It should be able to resize the original picture, maybe crop, maybe convert to grayscale etc. Nothing really advanced is needed, but I need a good and responsive UI (AJAX-ified) that works in most browsers. The image operations may be simple enough to implement in C#, but I can't afford the time it will take (ages) to create a solid UI. It doesn't have to be free, but I would like to get the source when buying. It could be a third-party you have used and will recommend - or something you have just made for yourself. If so, just respond. Any good ideas ? BR /Jan

            Do you know why it's important to make fast decisions? Because you give yourself more time to correct your mistakes, when you find out that you made the wrong one. Chris Meech on deciding whether to go to his daughters graduation or a Neil Young concert

            A Offline
            A Offline
            achimera
            wrote on last edited by
            #6

            Here's a couple articles I had bookmarked... http://www.codeproject.com/aspnet/ImageCMS1.asp[^] http://www.codeproject.com/aspnet/ImageCMS2.asp[^]

            J 1 Reply Last reply
            0
            • J Jan R Hansen

              well, what do I need... * cropping * resizing nice-to-have: * grayscaling * - and other (similar) effects * quality (encoding) change It might not be that difficult to do - but my experience is that creating a (web) user interface for _very_ common and simple things are a) done before by someone else who had more time on his hands than I do now - and b) actually a tad more difficult when you implement it than what it seemed to be at first glance :-D - so I would like to get someone else to do the dirty work and make sure it _also_ works in firefox and so on. But the strange thing is that you usually get overwhelmed with third party controls for such things - and I couldn't find anything suitable with google. Maybe I'm using the wrong keywords: wysiwyg image editor asp.net - all I get is rich text editors...

              Do you know why it's important to make fast decisions? Because you give yourself more time to correct your mistakes, when you find out that you made the wrong one. Chris Meech on deciding whether to go to his daughters graduation or a Neil Young concert

              C Offline
              C Offline
              Christian Graus
              wrote on last edited by
              #7

              The thing is, everything you're listing apart from cropping, would be done by clicking a button and sending a request to the server, there's not really any UI involved ( that is, no tracking of the mouse as you draw a line, for example ). The only pain is the cropping, if you want to click and drag out an area ( as I'd assume you would )

              Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert

              J 1 Reply Last reply
              0
              • J Jan R Hansen

                well, what do I need... * cropping * resizing nice-to-have: * grayscaling * - and other (similar) effects * quality (encoding) change It might not be that difficult to do - but my experience is that creating a (web) user interface for _very_ common and simple things are a) done before by someone else who had more time on his hands than I do now - and b) actually a tad more difficult when you implement it than what it seemed to be at first glance :-D - so I would like to get someone else to do the dirty work and make sure it _also_ works in firefox and so on. But the strange thing is that you usually get overwhelmed with third party controls for such things - and I couldn't find anything suitable with google. Maybe I'm using the wrong keywords: wysiwyg image editor asp.net - all I get is rich text editors...

                Do you know why it's important to make fast decisions? Because you give yourself more time to correct your mistakes, when you find out that you made the wrong one. Chris Meech on deciding whether to go to his daughters graduation or a Neil Young concert

                R Offline
                R Offline
                RoswellNX
                wrote on last edited by
                #8

                Christian Graus wrote:

                The thing is, everything you're listing apart from cropping, would be done by clicking a button and sending a request to the server, there's not really any UI involved ( that is, no tracking of the mouse as you draw a line, for example ). The only pain is the cropping, if you want to click and drag out an area ( as I'd assume you would )

                Yeah, he's right... To crop you will only need the x,y coords for the top left and the bottom right corners, something you can probably write a script to do in JavaScript. Build some kind of a pre-set coordinate plane, i.e. have the graphical box snap to the named points (reminds me of working on a game in Flash where each sprite had its own x,y coords and had to be called up using those). Use onClick and onRelease for it to start and stop, which would include it grabbing the coords. I'm thinking (though i haven't done this yet and don't know how many holes my idea has)have the upload script determine the pixel width and height of the image, pass it onto Javascript, which would measure half the distance of each(width and height) from the preset points (top and left) where on your page the image starts, like the border of the div, thus determining the 0,0 point in the middle of the picture, from which it would calculate the evenly spaced named points the crop box would snap to. Then convert the script's snapping coords(presumably spaced every 5px) to the real image coords and sends it to the server. I'll try to do an ASCII diagram here: -4,5____________ ............... ............... ............... .......0....... ............... ............... ............... _______________6,-9 where you can determine the other two corners by recombining the coords of the known two Roswell:rose:

                "Angelinos -- excuse me. There will be civility today."
                Antonio VillaRaigosa
                City Mayor, Los Angeles, CA

                J 1 Reply Last reply
                0
                • C Christian Graus

                  The thing is, everything you're listing apart from cropping, would be done by clicking a button and sending a request to the server, there's not really any UI involved ( that is, no tracking of the mouse as you draw a line, for example ). The only pain is the cropping, if you want to click and drag out an area ( as I'd assume you would )

                  Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert

                  J Offline
                  J Offline
                  Jan R Hansen
                  wrote on last edited by
                  #9

                  you're right :) It might not be that difficult to write - so I might end up with the (very impressive) ideas by Tom Crane here: http://www.codeproject.com/aspnet/ImageCMS1.asp[^] and here : http://www.codeproject.com/aspnet/ImageCMS2.asp[^]. The problem is - this will take me some time, also to get it working in multiple browsers, and what I don't have right now is... tada... time. So I'd rather buy a solution than struggle creating one myself. There might be a market for this - I can't find anything decent on google... Thanks for you idas, Chris !

                  Do you know why it's important to make fast decisions? Because you give yourself more time to correct your mistakes, when you find out that you made the wrong one. Chris Meech on deciding whether to go to his daughters graduation or a Neil Young concert

                  1 Reply Last reply
                  0
                  • A achimera

                    Here's a couple articles I had bookmarked... http://www.codeproject.com/aspnet/ImageCMS1.asp[^] http://www.codeproject.com/aspnet/ImageCMS2.asp[^]

                    J Offline
                    J Offline
                    Jan R Hansen
                    wrote on last edited by
                    #10

                    Very impressive, I must say. Thanks for the links. Beats me why I didn't find them while searching.

                    Do you know why it's important to make fast decisions? Because you give yourself more time to correct your mistakes, when you find out that you made the wrong one. Chris Meech on deciding whether to go to his daughters graduation or a Neil Young concert

                    1 Reply Last reply
                    0
                    • R RoswellNX

                      Christian Graus wrote:

                      The thing is, everything you're listing apart from cropping, would be done by clicking a button and sending a request to the server, there's not really any UI involved ( that is, no tracking of the mouse as you draw a line, for example ). The only pain is the cropping, if you want to click and drag out an area ( as I'd assume you would )

                      Yeah, he's right... To crop you will only need the x,y coords for the top left and the bottom right corners, something you can probably write a script to do in JavaScript. Build some kind of a pre-set coordinate plane, i.e. have the graphical box snap to the named points (reminds me of working on a game in Flash where each sprite had its own x,y coords and had to be called up using those). Use onClick and onRelease for it to start and stop, which would include it grabbing the coords. I'm thinking (though i haven't done this yet and don't know how many holes my idea has)have the upload script determine the pixel width and height of the image, pass it onto Javascript, which would measure half the distance of each(width and height) from the preset points (top and left) where on your page the image starts, like the border of the div, thus determining the 0,0 point in the middle of the picture, from which it would calculate the evenly spaced named points the crop box would snap to. Then convert the script's snapping coords(presumably spaced every 5px) to the real image coords and sends it to the server. I'll try to do an ASCII diagram here: -4,5____________ ............... ............... ............... .......0....... ............... ............... ............... _______________6,-9 where you can determine the other two corners by recombining the coords of the known two Roswell:rose:

                      "Angelinos -- excuse me. There will be civility today."
                      Antonio VillaRaigosa
                      City Mayor, Los Angeles, CA

                      J Offline
                      J Offline
                      Jan R Hansen
                      wrote on last edited by
                      #11

                      yeah, thanks. I get the point :o) I'll see if I can find something to use - otherwise I might end up implementing this myself (see my post to Chris: http://www.codeproject.com/lounge.asp?msg=1860658#xx1860658xx[^] ). Anyway, thanks for your comments and ideas - CP is a great place :-D /Jan

                      Do you know why it's important to make fast decisions? Because you give yourself more time to correct your mistakes, when you find out that you made the wrong one. Chris Meech on deciding whether to go to his daughters graduation or a Neil Young concert

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups