Announcement

Collapse
No announcement yet.

Creating an image previewer...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Creating an image previewer...

    Ok, I need to create an image viewer, that will show an image, display some text, and allow a large number of items to be viewed.

    I've created a list box for the item selection, a web browser object for the image, and a text box for the description. I wanted to use an image object box, but the images can't be changed in them at run time, so that's not easy, unless I create a new object for each item, and that would be excessive, and hard to add items in the future.

    I have it all working as is, and all the code is OK, dynamic, and expandable in the future; but I don't really like using the web browser box to show the image. It would be nice if I could have the image resize itself when shown, so I can have a small preview, and then when the item is double clicked, i can have it open up the large-size jpg in the default viewer. I thought about creating an html page for each object to resize them, but that's not a great solution either. The other problem is that a few of the images are different dimensions that the others...I may just edit those to all be the same size though...

    Any ideas or thoughts about a better way to do this?


    Oh, btw, I have another page which uses a very similar layout, except the content is a mix of images and mpgs. I'm using the browser box for that as well, and I think that'll be my only solution for displaying both types of content...

    OH, and yes, I tried opening the jpgs in a media player window, but the quality of the image (even if I use small images which are not being resized) is HORRIBLE. --try it yourself with media player and a jpg...and I'm using XP and the latest version of media player; why can't Microsoft display a simple JPG!?!?

  • #2
    Re: Creating an image previewer...

    Flash can easily dynamically load JPEGs via the loadMovie function at runtime and fit them to size without completely uglifying them, if you resize via PHP or HTML your images will be ugly with a capital "U".

    Corey Milner
    Creative Director, Indigo Rose Software

    Comment


    • #3
      Re: Creating an image previewer...


      if you resize via PHP or HTML your images will be ugly with a capital "U"
      I am inclined to disagree ... as long as ratio's are kept.
      -
      = Derek
      ["All glory comes from daring to begin" - fortune cookie]

      Comment


      • #4
        Re: Creating an image previewer...

        OK then your theory should be easy to prove, show me any example of any HTML or PHP which can resize a picture smoothly such as Flash does.

        http://graphicssoft.about.com/librar...resizehtml.htm

        Corey Milner
        Creative Director, Indigo Rose Software

        Comment


        • #5
          Re: Creating an image previewer...


          1 example
          -
          = Derek
          ["All glory comes from daring to begin" - fortune cookie]

          Comment


          • #6
            Re: Creating an image previewer...

            Page doesn't load, no point though I was being facetious. If you followed that link above you will find the truth, if you are in some sort of ongoing struggle with the truth that's fine by me (aren't we all to some extent?) but don't insinuate that your opinions are facts in this regard. [img]/ubbthreads/images/icons/smile.gif[/img]

            Just for the record I made an image viewer once and I did it in flash.

            Corey Milner
            Creative Director, Indigo Rose Software

            Comment


            • #7
              Re: Creating an image previewer...

              BTW sorry if you found that harsh Derek but I hate to think someone will walk away thinking that uninterpolated resizing is in any way similar to interpolated resizing.

              BTW You do realize that browser-resized images do not appear the same in all browsers/resolutions right? They might look fine at 800X600 and then completely shot at 640 X 480. Trust me and trust Sue Chastain at the link above, it is not correct practice to resize images dynamically via PHP/HTML.

              No professionally trained designer does that nor reccomends it... Nothing personal but it drives me nuts when people argue with reality.

              Corey Milner
              Creative Director, Indigo Rose Software

              Comment


              • #8
                Re: Creating an image previewer...

                I agree with everything. [img]/ubbthreads/images/icons/smile.gif[/img]

                I don't pretend that it's good practice or the best way about it. I simply disagreed that they look Ugly with a capital U
                Of course, they can and will do with the right conditions, just not always. Some pics will look fine, but that depends on the pic - entirely. If it has any text in it .. forget it! They always look bad when resized in a browser.

                ... and the world will keep on spinning! [img]/ubbthreads/images/icons/smile.gif[/img]
                -
                = Derek
                ["All glory comes from daring to begin" - fortune cookie]

                Comment


                • #9
                  Re: Creating an image previewer...

                  Yes, i.e. bad = ugly Mr. Semantic Pants.

                  Corey Milner
                  Creative Director, Indigo Rose Software

                  Comment


                  • #10
                    Re: Creating an image previewer...

                    I'll rephrase it then [just for you]:

                    If it has any text in it .. forget it! They always look ugly when resized in a browser.
                    -
                    = Derek
                    ["All glory comes from daring to begin" - fortune cookie]

                    Comment


                    • #11
                      Re: Creating an image previewer...

                      I dunno...what if you liked the way messed-up text looks? I mean...beauty is in the eye of the beholder. [img]/ubbthreads/images/icons/wink.gif[/img]
                      --[[ Indigo Rose Software Developer ]]

                      Comment


                      • #12
                        Re: Creating an image previewer...

                        Text or no text it's the same, it's a case of inconsistency, you seem to assume that what you see at your house is what others will see and it isn't. It will vary from broswer to broswer, platform to platform, and from graphics card to graphcs card unlike proper resizing which will be seen as the same (within reason) in all these scenarios.

                        As for Lorne's coment, sure that's true. I love random ugliness, as you know I am a Dali fan and he eschewed that totally but I doubt that's what the poster had in mind.

                        As I say I built an image viewer once and a flash object was the only way I found to get it right...

                        Corey Milner
                        Creative Director, Indigo Rose Software

                        Comment


                        • #13
                          Re: Creating an image previewer...

                          OK!

                          [I knew it was a mistake to disagree right from the start]
                          -
                          = Derek
                          ["All glory comes from daring to begin" - fortune cookie]

                          Comment

                          Working...
                          X
                          😀
                          🥰
                          🤢
                          😎
                          😡
                          👍
                          👎