Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

Making an image load faster

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

    Making an image load faster

    I'm loading a 300k jpg image into the bitmap control.

    I'm loading it from the OnRowChange event of a browse and using an Action that sets the bitmap filename to the value of a field in the browse.

    It takes about 3 seconds to load. Is there any way to make the image "pop" without the 3 second delay... seems like a long time.

    David

    #2
    Re: Making an image load faster

    try saving the .jpg as a .png and see if that makes it significantly smaller, and possibly thus faster.
    Cole Custom Programming - Terrell, Texas
    972 524 8714
    [email protected]

    ____________________
    "A young man who is not liberal has no heart, but an old man who is not conservative has no mind." GB Shaw

    Comment


      #3
      Re: Making an image load faster

      One possible solution is to load it into BLOB variable, and cache the last n values that you need to display. If the value is not one of those that are current, then load it conditionally.
      Regards,

      Ira J. Perlow
      Computer Systems Design


      CSDA A5 Products
      New - Free CSDA DiagInfo - v1.39, 30 Apr 2013
      CSDA Barcode Functions

      CSDA Code Utility
      CSDA Screen Capture


      Comment


        #4
        Re: Making an image load faster

        Thanks Guys... I can't convert to PNG - images being loaded by app users. They download from cameras and I can't see them converting hundreds of images all the time. I'll try loading into a BLOB.

        David

        Comment


          #5
          Re: Making an image load faster

          Presumably, you need to use a browse. Otherwise, another solution is to display multiple images in a webcontent supercontrol. This will be significantly faster.

          Comment


            #6
            Re: Making an image load faster

            Looks like A5 can't handle processing images very quickly. I've got a table with the full path to jpg images. When I click on a browse row the image takes seconds to display instead of just popping up. To browse through a list of 10 or 20 images is agonizing. Coming from VB and Access I'm used to a pretty much instant display. Too bad.

            David

            Comment


              #7
              Re: Making an image load faster

              David,

              A few suggestions have been made to speed up the loading process...have you tried them??

              An aside----I wonder if there is something else going on as it sure seems that in version 8 when I have an jpeg image in a browse and a separate image field that corresponds, the image displays instantly. I am using an image reference field however. Even have a 2.57 MB bitmap that displays instantly.
              Last edited by MikeC; 07-12-2008, 11:00 PM.
              Mike
              __________________________________________
              It is only when we forget all our learning that we begin to know.
              It's not what you look at that matters, it's what you see.
              Henry David Thoreau
              __________________________________________



              Comment


                #8
                Re: Making an image load faster

                Yes... tried the BLOB route, but sometimes I'll have 60 images to load... it's going to put a drain on the system... and I don't want to start write code to track what's been cached and what hasn't. I didn't think I should have to jump through hoops to display an image in decent time.

                I tried the image reference field too... image still takes time to load... and they're only 300k. Not wanting it to do anything magical... just need it responsive.

                David

                Comment


                  #9
                  Re: Making an image load faster

                  I use to use the Pegasus ImagXpress control under VB and Access - very good. When Access 2007 came out MS improved the image control substantially - very fast, exposed the properties so I used that.

                  I'd like to see the Image control under A5 improved. I've managed to install ImagXpress in A5 and get it to work quite easily - and it's fast. The image displays as soon as a browse record is selected.

                  I'd prefer not to use 3rd party controls - too messy sometimes, but the A5 Image control isn't there yet.

                  David

                  Comment


                    #10
                    Re: Making an image load faster

                    did you mean 60 browse records with 1 image each? surely not 60 per browse record.

                    what version of ImagXpress did you use, and how do you use it in Alpha?
                    Cole Custom Programming - Terrell, Texas
                    972 524 8714
                    [email protected]

                    ____________________
                    "A young man who is not liberal has no heart, but an old man who is not conservative has no mind." GB Shaw

                    Comment


                      #11
                      Re: Making an image load faster

                      Yes, 1 image per browse row... move up and down the browse row and the image attached to that record displays.

                      The version I'm using is older... Version 3.0... I believe version 6 or 7 is available. From a browse event...

                      frmClaims_Images_Adj:activex1.activex.filename = Tblclaimimages->imageloc

                      I need to name things properly, but just wanted to test. Rotate, and lots of other functions available.

                      If I recall, it doesn't print very well. For printing under VB and Access I used Pegasus ImagN - going to try that tonight. If the A5 Image control is slow loading on screen, then printing several pages of 4 to 6 images each will take too long.

                      Again, I'd prefer to use an A5 control... but it's just not fast enough.


                      David

                      Comment


                        #12
                        Re: Making an image load faster

                        FWIW, I'm working on this in the same way. When I click from row to row on the browse, the pics with a lighter background load in less tha a second. The ones with a dark background take about twice as long.

                        Also, with the browse on the form, when in edit mode, design work is slower than a 7 year itch. Whit the browse removed, the design work appears to be normal.

                        I experimented with another form and found there was a slight delat when moving objects around. (not as bad as the 7 yrar itch) I removed the browse and object movement is instantaneous.


                        kenn
                        TYVM :) kenn

                        Knowing what you can achieve will not become reality until you imagine and explore.

                        Comment


                          #13
                          Re: Making an image load faster

                          I found response time to be "jagged" as well. I wasn't sure if it was the bitmap control or the browse. While in design mode cursor movement is hesitant... not smooth... and objects take a long time (relatively) to work with.

                          Instead of a bitmap control, try adding an Image Reference
                          field to your table (I think that's the name - not at my desk). It seems to load faster and has a built-in function to open a dialog to get an image. It stores just the path and filename of the image in the table. Good for adding one image at a time, but to add many at once I'm using xbasic.

                          Also, the image reference field works well in a report. I couldn't get the Bitmap image or the Pegasus ImageX controls to work for me.

                          David

                          Comment


                            #14
                            Re: Making an image load faster

                            Hello David,

                            Mine is set for the image reference. I suspect it has more to do with the browse than the image field.

                            kenn
                            TYVM :) kenn

                            Knowing what you can achieve will not become reality until you imagine and explore.

                            Comment

                            Working...
                            X