Saving a jpeg image 10 times a second

I can't understand why this VI is not saving an image ten a second, the VI is located on my desktop and I was expecting lots of jpegs to appear there!
What determines what the jpeg is called?
I am using labVIEW 8.5
Attachments:
save10asecond.vi ‏9 KB

bluefocs wrote:
Don't worry I have it working now, I can't understand why the vi i posted doesn't work.
Have you ever wondered what would happen if you would replace the "=TRUE" with a plain wire?
(see also)
Message Edited by altenbach on 02-10-2009 06:25 AM
LabVIEW Champion . Do more with less code and in less time .
Attachments:
WEQ#1.png ‏5 KB

Similar Messages

  • Unable to open saved edited jpeg image

    Not being the most techie type person, sorry if this is repeated in numerous place on the forum. I can see, and open, the images in thumbnail form in my 'Picture - Library'. I can then edit them in PE 10, but when I 'save as' (and I save as jpeg image with a version of IMG_****.jpeg copy ) the 'copy' jpeg thumbnail appears in the library as a blank page and no image. I'm then unable to open the 'saved' copy as it's the 'wrong type'. I've tried numerous images but to no avail. Any advice will be greatly appreciated.

    Change IMG_****.jpeg copy to IMG_****copy.jpeg

  • How to automate saving the same image multiple times?

    Hello. I wish to save the same image multiple times in a folder... is there a way to automate this function? I also need the flexibility of determining the starting number in this image sequence. Thanks.

    Good day!
    I would recommend asking for help over at
    Photoshop Scripting
    And going into more detail about what you want to achieve (maybe post a screenshot, diagram, mock-up to illustrate it).
    Regards,
    Pfaffenbichler

  • Having saved some jpeg images in Safari, how can I view them?

    I have browsed the forum, and have seen answers relating to file storage on iPad, but none of the answers helps me viewing some images (jpeg) I have downloaded using Safari.
    How can I view the downloaded images

    Have you tried a different site - it's possible that the site is blocking that option directly on the image. When I press and hold an image then on one site I get :
    On another site I get more options :

  • After saving as jpeg images sometimes look different in other programs or online.

    Any ideas how to get more consistent results would be appreciated.

    If every application and system were properly color-managed it would be possible to get consistent color everywhere.
    As it is, that's simply not the case.
    Many folks feel that publishing an image in the sRGB IEC61966-2.1 profile is the best approach.  There is debate about whether to publish a profile in the image to identify to systems/browsers that have proper color-management that it is using that profile - my opinion is that you should do so.
    If you have a wide-gamut monitor that doesn't closely emulate the sRGB profile, and assuming you have it calibrated and profiled, you will see different things when you display an sRGB image using a fully color-managed application (e.g., Photoshop), a partially color-managed application (e.g., Internet Explorer), or a non-color-managed applications (e.g., an older viewer application).  That is to be expected.
    The various browsers implement different levels of color-management.  I mentioned that IE only does half the job - it interprets image color profiles, but it assumes every monitor is sRGB regardless of its profile.  Firefox can do a full job of color-management, even including non-image web page element color-management, but it takes reconfiguration to do so.  Safari only does image color-management, not web page elements.  Last I looked Chrome ignored color-management entirely.
    Create your image in the sRGB color-space, trust what you see on your calibrated and profiled system when the image is displayed in Photoshop - i.e., make the colors look right there - and make your own choice about whether to publish with the sRGB profile embedded.  That's about the best you can do.
    -Noel

  • Getting Image for every 2 second using AVI stream

    Hello,
    Could I save image for every 1 or 2 second from AVI stream (not file). It is because I have a piece of software which could capture image on live and could save the image as AVI format. However, I need the file format as JPEG format for every 1 or 2 second.Am I do it like this?
    Thanks
    fkli

    Why don't you get a simple jpeg obtained by ftp from your program? For example I've downloaded a ftp server named webcam32 (http://www.surveyorcorp.com/webcam32) that replaces a jpeg image by ftp every second. After that, it was rather easy to write an applet that displays the updated image. Most probably your program can do that for you.
    Hope yu'll find this useful.

  • TS3276 Having trouble sending jpeg images as attachments in Mac email.....they go thru as images and PC users can't see the SAVE or QUICK LOOK boxes that Mac mail has.  One friend scrolled over the image, right clicked on it and saved as a PNG file.

    Having trouble sending jpeg images as attachments in Mac email.....they go thru as images and PC users can't see the SAVE or QUICK LOOK boxes that Mac mail has.  One friend scrolled over the image, right clicked on it and saved as a PNG file.

    Apple Mail isn't going to change the format of any of your attachments. it isn't going to corrupt them either.
    Exchange is a transport protocol and server. The issue you describe is not related to Exchange.
    There are many different versions of Microsoft Outlook in use and they all have e-mail bugs. Different versions have different bugs. Some Apple Mail hack to get around a bug in Outlook 2003 may cause the same message to be problematic in Outlook 2000. Fix them both and another issue will cause trouble in Outlook 2007. You can't fix this. Apple can't fix this. Microsoft can and has but that is irrelevant if your recipients are using older versions.
    One specific problem is that Apple Mail always sends image attachments inline, as images, not as iconized files. You can change this with Attachment Tamer. Just be aware that use of this software will break other things such as Stationery. E-mail is just a disaster. To date, no one outside of Apple has ever implemented the e-mail standards from 1993. Apple has continually changed its e-mail software to be more compatible with the de-facto standards that Netscape and Microsoft have unilaterally defined and people documented as "standards" after the fact. The e-mail messages that Apple Mail sends are 100% correct and do not violate any of the original standards from 1993 or the Microsoft/Netscape modifications. The problem is entirely bugs and limitations in various versions of Outlook.

  • Pictures are being saved as firefox document i need them as jpeg image

    since installing firefox, i click on a picture which is jpeg image and the save turns it into firefox document. it took a while to get it to save but i can not find where to change this item. i don't know why it changes they come in in the right format. and my business is pictures so i'm starting to freak, a little, alright a lot. thanks mark

    When you you right-click to save the picture, type the name of the picture and add .jpeg after the name. e.g. '''mypicture.jpeg''' . It seems that pictures from certain sources (like an iphone sometimes) are causing this problem. Any pictures that you have already saved as firefox documents can be fixed by right-clicking and selecting '''rename''' and adding '''.jpeg''' to the name. This works for all windows operating systems.
    (if you have enabled viewing of file extensions in your folder options you will need to delete '''.htm''' from the name before adding '''.jpeg''')

  • Iphoto not accepting jpeg images saved using Preview "save as"

    I have a number of tiff images on my desktop. Am trying to save them as jpeg images directly into iPhoto using the Preview "save as" function. When I do this, I can find no image in iPhoto. When I "save as" jpeg to my desktop, the jpeg image appears there and I can drag to iPhoto, but this is laborious compared with saving directly. Can anyone help me with this?

    TD, thanks for commenting on this, and I think I see your point--I used the wrong term when I wrote "import". However, in Preview there is what I see to be a "save as jpeg to iPhoto" option. Why is this available if it does not work? Or to take it from another angle--what can you do with this option? In the end, I guess my basic question is: Is there a more direct way to get tiff images into iPhoto from the desktop than saving them first to the desktop as jpeg? Apologies for piling question on question.

  • Unable to open saved JPEG images

    I opened and modified several JPEG images with Photoshop CS2. Now none of these files can be opened by Photoshop or any other program. All of the files seem to have a non-zero size, but when I try to open them in Photoshop, it does not generate an error, it merely offers to create a new file with the same image properties (size, etc) as the saved image on disk.
    I've also tried several other programs to open these files, and none of them can open them. FYI, one thing that all of the files have in common is that they are all saved with the absolute minimum compression settings.
    Any assistance in helping me to recover these files would be greatly appreciated.
    Thanks.

    You can email me one of the Pics (zip it first) but it sounds like they are toast.

  • JPEG images burned to DVD are viewed fine on my Macbook Pro, but my clients PC says the disk is blank.  Have tried several times now with same result.  Please help.

    The JPEG images I have edited on my Macbook Pro and then burned to DVD view fine on my computer.  But when I give the same disk to my client with a PC (Windows Vista), his computer says the disk is blank.  I have tried several times, first I burned the entire folder to the DVD, then tried burning just the images (not in a folder), and I also tried renaming the disk (shorter name, six letters), but always with the same result.  His PC says the disk is blank and needs to be formated.
    Please help,
    Tim

    timothyfromlakewood wrote:
    I used "finder" to select the files and move them to the mounted blank DVD then selected "Burn to DVD" it then asks you to name it, and says "this disk can be used on any mac or windows based computer" or something to that effect, and I click "Burn" and it burns and verifies the contents.  But it hasn't worked so far.
    I will try again the way you suggest (fingers crossed).
    The problem is likely on the client's computer.
    Some computers can't read certain brands of disks, same thing occurs on Mac's.
    If you work with this client often you can find out which brand of disk works best with yours and their computers.
    DropBox is a online service

  • Working with RAW and JPEG Images in Aperture (2 part question)

    I just edited a RAW file and stamped the adjustments into the JPEG file. Then applied some RAW fine tuning to the RAW image. For the life of me I cannot tell the difference between the two images and I will not blow up beyond 8 x 10. So is shooting RAW a waste?
    Secondly do JPEG degrade every time you open and close them or only if you open them, edit them and then close?
    Thanks

    Working on JPGs in Aperture does not degrade JPGs at all because the original JPGs are not ever re-saved, and therefore are not ever re-compressed.
    As for shooting RAW vs. JPG - I usually shoot both at the same time using RAW+JPG, I have never ever been in a position where I shot RAW and wished I had shot JPG. I have been in positions where I shot JPG that I wish I had shot RAW.
    [Why shoot RAW|http://photo.rwboyer.com/2009/01/why-shoot-raw>
    RB

  • Bridge CC / How to use all cores to generate JPEG images?

    Hi!
    Is there anyway to tell Bridge, that it should use all my cores to generate the JPEG images out of RAWs?
    Actually it uses less then 25% of my CPU performance. I've a Intel Core i7-2600 CPU @ 3,4 GHZ, with four cores and enabled hyperthreading, also eight virtual CPUs.
    At least it could be FOUR times faster, if it would use all available cores, but so I get one preview per second (12 MP RAWs). So I've to wait in case of 100 RAWs round 3:30 minutes. If would use all CPUs, which are available, it could increase speed less then 1 minutes.
    In my case, I've to create often up too 500 JPEGs in one go. So instead of 17-18 minutes it would take less then 5 minues. 12 minutes less!
    I just wonder, why I bought a good PC, if Adobe is not using the power of the CPUs and tries to work parellel instead of seriel.
    As there any chance, or does Adobe have no interest, like it has no interest to speed up LightRoom?
    If there is any chance, I would be very pleased.
    Thanks

    Sorry, I could not know, that issue is caused by the same flaw in the software:
    http://feedback.photoshop.com/photoshop_family/topics/bridge_cc_how_to_use_all_cores_to_ge nerate_preview_images
    http://forums.adobe.com/thread/1316239

  • Same image multiple times in one document

    Hi there,
    I'm a software developer, and currently the system I'm working on produces postscript documents for invoices/orders etc. and I'm looking for a way to reduce the size of the postscript file.  One simply way would be to re-use the same image (company logo, for example), rather than specifying it again for every page.
    The images are produced using the linux tool ps2pdf - the output is then chopped up so it literally only has the image producing code, and then dumped as-is into the document where the image is required.  What I'd like to do is put this postscript image into a procedure, then call it with the height, width, x and y position whenever I need it.  Doing this will drastically reduce down the PS file from MB sizes to KB sizes.
    This is an example of how the documents are currently produced: Postscript multiple images - Pastebin.com
    This is an example of what I thought would work, with the image inside a procedure: Postscript multiple images - with procedure - Pastebin.com
    (These aren't actually real documents, just an example of how it works!)
    Can anyone help me to get the second example working?  Essentially, I copied the image producing code into a procedure, and then I'm trying to call it.  No matter what I try, it doesn't want to play - the error I'm getting in Ghostscript is "/syntaxerror in --%ztokenexec_continue--".  What I can find on the web about this error doesn't help - I'm not particularly experienced with postscript, so please be nice!
    Thanks in advance!
    John

    And for why it doesn't work... typical image definitions look like this
    parameters including "currentfile" image
    lines of image data
    What happens when this is executed is that the interpreter puts the parameters on the stack, then calls image. Image reads from its source, currentfile, which is exactly the same source used to execute operands and operators. When image has finished, it stops reading currentfile and the interpreter will resume.
    Now, when a procedure is defined the input is tokenised, put in an array, and this is saved for later use.
    When a procedure is executed, the operands and operators in the array are repeated almost as if they were found in the input. But this is false security, because it breaks down with inline data. If you put the lines above in a procedure, then EACH TIME the procedure is executed it will read from currentfile - and the current position is probably the call to the procedure. In fact, you can define a procedure like the above but leave out the lines of inline data. Include the lines of inline data after each call and it will read the image each time, but this does not help with your aim.
    This was very tricky to solve before ReusableStreamDecode, which allows you to turn any section of your input into a file to be used over and over - it becomes currentfile. This was invented for level 3 PostScript.

  • Problem displaying CMYK jpeg images

    I have a problem with a CMYK jpeg image.
    I know that about supported JPEGs in JRE - JCS_CMYK and JCS_YCCK are not supported directly.
    And I found here how to load the image:
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4799903
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5100094
    I used both the suggestions described to load it, but when the image is displayed the colors are wrong, are very different from the one displayed in PhotoShop, for example.
    Any suggestion are very appreciated. If it's necessary i can send you the image.
    Roberto
    Here is the code
    package com.cesarer.example.crop;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.*;
    import java.io.*;
    import java.util.Iterator;
    import javax.imageio.ImageIO;
    import javax.imageio.ImageReader;
    import javax.imageio.stream.ImageInputStream;
    import javax.swing.*;
    import javax.swing.event.MouseInputAdapter;
    public class CroppingRaster extends JPanel
        BufferedImage image;
        Dimension size;
        Rectangle clip;
        boolean showClip;
        public CroppingRaster(BufferedImage image)
            this.image = image;
            size = new Dimension(image.getWidth(), image.getHeight());
            showClip = false;
        protected void paintComponent(Graphics g)
            super.paintComponent(g);
            Graphics2D g2 = (Graphics2D)g;
            g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                                RenderingHints.VALUE_ANTIALIAS_ON);
            int x = (getWidth() - size.width)/2;
            int y = (getHeight() - size.height)/2;
            g2.drawImage(image, x, y, this);
            if(showClip)
                if(clip == null)
                    createClip();
                g2.setPaint(Color.red);
                g2.draw(clip);
        public void setClip(int x, int y)
            // keep clip within raster
            int x0 = (getWidth() - size.width)/2;
            int y0 = (getHeight() - size.height)/2;
            if(x < x0 || x + clip.width  > x0 + size.width ||
               y < y0 || y + clip.height > y0 + size.height)
                return;
            clip.setLocation(x, y);
            repaint();
        public Dimension getPreferredSize()
            return size;
        private void createClip()
            clip = new Rectangle(140, 140);
            clip.x = (getWidth() - clip.width)/2;
            clip.y = (getHeight() - clip.height)/2;
        private void clipImage()
            BufferedImage clipped = null;
            try
                int w = clip.width;
                int h = clip.height;
                int x0 = (getWidth()  - size.width)/2;
                int y0 = (getHeight() - size.height)/2;
                int x = clip.x - x0;
                int y = clip.y - y0;
                clipped = image.getSubimage(x, y, w, h);
            catch(RasterFormatException rfe)
                System.out.println("raster format error: " + rfe.getMessage());
                return;
            JLabel label = new JLabel(new ImageIcon(clipped));
            JOptionPane.showMessageDialog(this, label, "clipped image",
                                          JOptionPane.PLAIN_MESSAGE);
        private JPanel getUIPanel()
            final JCheckBox clipBox = new JCheckBox("show clip", showClip);
            clipBox.addActionListener(new ActionListener()
                public void actionPerformed(ActionEvent e)
                    showClip = clipBox.isSelected();
                    repaint();
            JButton clip = new JButton("clip image");
            clip.addActionListener(new ActionListener()
                public void actionPerformed(ActionEvent e)
                    clipImage();
            JPanel panel = new JPanel();
            panel.add(clipBox);
            panel.add(clip);
            return panel;
        public static void main(String[] args) throws IOException
             File file = new File("src/ABWRACK_4C.jpg");
             // Find a JPEG reader which supports reading Rasters.
            Iterator readers = ImageIO.getImageReadersByFormatName("JPEG");
            ImageReader reader = null;
            while(readers.hasNext()) {
                reader = (ImageReader)readers.next();
                if(reader.canReadRaster()) {
                    break;
         // Set the input.
            ImageInputStream input =
                ImageIO.createImageInputStream(file);
            reader.setInput(input);
            Raster raster = reader.readRaster(0, null);
             BufferedImage bi = new BufferedImage(raster.getWidth(),
                    raster.getHeight(),
                    BufferedImage.TYPE_4BYTE_ABGR);
             // Set the image data.
             bi.getRaster().setRect(raster);
            // Cropping test = new Cropping(ImageIO.read(file));
             CroppingRaster test = new CroppingRaster(bi);
            ClipMoverRaster mover = new ClipMoverRaster(test);
            test.addMouseListener(mover);
            test.addMouseMotionListener(mover);
            JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(new JScrollPane(test));
            f.getContentPane().add(test.getUIPanel(), "South");
            f.setSize(400,400);
            f.setLocation(200,200);
            f.setVisible(true);
    class ClipMoverRaster extends MouseInputAdapter
        CroppingRaster cropping;
        Point offset;
        boolean dragging;
        public ClipMoverRaster(CroppingRaster c)
            cropping = c;
            offset = new Point();
            dragging = false;
        public void mousePressed(MouseEvent e)
            Point p = e.getPoint();
            if(cropping.clip.contains(p))
                offset.x = p.x - cropping.clip.x;
                offset.y = p.y - cropping.clip.y;
                dragging = true;
        public void mouseReleased(MouseEvent e)
            dragging = false;
        public void mouseDragged(MouseEvent e)
            if(dragging)
                int x = e.getX() - offset.x;
                int y = e.getY() - offset.y;
                cropping.setClip(x, y);
    }

    The loading process It takes about 10 seconds, and every repaint it takes the same time.The painting yes, the loading no. It shouldn't take much more time to load the image then an ordinary JPEG. In particular, your now using a "natively accelerated" JPEG image reader, so it should take less time on average to load any JPEG. 10 seconds is absurd. Are you sure your not including the drawing time in that figure?
    - Another problem: JAI-ImageIO is not available for MAC OS X platform.This is somewhat true. You can take the imageio.jar file and package it together with your program (adding it to the class path). This will give you most of the functionality of JAI-ImageIO; in particular the TIFFImageReader. You just won't be able to use the two natively accelerated ImageReaders that comes with installing.
    Right now, you're using the accelerated CLibJPEGImageReader to read the image. You can't use this image reader on the MAC, so you have to take the approach mentioned in the 2nd bug report you originally posted (i.e. use an arbitrary CMYK profile).
    The conversion is too long more than 30 seconds.The code you posted could be simplified to
    BufferedImage rgbImage = new BufferedImage(w,h,
                BufferedImage.3_BYTE_BGR);
    ColorConvertOp op = new ColorConvertOp(null);
    op.filter(cmykImage,rgbImage);But again, 30 seconds is an absurd value. After a little preparation, converting from one ICC_Profile to another is essentially a look up operation. What does,
    System.out.println(cmykImage.getColorModel().getColorSpace());print out? If it's not an instance of ICC_ColorSpace, then I can understand the 30 seconds. If it is, then something is dreadfully wrong.
    the RGB bufferedImage that i get after the transformation when it is displayed is much more brightThis is the "one last problem that pops up" that I hinted at. It's because some gamma correction is going on in the background. I have a solution, but it's programming to the implementation of the ColorConvertOp class and not the API. So I'm not sure about its portability between java versions or OS's.
    import javax.swing.*;
    import java.awt.color.ICC_ColorSpace;
    import java.awt.color.ICC_Profile;
    import java.awt.image.BufferedImage;
    import java.awt.image.ColorConvertOp;
    import javax.imageio.ImageIO;
    import java.io.File;
    public class CMYKTest {
         public static void main(String[] args) throws Exception{
            long beginStamp, endStamp;
            //load image
            beginStamp = System.currentTimeMillis();
            BufferedImage img = ImageIO.read(/*cmyk image file*/);
            endStamp = System.currentTimeMillis();
            System.out.println("Time to load image: " + (endStamp-beginStamp));
            //color convert
            BufferedImage dest = new BufferedImage(img.getWidth(),
                                                   img.getHeight(),
                                                   BufferedImage.TYPE_3BYTE_BGR);
            beginStamp = System.currentTimeMillis();
            sophisticatedColorConvert(img,dest);
            endStamp = System.currentTimeMillis();
            System.out.println("Time to color convert: " + (endStamp-beginStamp));
            //display
            JFrame frame = new JFrame();
            frame.setContentPane(new JScrollPane(new JLabel(new ImageIcon(dest))));
            frame.setSize(500,500);
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setVisible(true);
        public static BufferedImage sophisticatedColorConvert(BufferedImage src,
                                                              BufferedImage dst) {
            ICC_ColorSpace srcCS =
                    (ICC_ColorSpace) src.getColorModel().getColorSpace();
            ICC_Profile srcProf = srcCS.getProfile();
            byte[] header = srcProf.getData(ICC_Profile.icSigHead);
            intToBigEndian(ICC_Profile.icSigInputClass,header,12);
            srcProf.setData(ICC_Profile.icSigHead,header);
            ColorConvertOp op = new ColorConvertOp(null);
            return op.filter(src, dst);
        private static void intToBigEndian(int value, byte[] array, int index) {
                array[index]   = (byte) (value >> 24);
                array[index+1] = (byte) (value >> 16);
                array[index+2] = (byte) (value >>  8);
                array[index+3] = (byte) (value);
    }

Maybe you are looking for