Problem in saving image to jpg

Hello.
I've got a problem in saving a LabView Picture in a jpg File.
The picture id grabbed from a DirectX Livestream from a camera.
Then I want to save it in a jpg file using the Standard LabView Functions.
But all I get is an empty jpg File and an error:
Check_Data_size.vi
Error 1
I'm using LabView 7.1.
Has anybody got an idea how to solve the problem?

No.  You can save a gray image to jpg, but I has to be 24 bit.
Try save your data to bmp.  If you got the same problem, that means you fail to wire correct data format to the LabVIEW VI you're using.
George Zou
http://gtoolbox.yeah.net
George Zou
http://webspace.webring.com/people/og/gtoolbox

Similar Messages

  • Saving images as JPG from Bridge

    I am shooting images in colour sRGB and RAW which come in as .CR2 files.  I work with them in Adobe Bridge (CS5) and then save them as JPGs from bridge.  The final JPG images are colour mode is RGB and the colour Profile Adobe RGB (1998).  This is causing me problems when I print at the images come out flat.  I have been advised that I need the images to be sRGB for print.  How do I achieve this with Bridge?  It has been suggested that I use the Canon software Digital Photo Professional!!  Do I have to?
    HELP please.

    The final JPG images are colour mode is RGB and the colour Profile Adobe
    RGB (1998).  This is causing me problems when I print at the images
    come out flat.
    That sounds more like a color management printing issue.
    So you browse the RAW files from Bridge and use Adobe Camera Raw to process and open the file? Yes, there is a setting in ACR to open the image as sRGB. (But, you will probably get better results by learning how to properly print an Adobe RGB file.)

  • Problem in Saving Image Code

    Hi, I'm been dealing with this code that should be saving an image as a JPEG format.
    public static void saveAsJPEG(RenderedImage image, String file)
    throws java.io.IOException {
    String filename = file;
    if(!filename.endsWith(".jpg"))
    filename = new String(file+".jpg");
    OutputStream out = new FileOutputStream(filename);
    JPEGEncodeParam param = new JPEGEncodeParam();
    ImageEncoder encoder = ImageCodec.createImageEncoder("JPEG", out, param);
    encoder.encode(image); out.close(); }
    However, when I compile the code, there's an error come out : com.sun.image.codec.jpeg.JPEGEncodeParam is abstract; cannot be instantiated
    I really can't figure out the meaning of this exception. So, would somebody kindly tell me what is wrong with the code?
    And another question is : What package is the ImageCodec located? Thanks a lot :)

    try this out and let me know;
    public static void saveAsJPEG(BufferedImage image, String file)
    throws java.io.IOException {
    String filename = file;
    if(!filename.endsWith(".jpg")) filename = new String(file+".jpg");
    OutputStream out = new FileOutputStream(filename);
    JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out); // Create JPEG encoder
    JPEGEncodeParam jpegParams = encoder.getDefaultJPEGEncodeParam(image);
    jpegParams.setQuality(1.0f, false); // Set quality to 100% for JPEG
    encoder.setJPEGEncodeParam(jpegParams);
    encoder.encode(image); // Encode image to JPEG and send to browser
    //JPEGEncodeParam jpegPparams = new JPEGEncodeParam();
    //ImageEncoder encoder = ImageCodec.createImageEncoder("JPEG", out, jpegParams);
    //encoder.encode(image);
    out.close(); }

  • [SOLVED] python problem convert YUV422 images to jpgs

    I hope this is not off topic - but I'm trying this running arch linux, so it is somewhat arch related...
    I have some YUV422 images and want to convert them to jpgs. I've found this pyhthon script which should do the job.
    https://bitbucket.org/hudson/magic-lant … 422-jpg.py
    But I guess i am doing something wrong.
    It starts with: I don't know with which python command I can run the script.
    $ python 422-jpg.py .
    File "422-jpg.py", line 54
    print "Wrong number of subpictures (%d)" % numpics
    ^
    SyntaxError: invalid syntax
    $ python2 422-jpg.py .
    Traceback (most recent call last):
    File "422-jpg.py", line 10, in <module>
    import numpy
    ImportError: No module named numpy
    $ python3 422-jpg.py .
    File "422-jpg.py", line 54
    print "Wrong number of subpictures (%d)" % numpics
    ^
    SyntaxError: invalid syntax
    most promising seemes to me the python2 command. But I don't understand the numpy problem. I know the script uses pythons image libraries but actually I installed them:
    pacman -Suy python-numpy
    pacman -Suy python2-imaging
    or does the script just not find the libs?
    I'm a bit stuck here for I don't know python very well.
    Thanks in advance
    (BTW I need this because I extended my cameras firmware with magiclantern to create time lapse movies, but disabling the mirror mechnism automatically leads to *442 images instead of jpgs - sigh)
    Last edited by keen90 (2013-05-29 16:57:36)

    Hi
    I think it's simply missing numpy for python2.
    It's: extra/python2-numpy
    Greez
    Edit: Alternatively imagemagick could probably do the job.
    Last edited by rebootl (2013-05-28 18:09:26)

  • Problems hightlighting/saving images from pdf

    Hi, when I try to save a highlighted part of an image in my pdf, an error occurs: "An interal error occured." Also, when I try to save an image, it just saves them blank...
    I don't know if anyone has had the same experience(s), or perhaps even a link to someone with the same problem.
    Thanks,
    killdemall

    killdemall wrote:
    Hi, when I try to save a highlighted part of an image in my pdf, an error occurs: "An interal error occured." Also, when I try to save an image, it just saves them blank...
    More details would help. Not sure what you mean by "save a highlighted part of an image".
    What is it that you are doing, what steps are you taking to get where you are at and what tools are you using to get there?

  • Some problems creating/saving images

    What I want to do is create an image from multiple sources (a composite of 3-4 .jpg files) and save it to a file. I wanted to start off simple. I tried to create a bufferedimage, load a single .jpg file into it, and then save it. All I get is a black .jpg in the end. Any ideas?
    public class buffTest {
         public static void main(String args[]){
              Image myImage;
              BufferedImage buffImage = new BufferedImage(100, 100, BufferedImage.TYPE_INT_RGB);
              Toolkit toolkit = Toolkit.getDefaultToolkit();
              myImage = toolkit.getImage("1.jpg");
              Graphics2D g = buffImage.createGraphics();
              g.drawImage(myImage, 0, 0, null);
              RenderedImage rendImage = buffImage;
              try {
                      File file = new File("newimage.jpg");
                      ImageIO.write(rendImage, "jpg", file);
              catch (IOException e) {}
    }

    Try reading the image using ImageIO.read(...) instead of toolkit.getImage(...)
    db

  • Problem in Saving Images in Single Folder in Nokia...

    I want to know how to transfer images keeping it in folder. I connect my E63 with USB.I copied my "Photos" folder from my laptop,then opened "File Manager" in Nokia PC suit. There I get 2 options. 1)Memory Card 2) Phone Memory.I select memory card, In that I opened Images Folder which is default in Memory card. I paste My "Photo" folder here in "Images" folder in Memory Card.After disconnecting my phone from USB cable when in my E63 I open Media->Gallery->Images I can see all my images of that folder differently and not in a single folder "Photos" which i pasted.So what should I do?I want all images in folder as I copied and pasted. Am I suppose to create new folder manualy in Phone's Media Gallary?But in phone when I go to Office->File Manager and browse through Images folder of Memory card, I find all images in same folder "Photos" which i pasted(copied), but in Gallary->Images i find all images seperately and not in folder. What should I do? Please help me.
    Solved!
    Go to Solution.

    Hey bro thanks for reply..My main purpose for asking this question was related to xplore only. I tried xplore on my E63. When we hide folder by xplore, we browse through file manager.I mean xplore shows Folders that are in File Manager.After Hiding folder, when I go to Gallery->Images, all the images in folder which I have made hiden, are visible,but...but....all the images are converted in one images. Let me explain, Suppose my folder contains 15 images named IM1,IM2,IM3....IM15. ok. After hiding folder in gallery when i See, there are total 15 images but all are IM1.Again when I unhide folder, its normal. I also tried ticking system option along with hide option in Attributes of xplore as someone suggested me to do so.But didn't worked. My main purpose for asking to move all images into single folder was this only.I didn,t knew you too would be using xplore or else i would have directly asked you this question only.
    Thanks.
    Message Edited by ved123 on 06-Aug-2009 11:52 AM

  • Saving image as JPG

    Hi all, after editing my photo in Photoshop I save as JPG but later when I open it, it automatically opens Photoshop everytime which I don't want to do.  What am I doing wrong?
    Thanks so much for your advice.
    Louise

    OK.  Click on the link I provided, and read the page that it takes you too.
    It will give you guidelines as to what basic information you need to provide whenever you post.  That will help you a great deal in the future.
    You can achieve what you want by following the instructions I gave you earlier:
    Locate the icon of one of the JPEGs you have edited in Photoshop.  Highlight that icon by clicking on it only once.  Then press the Command and I keys at the same time (Command+I, that's called doing a Get Info).  A dialog box will appear.  You'll need to set Apple's Preview as your preferred application there, then click on a button that says "Change All".  That wil close the dialog box, and henceforth all your JPEGs will open in (the abominable) Apple Preview application.
    The funny part is that many of us try to avoid it like the plague.  But if that's what suits you…

  • Problem in saving the image into SQL database..

    Hello,
    In my application I have to save image file (say jpg) into the database and retrieve back and display it on the applet. I am through with grabbing the pixels of the image & sending the pixel array to the servlet but I am struck in how to store the image into the database and retrieve the same.
    Can anybody please help me in this regard... its really urgent...
    Thanks in advance
    Swarna

    Hello.
    I've been researching this problem (saving images in a MySQL database) in order to accomplish a task I was assigned to. Finally I was able to do it. I'd be glad if it will be of any use.
    First of all: the original question was related to an applet. So, the post from rkippen should be read. It says almost everything, leaving the code job for us. Since I managed to write some code, I'll put it here, but I'm not dealing with the byte transferring issue.
    To obtain a byte array from a file I'd open the file with FileInputStream and use a loop to read bytes from it and save them into a ByteArrayOutputStream object. The ByteArrayOutputStream class has a method named �toByteArray()� which returns an array of bytes (byte [] b = baos.toByteArray()) that can be transferred in a socket connection, as said by rkippen.
    My problem was to save an image captured by a web camera. I had an Image object, which I converted into a byte array and saved into the database. Eventually I had to read the image and show it to the user.
    The table in the MySQL database could be:
    CREATE TABLE  test (
      id int(11) NOT NULL auto_increment,
      img blob NOT NULL,
      PRIMARY KEY  (id)
    )I had problems trying to use the �setBlob� and �getBlob� methods in the Statement object, so I used the �setBytes� and �getBytes� methods . In the end, I liked these methods most because they where more suitable to my application.
    The database operations are:
        public int insertImage(Image image) throws SQLException {
            int id = -1;
            String sql = "insert into test (img) values (?)\n";
            PreparedStatement ps = this.getStatement(sql);  // this method is trivial
            byte [] bytes = this.getBytes(imagem); // * see below
            ps.setBytes(1, bytes);
            ps.executeUpdate();
            id = ps.getGeneratedKeys().getInt(0); //Actually I couldn't make this line work yet.
            return id;
        public Image selectImage(int id) throws SQLException {
            Image img = null;
            String sql = "select img from test where id = ?\n";
            PreparedStatement ps = getStatement(sql);
            ps.setInt(1, id);
            ResultSet rs = ps.executeQuery();
            if (rs.next()) {
                byte [] bytes = rs.getBytes(1);
                img = this.getImage(bytes); // * see below
            return img;
        }* If the bytes are read directly from a file, I think it is not necessary to convert it into an Image. Just send the bytes to the database method would work. On the other hand, if the image read form the DB will be written directly into files, the bytes obtained from rs.getBytes(1) would be enough.
    The image operations are:
        public byte [] getBytes(Image image) {
            ByteArrayOutputStream baos = new ByteArrayOutputStream();
            try {
                ImageIO.write(this.getBufferedImage(image), "JPEG", baos);
            } catch (IOException ex) {
                throw new RuntimeException(ex);
            return baos.toByteArray();
        public Image getImage(byte [] bytes)  {
            Image image = null;
            ByteArrayInputStream bais = new ByteArrayInputStream(bytes);
            try {
                image = ImageIO.read(bais);
            } catch (IOException ex) {
                throw new RuntimeException(ex);
            return image;
        public BufferedImage getBufferedImage(Image image) {
            int width = image.getWidth(null);
            int height = image.getHeight(null);
            BufferedImage bi = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);
            Graphics2D g2d = bi.createGraphics();
            g2d.drawImage(image, 0, 0, null);
            return bi;
        }That's it. I hope it is useful.

  • Why do the file extensions (.jpg .gif .png) no longer appear when I click on a previously saved image to use that image's file name (particularly important when saving a series of images using the same root name)?

    I save a lot of images using firefox, often times from a large batch or series of images. It used to be that I would click on a previously saved image and the entire file name including the file extension (i.e. image_example.jpg) would appear in the "save as" line. Now when I click on a previously saved file, the file name appears without the file extension (i.e. image_example). Which means I have to manually type .jpg every time. For a large collection of images that I am hoping to use the same root file name and then add chronological numbers at the end, this has become incredibly frustrating, especially as it is a previously unnecessary task.
    I am using a new Macbook Pro and maybe there's something Apple related to this...? It did not happen on my old PowerBook G4. I have file extensions turned on in System Preferences.
    It should be noted that I have searched high and low and have even gone into the Apple Genius Bar where they were just confused as I was and of course ended by urging me to use Safari (shocker!) as it has all kinds of new extensions and bells and whistles. I seriously feel alone on an island with this dumb, hard to google problem. Thanks so much for any help anyone out there might have.
    I mean: is this as simple as changing a setting in about:config?
    Your assistance is greatly appreciated.

    Thanks for your response Mylenium, however like I mentioned multiple times, I did change all of my trackpad/scrolling settings in system preferences.  And if I wanted to use a normal mouse (or a tablet), I would've gotten an iMac instead of a MacBook Pro.  I travel often and work all over the place, not always with access to a decently sized workspace that would be required for using a mouse or tablet.

  • I have problems with uploading images to my printing company have the images have been manipulated through CS6 i have saved images as jpeg but the printer company tell me they are not j peg, they will not upload images save from a camera are fine

    I have problems with uploading images to my internet printing company when  the images have been manipulated through CS6 and  i have saved images as jpeg  the printer company tell me they are not j peg,
    but images saved from my phone or camera images that have not been manipulated upload fine, What am i doing wrong?

    Save/Export them as JPG. Photoshop defaults to PSD, so make sure you select JPG and not just rename the file to .jpg.
    There are two ways to save them as JPG: Regular Save as option or Save for Web & Devices
    Take your pick.

  • I am using adobe photoshop cs6. I am facing a problem. When i save any image as "save for web". After saving image it show cropped. An image show many parts of the image after saving the image. Please help me. Thanks in advance.

    I am using adobe photoshop cs6. I am facing a problem. When i save any image as "save for web". After saving image it show cropped. An image show many parts of the image after saving the image. Please help me. Thanks in advance.

    Just go back in photoshop and use the Slice Select tool, then just click and select the slice and hit delete - if you're not sure which one is the active slice just right click and find the one that has the Delete Slice option.
    It's possible you either added the slices by accident or if you received it from someone they just had the slices hidden. For the future, you can go to View > Show > Slices to display (or hide) slices.

  • Converting GIF images to JPG - display problems in browser

    I am currently writing a program that uses the ImageIO package (javax.imageio.*) to take GIF and PNG images and convert them to JPG images. The program seems to convert them correctly, especially for the PNG images, but the converted GIF images don't open in a browser. They open just fine in Windows Picture and Fax viewer, but when I try to open them in IE or Firefox, it only diplays the little red 'x'.
    Is anyone familiar enough with Images and the ImageIO package in Java that they may have some insight on why these converted GIF files won't display in a browser.

    Bonjour,
    In my [website|http://iweb.debutersurmac.com>, all the images are JPG files,
    By default iWeb '09 converts images to JPG (yes, it's true)...
    ...unless you use masked images*
    !http://i32.servimg.com/u/f32/09/02/44/99/masked10.jpg!
    Crop your images (with Preview) before you paste them in iWeb. Don't use mask, Unmask an image if it's masked. That's the trick!
    !http://i32.servimg.com/u/f32/09/02/44/99/unmask10.jpg!
    (* images with transparency areas (ex : some PNG and GIF), rotation and shapes in iWeb make also PNG files in your website.)

  • Problem with burning/image saving process...

    It reported encoding error during the burning try... and it's hanged during 12 +/- hours with the saving image process (after encoding step)...
    i checked the console and saw this piece of error repeated every 2 seconds during the 12 hours:
    2006-05-11 11:24:25.279 EncoderServer[14780] CFLog (99): CFMessagePortCreateLocal(): failed to name Mach port (com.apple.idvd.EncoderServer)
    2006-05-11 11:24:27.296 EncoderServer[14781] CFLog (0): CFMessagePort: bootstrap_register(): failed 1103 (0x44f), port = 0x1403, name = 'com.apple.idvd.EncoderServer'
    See /usr/include/servers/bootstrap_defs.h for the error codes.
    Can anyone help me?
    Thanks

    it just hangs up in the audio encoding...
    It will appear to do that under normal conditions. My 1 1/2 hour iMovie project took about 30 minutes to encode the audio on this computer; two chips working hard.
    http://docs.info.apple.com/article.html?artnum=302988
    I have read that some PowerBooks can take a long time to encode a project. Like 12 hours. That doesn't seem right to me, but I've seen it here.
    Tell us more about what you're sending to iDVD. MiniDV coming from a camcorder set to record 16-bit audio, not 12-bit?

  • "error while saving image"

    has anyone had the problem where, when they select option and tap an image (in my case i pulled one from my email using an image i uploaded from my drive) and gotten an error that says "there was an error saving image" and your only option is 'ok'? i've read other forums and understand that jpeg's are the ideal form, and this had a .jpg extension.
    any thougths anyone?
    so many thanks in advance.
    -wren
    Post relates to: Pixi Plus p121vzw (Verizon)

    hey thanks , but my jdbc pool and driver is fine. what may be the problem and I am not able to change the type to BlobDomain in eo. The type i Blob only may be this is the problem how can I change it to Blob Domain

Maybe you are looking for

  • Seeding the cache for all users

    We are facing some performance issues (even after using aggregate tables) and are looking into seeding the cache for all users so that the dashboard pops up immediately. So far I couldn't make it work. As Administrator I created an iBot to run a repo

  • Select records based on max(date)

    Hi everyone, I have a table (tbl_training) with training information-such as who took what training, when they took it, scores they received and other various stuff. In this table, a person could have taken multiple training within the year. what i n

  • C program to call and ABAP Bapi

    where I can find some example about how to call an Abap Bapi from an external C program ? regards

  • Calling url

    when user clicks on a JavaFX button i need to navigate user to a new url. how can i display a website in a browser through JavaFX ?

  • Book is on sale, can I give it away via my website?

    Hi, Trying here to be a bit of everything – editor, publisher, marketing, apprentice techie – and sometimes the brain slows down when asked to address an unexpected area. So can I ask what may be a naive question: is it possible to give, free, an exi