Load Image resize it and save

I want to write a program that recievs a directory name and then
goes through all sub directories looknig for images and resises them to
one size.
Is it possible ?
Can anybody refer me to a link/thread that i can look at ?

This might work http://java.sun.com/products/java-media/jai/forDevelopers/jai1_0_1guide-unc/

Similar Messages

  • Inserting image to jFrame and save it in a sql database

    Hai guys, I have a problem in inseting a image in jfame and save it in database (my sql)
    does any one have an idea about this task reply me pls
    thanks
    bay !

    Use BLOB (Binary Large Object) to save your image to a database.
    As far as displaying a image on Jframe, search the forum.

  • Transform implementation goes wrong when I try transforming a image through script and save the new image using a HTML to canvas plugin.

    Transform implementation goes wrong when I try transforming a image through script and save the new image using a HTML to canvas plugin. The rotation comes up fine, but the origin of the transformation is faulty (compared to other browsers like Chrome & IE)

    A good place to ask advice about web development is at the mozillaZine "Web Development/Standards Evangelism" forum.
    *http://forums.mozillazine.org/viewforum.php?f=25
    The helpers at that forum are more knowledgeable about web development issues.
    You need to register at the mozillaZine forum site in order to post at that forum.

  • Inserting an image to Jframe and save it ,  in SQL database

    Hai guys,
    I just wanna know about the inserting image in to a Jframe (in netBeans) it will be a grate help if you tell me the way to call a image to Jframe through a Button click and save the image in MySQl database.
    Is anyone has a idea about this task, please tell me
    Thanks,

    Image class should work to get the data, then add it to a Canvas object, then you can save the bytes from the Image into an SQL statement through JDBC.
    The implementation details will vary based on which approch and database you select.

  • Catch the image of JTree and save it as a file

    There is an JTree and it has a few nodes.
    And there, I want to capture both the image of JTree and
    the images of it's child nodes as they show in screen.
    if possible, I want to capture image of all expanded nodes in tree and
    save them as jpg file.
    I try to capture the Image of JTree from JTree.createImage() method.
    and I also tried to capture the images of child nodes
    from JTree.getComponents() and capture images all of child nodes as they were.
    I,however,get to know the method
    Component.createImage() doesn't return the image that shows in screen as it was.
    could anybody tell me the answer?

    Hi,
    don't know if I got you right, but what you want is a "screenshot" of the JTree, right ?
    Try to paint the JTree in a BufferedImage and encode this as JPEG or whatever.
    BufferedImage theImage = new BufferedImage(
          owner.getWidth(), owner.getHeight(), BufferedImage.TYPE_INT_RGB);
          Graphics g = theImage.createGraphics();
          g.setClip( 0, 0, owner.getWidth(), owner.getHeight());
          owner.paint( g);owner is your JTree or any other component you want.
    Hope that helped.

  • When I rotate an image in Preview and save it, it reverts back to original

    This is a really frustrating problem! When I click on a picture in Finder, it comes up in Preview. If I rotate and save it, the rotation isn't saved and it ends up being the same as the original picture. How am I able to rotate and save the rotation?!

    What application are you using to rotate the picture? Applications such as Preview and GraphicConverter save the rotated picture, but with others such as iPhoto you need to export the rotated image.

  • Automate 'Load files into stack' and save as new file

    Hello there,
    I hope someone can help me with the following issue:
    I have 300 folders, each containing 100 images which I need to open as layers, change the opacity to 1% for every layer, flatten the image and then save as a new file. So for every folder I would need one new file generated from the 100 originals.
    I know how to do it manually, i.e. load every folder with the 'Load files into stack' command and let an action run for the rest, but that does take some time with 300 folders. Maybe someone knows how to manipulate the 'load files into stack' script so that it does the job independently.
    Thank you for your answers.

    I think you would be better off starting from scratch with a new script for the design and structure of the 'Load files into stack' script is not easy to comprehend.
    I guess that’s sound advice.
    But another point, leroybak:
    What are you trying to achieve here anyway?
    If you want to »blend a movie into one image« like a continuous exposure of the whole movie on photographic paper (and it has been done) changing all layers opacity to 1% might be not altogether the ideal route.
    Instead converting the Layers to one Smart Object and invoking Layer > Smart Layers > Stack Mode > Mean might be better in that all layers contribute to the resulting values equally.

  • Fetch Blob image from database and save in file

    Hi,
    I am using the following code to fetch a picture stored in database (blob type)
    $sql = "SELECT PICTURE FROM NEW_PICT WHERE SR_NO = 1";
    $stid = oci_parse($conn, $sql);
    oci_execute($stid);
    if(OCIFetch($stid)) //if file exists
    $a=OCIResult($stid,"PICTURE");
    file_put_contents('pics/test.jpg', $a->load());
    The code works fine with no errors and it generate the picture "test.jpg". The image also opens in windows image viewer.
    But when I try to open this image with Photoshop or any other image editing tool, the error occur "Invalid JPEG Marker" or "Invalid File Type"
    Also the image dose not display in browser.
    Please help.
    Thanks

    Make sure you fetch it as a BLOB.
    See "Uploading and Displaying an Image" on p 236 of The Underground PHP and Oracle Manual | Homepage

  • I'd like to load images using XML and Java - hints??

    I have a XML files that are created on a timed basis....they describe a photo and point to a dir where the photo is stored...like...
    <image>
    <user>bill</user>
    <img>photo.jpg</img>
    <img_dir>'/tmp/photos'</img_dir>
    </image>
    I'd like to write a Java program that parses the XML and loads the images, data into Oracle.
    Suggestions on Oracle tools, downloads that will help me accomplish this???
    Thanks!

    I pass a URL and then when I parse the XML I download the file from the URL.
    A.

  • Can't convert raster image to vector and save with a transparent ground.

    I'm pretty sure I know all the right steps as far as Live Trace and Expand go, but it seems I can't detach the image from the white workspace background. I tried selecting the white in my image and deleting it, but Illustrator isn't even allowing me to select. I feel like something very simple and fundamental is wrong, I just can't figure out what it is.

    Thanks, didn't see that option before. Tried it, but I still have the problem of the file including all of the workspace and being much larger than the original file. There has to be some trick to detaching the black from the background we're missing.

  • What is the difference between "Save image to downloads" and "save image to iPhoto library"???

    Typically I have been saving my photos to the iphoto library. Im not sure which is the best option. What is the difference between these 2 options?

    one goes to your downloads folder and the other goes to your iPhoto library.

  • How to load images in List from Xml and view the image and resize the image & save in Flex?

    Hi Friends,
    I am new to flex i am doing application for image resizing rotating and save the resize image.
    I want to load the images from xml file to listcontrol and show that images as a icon in the listview,then i want to drag that image to panel that time it should show it original size of the Image.then it allows user to resize ,crop,rotate the image.then i want to save the resize image,when i save the resize image it should replace the original image in the xmllist.
    I am looking for some useful suggession ,if you dont mind want to see some snippet code.
    It will help me to understand the concept.
    Cheers,
    B.Venkatesan

    Not in Crystal Reports Basic for Visual Studio 2008. You'll have to upgrade to CR 2008 (12.x). Then use kbase [1320507|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do] as a guide on how to do this.
    Ludek

  • Image Resizing Using Java

    Hi.
    I am new to Java and have a question.
    I have an image at this path: "c:\images\pic1.gif".
    I want to take this image, resize it, and save it to a different path.
    I don't have any outside Toolkits.
    How do I do this?
    Or, more simply, how do I use the Image and BufferedImage classes?
    I cannot figure out how to create a BufferedImage object using the path for the image I have.
    Thanks in anticipation.

    the article referred by previous answer is pretty good, but you can do it simpler. Just:
    1. create buffered image
    2. get graphics
    3. draw your source image in the graphics with desired size
    Check for an implementation
    http://mediachest.sourceforge.net/download/MediaChest11-80.zip

  • How do I non-destructively sharpen, re-size and save my images if I'm using both LR & CS6?

    Hi guys {and gals}... 
    Ok... here is my dilemma. I am having an incredibly difficult time understanding the best way to sharpen, re-size and save my images for both posting on the web and giving them to clients. I completed my first paid photo shoot (yay!), but as I finished editing each image, I re-sized it and posted it on my FB photography page. I later learned from a fellow at my local print shop that this is a destructive and irreversible edit (not yay! ).
    So...  before I pull out every last strand of hair on my head, I REAALLLYYYY need to get a good grasp on how to do the following things so that I can establish a good workflow: 1. Sharpen my image well {w/ Smart Sharpen}. Does this have to be done on a flattened image... and isn't flattening irreversible?  2. Re-sizing my images for both web display and client work/printing. Is it true that once I set it to 72ppi for web display, that I lose a great deal of the detail and quality? Do I need to create a copy of the file and have 2 different image sizes?
    I am self taught, learning off the cuff through tutorials and constant error... and I just want so badly to have a smooth and beneficial work flow in place.
    Currently, my workflow is as follows...  1. Load images into LR and convert to DNG files  2. Quick initial edit & then send into PS CS6  3. Perform detailed/layered edit(s)  4. {I know I'm supposed to sharpen now, as the last step, but am afraid to permanently flatten my image in case I want to tweak the layers later..}  5. Save the file (unflattened)  6. Go back into LR and Export the file to the appropriate place on my hard drive
    So... at this point, my image is still at 300ppi {not appropriate for web display}, unflattened {I'm told flattened images are ideal for client work and printing} and not as sharp as I want it to be {because I don't know when to apply Smart Sharpen filter}.
    HELP!!!!!!! 
    Thanks in adavnce for "listening" to me ramble...
    ~ Devon

    There are a lot smarter guys on this forum than I so will let them give you ideas on the sharpen workflow.
    Is DNG the same as RAW in that all the edits are non-destructive?  With RAW all the edits are put on a separate XMP file and believe with DNG the XMP file is written to the image.  In this case would suggest you save the DNG then create a jpg to send to clients or on web.  A jpg will not save layers so it is by its nature flattened.
    Since you are new to this try this test to understand ppi.  Click on Image/image size. 
          Change Document size to inches. 
          Now uncheck "unsample image" as if this is checked all the pixels will be modified to adjust to the new size.  Unchecked no pixels will be changed.
          Now adjust the resolution from 72 to 300 ppi (pixels per inch).  Note that the Image Size in pixels does not change, but the document size changes.  This means resolution is unchanged.
          Now click "resample image" and change the resolution.  Note how the image size changes and document size stays the same.
    Bottom line quality of picture is the image size in pixels.  THe larger the numbers the higher the quality.

  • After downloading IO6, can't capture photos from Facebook. I get "save photo" instead of "save image".  While browsing, save image comes up and photos save to camera roll.  Seems to be a problem only on FB.

    Downloaded IO6 on my iPhone 4s.  Now I can't capture a photo off Facebook to the camera roll.  When I try, I get a "Save Photo" tab rather than a "Save Image" button,  The photo does not save to camera roll.  For email images and Safari images, "save image" comes up and save to camera roll.  Seems only a problem with images on FB.  Any ideas?  Thanks

    You launched iPhoto and from its Preferences you selected Connecting camera opens.....

Maybe you are looking for

  • Portal web service consuming in portal application

    Hi , I have done the following steps and consumed a web service and created a portal service. When i am consuming this portal service in turn in my application.Its showing the error. Step 1 :- I Created a portal service. Step 2 :- And published it as

  • How to block a number from a "stalker"?

    how can i block a an incoming number ? sick and tired of receiving calls from one particular person ... starting to feel like a stalker

  • Who needs apple to make the bezels for the macbook pro? Lets get together and tell apple they must! It is a design flaw.

    I love my pro. I paid 2700. for it 4 years ago. I did that because I know they are meant to last. I could have purchased a regular laptop but they don't last. Until recently I was ecstatic with it. Then one day I opened it up and my screen seemed rea

  • Count Index Internal Table or Select Statement

    Hi All, I wish to index and display my internal table. How do i do this? for example in my Internal Table I have the following data:- Material-----Plant--Index ABCD1--  1000-- 1 ABCD1--  1000-- 2 ABCD1--  1000-- 3 ABCD2--  1000-- 1 ABCD2--  1000-- 2

  • Re: Sales return Process in QM

    Dear All, I am having a clients requirement where once the FG material is returned through 06 Inspection type using QM.This material goes to sales retrun.Now the requirement is to identify whether this retruned material can be reworked or needed to b