Creating thumbnails / resampling image for DisplayImageFile?

Hello All,
I was trying to build a panel to show multiple photos (50) for verification (double click to view whole image in separate window) prior to upload for final storage.
I need to resample / thumbnail to approximately fit the control so that the memory usage does not go through the roof. These images will be from several cameras and as such the image type may change  - but starting with jpg would go along way.
This may be as simple as a missed setting on the uir but I was not able to figure it out. I am not opposed to creating temp thumbnails on the hard drive and clean them away later.
Prefer CVI or SDK to ActiveX etc.
Thanks in advance,
Greg
Solved!
Go to Solution.

ebalci wrote:  Probably SetCtrlBitmap function was there just to show an alternative.
I commented it without destroying the program requirements.
You can also put GetCtrlDisplayBitmap and DiscardBitmap functions inside "if (save)" block.
This may make things quicker if saving is not required.
Well, actually not. SetCtrlBitmap helps reducing memory occupation in the process: on a limited-memory machine, loading several big images can ultimately lead to a Out-of-memory error in DisplayImageFile and in not displaying the image on the panel. Reloading a smaller bitmap in the controls reduces this effect. As an example, on a 1Gb memory machine progressive loading of a 900x650 pixels bmp image generates such error after more or less 40 images loaded. The bigger the image, the fastest this effect will show. Trapping that non-fatal error permits the function to conclude but the images are not loaded to screen.
In that scenario, adding DiscardBitmap has no effect at all, as memory for the image is allocated inside the picture control.
...it seems your development machine is much bigger than mine 
Proud to use LW/CVI from 3.1 on.
My contributions to the Developer Zone Community
If I have helped you, why not giving me a kudos?

Similar Messages

  • I hired a commercial artist to create a color image for the cover of a self published book. I want a black and white image for the inside. The commercial artist has not responded to this request. How do I determine the format of the color image, I'm guess

    I hired a commercial artist to create a color image for the cover of a self published book. I want a black and white image for the inside. The commercial artist has not responded to this request. How do I determine the format of the color image, I'm guessing it's Illustrator's formatting but I don't know. How can I find out if Illustrator will open the file and allow alterations? The image opens only in Apple's Pages software?

    rons,
    It seems that all you have is a raster image, presumable PNG24 or JPEG, in RGB.
    It may have been created as raster artwork in Photoshop, or it may have been created as vector artwork with the help of Illy, or as a mixture of vector and raster artwork in either application, or both combined.
    If you just need to have a raster representation in black and white based on the current colour image, you may try this, in a new RGB document (View>Smart Guides are your friends):
    1) File>Place the image (you may tick Link or untick and have it embedded);
    2) Create a rectangle with black fill (R = G = B = 0), at least as large as the image, and place it behind the image (you may ClickDrag with the Rectangle Tool between opposite corners, then Ctrl/Cmd+X+B);
    3) Select all and in the Transparnecy palette flyout click Make Opacity Mask with both Clip and Invert Mask ticked.

  • Best way to create a background image for all resolutions without drastically increasing file size.

    I see a lot of great background images with complex designs that resize with different screen resolutions. I can create the designs, but I don't know how to create a complex image for large screen resolutions without making it a large file, or it loosing quality with it stretches to the larger size. Is there a code that resizes images when stretched, or do I just have to live with a slower load speed with complex background images?

    The background doesn't resize, it shrinks:
    http://johnpatrickgiven.com/jquery/background-resize/
    Basically make a 1920x1080 or higher resolution file and use that script.  There will always be a maximum but based on your response that is not your monitor.  Photoshop and other tools do a pretty good job compressing jpeg files and most internet connections are fast enough to make it seamless.

  • Creating Thumbnails of Images without AWT

    I've searched in a lot of places, and am becoming increasingly surprised I cannot find a straightforward answer to a problem I have. I run Tomcat on a server which has no X11, and I do not want to install it. However, I am also trying to create a servlet which will take an image from a byte array and create a thumbnail of it.
    While I have seen many examples of this, all use AWT, which seems to require using X11 or some windowing system even to run at all (despite my not trying to create a window or anything). While I understand that there is an option that can be added to the initialization script for Tomcat ("JAVA_OPTS=-Djava.awt.headless=true") I would far prefer simple code that didn't use AWT at all.
    Does anyone know how to create a thumbnail or resize an image without the use of the AWT library whatsoever? Thanks very much!

    Hmm... sorry I didn't know that.
    I remember seeing some section on this website about Java Imaging or something like that and it seemed totally independent of AWT.
    I came accross another imaging article:
    http://johnbokma.com/java/obtaining-image-metadata.html , this one doesn't seem to use AWT - at least I don't see any in the imports.
    May be Images are supposed to work only with AWT.
    Here's another set of examples:
    http://www.exampledepot.com/egs/javax.imageio/pkg.html
    that demonstrates the javax.imageio package, but those examples also use AWT.
    I think one could re-size an image on a website to create thumbnails, by specifying a percent width and height. and may be there's no need to have a package to create thumbnails on a web page when it could be done with HTML and that's probably why there isn't image processing for web pages (this is just my guess work, I could be wrong)
    Message was edited by:
    appy77

  • How to create a background image for each item in a List object

    Hello.
    I am trying to create a background image that displays whenever a user posts something to a list.  For example when a user posts text it would appear in a list.  The new item in the list would contain a specific background image with the users text appearing on top of the background image.  I do not want a background image for the entire list, rather each item within the list.
    I am not sure how clear this is so I added an image below.  When a user enters text in and clicks the "post-it" button their text would appear below with the sticky note background. 
    I am not sure which list type would be best for this problem or how to create insert the image, so I am open to suggestions. 
    Thank you for your help.  Any advice or guidance will be greatly appreciated!

    Hi
    the easiest way would be with itemRenderer.
    You have to do two things:
    1. In your list declaration use a item renderer: <mx:List itemRenderer="myRenderer"/>
    2. create a flex component myRenderer that will be the single item. This can be a canvas with a background image and a text field on it.
    When you add a new item to the list, a new myRenderer item will be created and the data property will be passed to it. So you have to put "data" in your textField.
    If you need more help try looking at Tour de Flex samples, they're pretty easy.
    Andrei

  • How do I create a disk image for windows 7, using a windows computer for USB bootcamp for mac?

    Hi There, I have just bought a new 2013 iMac.
    Spec: 3.4 GHz intel core i5, 16GB 1600 MHz DDR3 Memory , NVIDIA GeForce GTX 775M 2048 MB Graphics with OS X 10.9.4.
    How can I create a 'disk image' from a windows 7 professional 64bit installation DVD using a windows laptop with windows 7 Operating system on? I want to transfer this 'disk image' (ISO?) to a USB ready for installing windows onto my 2013 iMac using bootcamp?  I want to use bootcamp from a USB as I have no disk drive for the installation DVD on my iMac. I hope all this is clear.
    Thank you. Joe

    Yes, that's correct, at least not directly. You can create a blank disk image, copy the file to the mounted disk image, then burn the image to a CD/DVD.
    Open Disk Utility and select Blank Disk Image from the New menu. Provide a name, Save location, and select the image size from the drop down menu. Leave Encryptions at None and Format as read/write. Click on the Create button.
    After the image file appears the "removable" disk should be automatically mounted. If not double-click on it to mount it. A "removable" disk icon will appear. Drag the file you want to place on the disk image to the "removable" disk icon. The eject the "removable" disk icon. Now select the disk image file in the DU left side list and click on the Burn icon in the DU toolbar. Be sure to have a blank disc ready.
    The above is actually the "long" way to do this. A much easier way is to simply insert a blank CD or DVD into the optical drive. The Finder will pop up a dialog asking what to do. Select the option to mount on the Desktop. You will now see a disc icon on the Desktop. Drag the file you want to burn to the CD/DVD, right-click or CTRL-click on the disc icon and select Burn from the contextual menu.
    Why reward points?(Quoted from Discussions Terms of Use.)
    The reward system helps to increase community participation. When a community member gives you (or another member) a reward for providing helpful advice or a solution to their question, your accumulated points will increase your status level within the community.
    Members may reward you with 5 points if they deem that your reply is helpful and 10 points if you post a solution to their issue. Likewise, when you mark a reply as Helpful or Solved in your own created topic, you will be awarding the respondent with the same point values.

  • Is there a way to create a TINY image for B2G, similar to TINY_ANDROID ?

    Hi, is there a way to create a TINY image from Firefox OS similar to that of TINY ANDROID image which is used for Kernel Development. Android gives an option to create with the flag BUILD_TINY_ANDROID, just wanted to know if there is anything similar in Firefox OS.
    If there is no support from B2G, can we still create one?
    Any suggestions would be very helpful.
    Thanks

    I'm not sure that anybody here would know the answer to this. I'd suggest asking in #b2g on irc.mozilla.org. In case you don't have an IRC client, here's a web-based one: https://kiwiirc.com/client/irc.mozilla.org/#b2g . A lot of the b2g developers tend to hang out in there, and if anybody knows, they would.

  • Unable to create a 'computer image' for system recovery purposes using an external drive!

    Just finished another very frustrating long session with HP Tech Support without a resolution to a simple problem.
    This laptop is only 4 months old, but the hard drive is failing, according to constant notifications, and repeated BIOS hard drive diagnostic tests. 
    I wanted to be sure that all back-up/system restore precautions were taken.  Not much to 'back-up' because the laptop is new.  The standard 'back-up' was easily done on a 4 GB flash drive.
    I followed instructions for 'create a system image' in order to make a 'copy of the drives required to restore your computer if your hard drive or computer ever stops working' (instructions right on the page).
    I wanted to create this 'system image' on an external flash drive.  First attempt at storing a system image failed because:  'the drive is not formatted with NTSF.  The G flash drive was easily formatted to NTSF.  Repeated attempts at copying now failed because:  'the drive is not a valid back-up location'  (!?).
    I see absolutely no clear reason why a 'computer image' cannot be created on a flash drive that has been correctly formatted.
    HP Tech Support claims that the reason for this is a 'Windows incompatibility with the program' (used to create a 'system image?).
    No solution was given.  According to HP Tech Support, this is now a 'Windows software problem', which doesn't make any sense to me.
    Standard CD-R data disks (the only ones I have on hand now) are not big enough: 700 MB capacity, but a DVD-R data disk, which has 4.7 GB capacity, may not be enough (especially in the future) for the creation of a 'system image'.
    Since HP Tech Support is incapable of solving a straightforward problem like this, I am asking for some more experience tech geek to bring me up to speed on this whole issue of 'system image' creation, for the purpose of computer restoration, as I am hesitant to go ahead and remove the hard drive, if I haven't properly done everything to 'back-up' as much as I can.

    Again:  HP Tech Support cannot answer this question for me.
    I posted the above problem onto the Windows Recovery forum also.
    There are super-experienced people that view these questions.  (I meant the term 'geek' in an appreciative way:  without users solving problems, everything would grind to a halt!).
    Please, if there is anyone who can comment on this, whether the whole issue of 'system image' is redundant, whether it is necessary at all, I would be grateful for a stab at this.
    I have the sense that the answer is staring me right in the face, yet even HP Tech Support has no idea what it is.

  • Creating a disk image for software installation

    Hello all,
    I'm having a problem with my iMac not reading my family pack OSX Tiger install DVD... although it worked fine on my other three macs. Someone said that I could "create a mirror image of the DVD to my desktop on another mac and then copy that to an ipod. Then use the ipod to boot up the imac and install Tiger".
    Can anyone explain to me how to do that? IE... how to create a mirror image of the DVD so I can try the ipod fix?
    Any help would be appreciated.
    Matt

    Matt, I may have a solution for you.
    I was stumped by this and wanted to see if I could figure it out, so I was Googling around and ran into this. It is the very first post and details the process of how someone else used an iPod to install Tiger from DVD to a Mac that did not have a DVD drive.
    If this gets deleted, please email me directly at my public address on my profile and I will send you the link again.

  • I have Lightroom 5 and am trying to create some HDR Images for my Real Estate Business. I do not have the option to even be able to stack my photos. My headings are: Lightroom- File-Edit-Window-Help. Why does it not give me the option to be able to Stack?

    Can i stack JPEG images or do they have to be Raw Files? The other help videos I have seen have the shortcut CommandG to stack, mine does not respond that command nor do i have a heading labeled Photos.

    In order to stack images they must be all highlighted as a group. And the group must be contiguous, in other words next to each other. However, if you are talking about stacking images for the purposes of creating an HDR image, that cannot be done using Lightroom. You will need Photoshop or some other software with HDR capabilities in order to do that. It is possible to stack any file type or combination of file types, including  virtual copies.

  • Unable to create a disk image for mass deployment or to restore on other

    I am attempting to create a master 10.5 Leopard image that can be deployed to other Macs, but the restore process fails with the following error:
    *Restore Failure. Could not find any scan information. The source image needs to be imagedscanned/scanned for restore.*
    I setup the master as I want it. I've booted from another drive and used Disk Utility to create a new image from Folder. (If I try to create a new image from drive, I get an error that the disk is in use.) I've run the checksum. I've run the scan image for restore. All process with out any errors.
    The error mentioned above occurs when I try to restore the image to another computer.
    Has anyone else been able to make a master image for deployment without using Leopard Server?

    Hello,
    I am also getting a similar error, but not trying to create an image, but rather reading one I created before upgrading to Leopard. I was having some HD trouble (power surge during install of Quicktime 7.3) that put my HD in any unstable state (resistant to Disk Utility/Disk Warrior,) but fortunately, I'd cloned the HD w/ SuperDuper (anticipating possible trouble during the upgrade.) I then made a disk image of the BOOTCAMP partition on another drive. Now, after re-formatting the HD, installing Leopard and partitioning for Bootcamp, I am unable to scan the image before restoring the disk image to the HD. It might be a FAT32 thing, but I don't think so.
    The error is: Unable to scan "disk0s3.dmg". (Invalid argument)
    The disk utility log is:
    2007-11-08 20:33:43 +0100: Scanning image “disk0s3.dmg”
    2007-11-08 20:33:53 +0100: cannot scan read/write images.
    2007-11-08 20:33:53 +0100: Unable to scan “disk0s3.dmg”. (Invalid argument)
    2007-11-08 20:33:53 +0100:
    Any help would be appreciated. Thanks.

  • Creating customize AI image for X86 failed

    Hi
    I Have Solaris 12 build 29 OS with me.
    I have deployed a local repository for same and its working fine for upgrading/install the package.
    Now i am trying to create a new AI image for x86 system using below command .
    # distro_const build /export/home/dc_ai_x86.xml
    If in dc_ai_x86.xml file if I keep pkg_image path as http://pkg.oracle.com/solaris/release then it work fine.
    but if I change the pkg_image path to my local repo path "http://A.B.C.D  " then it failed with below error.
    root@test-4:~# distro_const build /export/home/dc_ai_x86.xml
    23:00:04    Build datasets successfully setup
    23:00:04    Simple log: /rpool/dc/ai/logs/simple-log.2013-09-23.22:59
    23:00:04    Detail Log: /rpool/dc/ai/logs/detail-log.2013-09-23.22:59
    23:00:05    Creating IPS image
    23:00:10    Installing packages from:
    23:00:10        solaris
    23:00:10            origin:  http://172.28.13.203/
    23:00:30    Error occurred during execution of 'transfer-ips-install' checkpoint.
    23:00:30    'transfer-ips-install' checkpoint failed
    23:00:30    http protocol error: code: 404 reason: Not Found
    URL: 'http://172.28.13.203/solaris/file/1/8e422c1bb80b05f08f7a849f3d7ae90a976e048e' (happened 4 times)
    23:00:30    Please check the log for additional error messages.
    Log: /rpool/dc/ai/logs/detail-log.2013-09-23.22:59
    please let me know where is the issue.

    'http://172.28.13.203/solaris/file/1/8e422c1bb80b05f08f7a849f3d7ae90a976e048e
    the above path doesn't exist at my IPS server
    svccfg -s application/pkg/server setprop pkg/inst_root=/export/solS12b29
    root@test-4:~# cd /export/solS12b29/publisher/solaris/file/
    Display all 124 possibilities? (y or n)
    00/ 03/ 06/ 09/ 0c/ 0f/ 12/ 15/ 18/ 1b/ 1e/ 21/ 24/ 27/ 2a/ 2d/ 30/ 33/ 36/ 39/ 3c/ 3f/ 42/ 45/ 48/ 4b/ 4e/ 51/ 54/ 57/ 5a/ 5d/ 60/ 63/ 66/ 69/ 6c/ 6f/ 72/ 75/ 78/ 7b/
    01/ 04/ 07/ 0a/ 0d/ 10/ 13/ 16/ 19/ 1c/ 1f/ 22/ 25/ 28/ 2b/ 2e/ 31/ 34/ 37/ 3a/ 3d/ 40/ 43/ 46/ 49/ 4c/ 4f/ 52/ 55/ 58/ 5b/ 5e/ 61/ 64/ 67/ 6a/ 6d/ 70/ 73/ 76/ 79/
    02/ 05/ 08/ 0b/ 0e/ 11/ 14/ 17/ 1a/ 1d/ 20/ 23/ 26/ 29/ 2c/ 2f/ 32/ 35/ 38/ 3b/ 3e/ 41/ 44/ 47/ 4a/ 4d/ 50/ 53/ 56/ 59/ 5c/ 5f/ 62/ 65/ 68/ 6b/ 6e/ 71/ 74/ 77/ 7a/
    root@test-4:~# cd /export/solS12b29/publisher/solaris/file/root@test-4:~# cd /export/solS12b29/publisher/solaris/file/
    I have not change any things in the IPS server,i simplly extract the full-repo.iso using below command
    mount -F hsfs /export/home/sol-12_0-29-repo-full.iso /mnt/
    cd /mnt/repo; tar cf - . | ( cd /export/solars12b29; tar xfp - )
    Moreover i  tried same procedure on another system but got the same error.
    Message was edited by: user8579149

  • Need to create a background image for Joomla

    I need to create a custom background image for a Joomla site.
    Can anyone offer a simple tutorial on the steps I need to take to create the image?
    Thanks

    Okay. The image has a gold gradient from top to bottom, but the text repeats in smaller blocks.
    First, you need a tiling image of some text, on a transparent background. Then, this image needs to be added as a pattern in Fireworks.
    Next, you get to use your new pattern. In your document, create a tall rectangle with a vertical gradient. Make this image the same width as your tiling pattern, so that your resulting background image will also tile. Over that you put a rectangle with no color fill, but fill it with the text pattern. Save this working Fireworks document, then export to use on the Web.
    I don't understand the phrase "I need to know how to size the image, possibly with CSS." Background images are the size they are. When this image is set to be the background, then it should be specified to repeat in the horizontal direction (repeat-x).
    Here's some info on making a seamless tile:
    http://forums.adobe.com/message/2384441
    Using patterns:
    http://www.entheosweb.com/fireworks/patterns.asp
    There have been some recent threads on using gradients, just flip back a page or two (unless my mind's playing tricks on me and they're older).
    Hmm... Possibly helpful:
    http://spectrum.troy.edu/~techtip/classes/tutorials/fireworks/fw2004/gradient/gradient.htm

  • Help creating a netboot image for Panther in SIU

    Hi!
    I have an old iBook G3 that has a broken CDROM drive.
    I want to install Panther on it, so I'm thinking to netboot it from my SNow Leopard server.
    I tried creating a netboot image from the original Panther CD, using the System Image Utility in SL but it seems I can only create images of Snow Leopard.
    This limitation seems strange.
    Is there a way to create a netboot image from my Panther CD and use it to beet my ibook ?
    Any information online on how to achieve this?
    Thanks
    Mike

    Thanks Antonio !
    That's a really good answer.
    I just need to add some more info:
    I downloaded the Server Admin tools from the link you gave me but it would not install on 10.6.1 Server nor on 10.5 client.
    I get the error:
    "You cannot install Server Admin Tools on this volume. You are not allowed to install the software on this disk for an unknown reason."
    Thus I extracted manually the System Image Utility from Installers/Packages/ServerAdminTools.pkg/Contents/Archive.pax.gz
    The application runs fine on Leopard client and SL server.
    I just need to figure out now how to boot my iBook.

  • Creating thumbnails of image when u know only path

    Hi,
    is there some way to create thumbnails or icon of varying size images,path of which are stored in a database ?
    If any one lnow so html way of doing that.Plz let me know

    If you have stored the path of the image in the database you can read the image file to get the data of the image.
    just use
    ImageIcon icon = new ImageIcon("Path as a String");
    Image i = icon.getImage();but if the path is a URL follow this
    URL u = new URL("Path as a valid url string");
    ImageIcon icon = new ImageIcon(u);
    Image i = icon.getImage();
    Note:-[b]
    ImageIcon is in package javax.swing
    Image is in package java.awt

Maybe you are looking for

  • Cannot open an idml file created in CS5.5 in either CS5 or CS5.5

    I have exported a CS5.5 file to idml but I cannot get it to open in either CS5 or CS5.5. Below is a screenshot of the error I get in both versions. I have tried getting rid of all 3rd party plugins and resetting preferences to ID defaults in both CS

  • How to display all the columns in the printpreview

    hi experts, I have developed an alv report using grid display. there are nearly 10 fields in the output with varrious of length. They get displayed correctly in grid format. But, when on the output screen, I click on List menu and goto "Print Preview

  • ARD Admin with Standard Account

    I log in with a Standard Account on my MacBook Pro under Mac OS X 10.6.8, open Apple Remote Desktop Administrator. I have access to most of the commands in the menu bar except those under Reports (All) and Manage (Copy Items, Install Packages, Send U

  • How to install previously purchased iWork into a new computer?

    I have purchased iWork couple months ago. Installed that to my mac book and everything was working well. Now I got a new mac book pro and I did transfer all other files than applications via migration assistant to this new laptop. What I immediately

  • # seems permitted but not in all_capital

    Hi guys, i was wondering that # seems to be an unpermitted character not present in all_capital but the system seems to accept it. Any help will be rightly appreciated. Thanks