Resizing part of image and selecting a area

Hi Guys ,
I'm building a web application ,One of my requirements is to resize a image ,I could find out some open source Javascript code ,It works .
The problem i have is that i need to resize a part of the image,Not the whole image ,So basically i need to select a area which i need to resize and drag it so that it will get resized .
I'm wondering if there is a way to do this in Java .
I work on java but i'm a total newbie to imaging in java ,Can i achive this in Java applets ,ie. i should be able to select a area and resize only that part of the image.
what technology do you think i should use to do this stuff.
Any help would be greatly appreciated .
Thanks in advance
Chetan

Hi ,
Thanks for your reply ,I haven't had a chance to work on these API'S before ,I'm still deciding what kind of API to use ,So my question would be ,Can i achieve this stuff using some of the JAVA API'S.
Thanks in advance
Chetan

Similar Messages

  • How do I fix the timeline so both the images and the timeline are 1080p?

    Hello everybody. I'm a relative newbie to FCP, but not totally new to the world of video editing. I've got a problem that I hope somebody out there can assist me with.
    I've shot a lot of footage in HD (1080p) and have imported everything into a timeline. I've performed all my edits, transitions, music integration etc - now when I go to output the footage I realise I've made the mistake of doing everything in a 576p timeline.
    I've figured out how to resize the timeline, but all the clips appear in their original 576p resolution in the middle of the canvas (ie huge bars around the image)..
    My question is simple enough.. How do I fix the timeline so both the images and the timeline are 1080p? Is there a method to 'resize' all the clips to the new timeline? Will this resize the 576p clips or will they still be native 1080p?
    If importing all those clips into the original timeline has destroyed pixels, then resizing to 1080p is definately not what I want to do. I want to retain all the resolution of the original clips.
    Any advice would be very much appreciated. I've created nearly 300 edits in this timeline, not including all the effects and transitions. If I have to redo all this because I set up the timeline incorrectly I'm going to be rather upset!
    Thanks everybody.

    If you captured the footage as 1080 then the fastest way to re-size all the clips back to 1080 is to select all the clips on the time line and then in the menu bar go to Edit -> Remove Attributes. This will pop up window asking which attributes you want to remove. I would try checking the Basic Motion and Distort attributes and click OK. This should pop everything back to their original size and shape.
    However, this will also remove any re-sizing or distortion that is intentional (ie to blow up a particular clip so you can focus on something).

  • Every time I right click on an image and select Download image Firefox crashes . I have reinstalled; uninstalled and deleted folders and then reinstalled; added

    Every time I right click on an image and select Download image Firefox crashes . I have reinstalled; uninstalled and deleted folders and then reinstalled; added no plugins; checked I can DL the same images in IE-works good.I use Win7 pro and it works in other profiles in Windows 7. I created a new profile in Windows and that worked for about 2 months and now that has gone the same way as my admin profile has done. I deleted the sqlite download file-still same prob..Please help. I use Firefox 13.0.1

    That sounds very frustrating.
    By the way, does it say "Download image" or "Save Image As"? Just checking whether you have an add-on downloader in the mix that might be relevant. If you do have an add-on, try using the built-in command.
    Do you also crash if you save from here:
    right-click page > View Page Info > Media tab > (select image) > Save As
    I assume you have seen this article and tried these things: [[What to do if you can't download or save files]].
    Have you tried the new Reset feature in Firefox 13? This duplicates certain key data from your active settings folder into a new one, bypassing some add-ons and custom settings. Your plugins will still be active, but could be disabled manually if you like.
    More information in this article: [[Reset Firefox – easily fix most problems]].
    If the new settings folder has the same problem, you can switch back if you like using Firefox's Profile Manager.
    Does it make any difference?

  • I have just downloaded Photoshop CC 2014. However, I don't see these 2 new features: Content Aware Color Adaptation and Select Focus Area

    I have just updated to PS CC 2014. However, I don't see these 2 new features: Content Aware > Color Adaptation; and Select> Focus Area
    There're not there, not listed. What am I missing? Thanks.

    You will likely get better program help in a program forum Photoshop General Discussion
    The Cloud forum is not about using individual programs
    The Cloud forum is about the Cloud as a delivery & install process
    If you will start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll

  • New features, e.g., blur path and select focus, are not showing up in my PS drop down menus

    Although I've downloaded the CC PS 2014 updates the new features, e.g., blur path and select focus, are not showing up in my PS drop down menus - anybody know why and what I need to do?
    <moved from downloading,installing,setting up - kglad>

    Are you sure you understand the Cloud License concept?
    You are entitled to keep Photoshop CC and install Photoshop CC 2014, so CC 2014 is not connected with additional costs and the time it takes to install the new version of Photoshop should not be that much of a imposition, should it?

  • Resizing part of image

    Hi Guys ,
    I'm building a web application ,One of my requirements is to resize a image ,I could find out some open source Javascript code ,It works .
    The problem i have is that i need to resize a part of the image,Not the whole image ,So basically i need to select a area which i need to resize and drag it so that it will get resized .
    I'm wondering if there is a way to do this in Java .
    I work on java but i'm a total newbie to imaging in java ,Can i achive this in Java applets ,ie. i should be able to select a area and resize only that part of the image.
    what technology do you think i should use to do this stuff.
    Any help would be greatly appreciated .
    Thanks in advance
    Chetan

    You could stretch parts of an image in a Java applet quite easily.
    If you've worked with the Graphics object, you could use some of the overloaded methods of drawImage.
    This one could work:
    http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Graphics.html#drawImage(java.awt.Image,%20int,%20int,%20int,%20int,%20java.awt.Color,%20java.awt.image.ImageObserver)
    If you want the output to be displayed in an image outside the applet, that is quite a bit more difficult. Java and JavaScript don't have any practical way to pass image objects between each other. If you are really in need, there are ways, though.
    Possible solution: You could have the applet send the resulting image or stretching task to the server and have your applet pass a URL to JavaScript so the script can generate the img dom object to link to the result.

  • When searching for an image in Finder on iMac, I found hundreds of images of printers !! All sorts of printer images which I certainly haven't loaded on.I went to Finder, File, Find and Image and there they are, hundreds,if not low thousands of them.

    I was searching for an image on my Imac and when I went to Finder,File,Find and then Image, I found hundreds if not early thousand images of printers ! Amazing in one way but I didn't put them on my machine and don't really want them there.Did they come pre-loaded? Can I delete them safely? Thanks

    Almost certainly, no absolutely not once you start deleting stuff like this that you think is not needed, eventually you'll trash something essential and cause yourself a lot of heartache.
    There are numerous files classed as images, some will be temporary files in browser caches, others system files, others your "real" images, others files which are not really images but appear to be.
    The amount of space of what I presume are essentially icons of printers will will be minimal, lets say these images are  5k in size (I guess they are much smaller?) and there are 1,000 of them, thats only 5Mb. No doubt your disk has multiple gigabytes free, eg thousands of times as much free as you'd save by deleting all of them. So you might gain back an extra 0.0001% disk space*. NOt worth the time, let alone the risk, plus then you'll get into a mindset "hmm, I dont think I can possibly need this 23byte file either I'll delete that as well etc, and then "problem......". 
    Where are the images stored? It may be that at some time you were searching for a new printer and these images are from that exercise (though I doubt you looked at thousands?) in which case they are in your browser cache and you can always delete that through the browser, but that space will be overwritten by other images anyway.
    "If it ain't broke, don't fix it" is a motto to work by with computers.
    *( or, if you really do need the (say) 5MB of disk space back because you are running out, this would only be a very temporary solution and that wont have done you any good)

  • Resizing 1) background images and 2) div's containing images

    I just created a web page consisting of little more than an image (about 900 pixels) wide which is set at width=100% in a style sheet. It works great, but I'd like to substitute a smaller image (to reduce page loading time) in mobile devices.
    If it was a background image, I could just declare two different background images based on screen size, but I don't know of any way to swap between images actually inserted in a page.
    So, is it possible to give a background image a width in percentage, similar to a static image? In other words, if my screen was 651 pixels wide, then a static image inside a container spanning the entire screen should also be 651 pixels wide. Can I rig it so that a background image in that container would also be 651 pixels wide?
    Of course, the obvious problem is height. If a background image measures 900 X 1200 pixels, and a screen is 600 pixels wide, then even if there's a style that makes the image 600 pixels wide, it would also have to calculate a height of 800 pixels, and I'm guessing that can't be done.
    Anyway, I'd just like to know what kinds of tricks one can use in making background images and divs containing static images display in percentages based on screen size.
    Thanks.

    Use background-size:cover; for your background images.
    Further reading: http://css-tricks.com/perfect-full-page-background-image/
    EDIT:// For swapping out placed images, it's a little harder to do right now as there is no specified solution from W3C. Some people want to use the srcset attribute, others the <picture> tag. There is no perfect approach right now. See: http://mobile.smashingmagazine.com/2013/08/21/webkit-implements-srcset-and-why-its-a-good- thing/
    One idea is you could hide the image and then load a background-image in the container which is smaller in size. But this would likely bloat your HTML and CSS as you use multiple images - the device will also load both images so you don't gain any real advantage unless you intend to show a croppoed or different image.
    Other ideas: http://mobile.smashingmagazine.com/2013/07/08/choosing-a-responsive-image-solution/
    <div class="image">
         <img src="YourImage.jpg" alt="" width="500" height="250" />
    </div>
    @media only screen and (max-width: 480px) {
         .image img {display:none;}
         .image {
              background:url("YourImage_Mobile.jpg") no-repeat 0 0;
              background-size:cover;
    Another idea is to show/hide the relevant image:
    <img src="YourImage.jpg" alt="" width="500" height="250" class="desktop" />
    <img src="YourImage_mobile.jpg" alt="" width="300" height="180" class="mobile" />
    @media only screen and (max-width: 480px) {
         .desktop {display:none;}
         .mobile {display:block;}

  • RH8 conversion (bullet images and numbered lists are different)

    Version 8.0.2.208
    Conversion of 1200 htm files.
    Has anyone experience bullet images in their custom styles changing from RH7 to RH8 and numbers in numbered lists resized?
    Bullets
    I noticed that all my bullet images have changed. They are OK in Design view, but change when the topics are previewed and generated.
    For example, if the style used a small square bullet image, it was changed to the bullet used at the beginning of this sentence.
    If I attempt to create a new bullet list in the existing topic using the Normal style (Arial 12)  and Formatting Toolbar (Bullets), the bullet and text are changed to (Arial 10) and the style name changes to (none) in Design view. Preview and generated is also Arial 10 for both.
    Numbered Lists
    Most of the existing converted topics used the Normal style and Formatting Toolbar (Numbers) for numbered lists. There is spacing between each numbered line. The numbers and text are in (Arial 12) in Design view, but the numbers are (Arial 10) when the topics are previewed and generated and the text remains (Arial 12).
    If I select the numbered list, click the numbered list icon to turn off numbering, and then click to turn on numbering, the numbers and text are (Arial 10) and the style is changed to (none). Output and preview are (Arial 10). The spacing between the numbered items is deleted.
    I have to then highlight that list and change the style back to Normal for (Arial 12) text.
    If I attempt to create a new numbered list in the existing topic using the Normal style (Arial 12)  and Formatting Toolbar (Bullets), the bullet and text are changed to (Arial 10) and the style name changes to (none) in Design view. Preview and generated is also Arial 10 for both.
    This has taken up a lot of my time. Any clues?
    Donna

    I went to the link you provided.I am still confused as to the step by step procedure to fix my custom bullet style that is used throughout my project. Can you globally fix this issue? It would be too time consuming to figure out where in 1200 topics this style is used. I guess I don't understand list styles.
    Custom Style = BulletList
    My custom (BulletList) style -  Design mode:
    Preview mode (incorrect)
    Another topic using ths sam (BulletList) style - Preview mode (incorrect should be square bullets)
    I select Format > Styles in design mode. Right-click on BulletList, select Edit.
    If I ceate a bulleted list, the square bullet is selected.
    Donna

  • My click wheel and select button are unresponsive

    hi
    I've had my iPod mini for just over a year now and I've had one or two problems in the past. However, I've been able to reset it by holding the select button and menu button. However, today my iPod's click wheel will not respond (and doesn't make it's usual noise) and my select button is unresponsive so I can't reset. Plus my almost full battery has just drained in less than 20 minutes. Are there any tips for restoring my iPod?
    Thanks

    Welcome to Apple Discussions!
    Try connecting it to the AC adapter after the battery is drained and resetting it. Also, is it turning on?
    Finally, does it connect to your computer? Try resetting it while it is connected to the computer.
    Read these tips on resetting...
    http://docs.info.apple.com/article.html?artnum=61705
    btabz

  • Applet, images and the Bean Area

    I've created a Java Swing Applet Bean that simply displays a GIF image that it receives via a URL. The Applet works well on its own, however, I have tried to register my Java Applet Bean with a Forms Bean Area and although I can see that something is happening (the bean area turns gray) I still cannot see the image etc.
    What I've done is:
    1)Created a Java Class that extends oracle.forms.ui.VBean and draws an image.
    2)Next I JAR-ed the class and placed it, as well as dependent JARs in the IDS_HOME/forms90/java directory and added the JAR to the formsweb.cfg
    3)Then I created a new form with a Bean Area.
    4)Then I created a button with a trigger that when pressed calls fbean.register_bean('CUSTOMERS.FORMSMAPBEAN',1,'oracle.forms.fbean.FormsMapBean')
    Does anyone have an idea what might be happening or how to make this work? Has anyone implemented an Applet within a Bean Area?
    Thank You In Advance,
    Justin

    My pleasure. The procedure and code that I used to create a dynamic image Bean is the following. Please note however, that I am in no way a Forms developer and will probably not be able to answer Forms questions. Here it is:
    1) I created a Java Class (Bean) called FormsImageBean using JDeveloper which extends oracle.forms.ui.VBean. The code looks like this:
    *FormsImageBean is a simple bean that takes 1 argument via the method, getImageURL,
    *which returns an ImageIcon from which to build a Swing Applet from.  FormsImageBean
    *extends Oracle Forms VBean such that the Swing applet can be used in a bean area.
    *Because FormsImageBean does use sockets to reach outside of the applet (and Form) it
    *must be signed or allowed via the java policy file in order to run in a public environment
    * @author Justin Lokitz
    * @version 1.0
    package oracle.forms.fbean;
    import java.net.URL;
    import javax.swing.ImageIcon;
    import oracle.forms.ui.VBean;
    import javax.swing.JPanel;
    import java.awt.BorderLayout;
    import javax.swing.JLabel;
    import java.awt.Image;
    public class FormsImageBean extends VBean
    private JPanel jPanel1 = new JPanel();
    private JLabel jLabel1 = new JLabel();
    public static ImageIcon img = null;
    public static String UrlStr = null;
    * default class constructor for FormsImageBean
    public FormsImageBean()
    try
    jbInit();
    catch(Exception e)
    e.printStackTrace();
    * Takes 1 argument and returns ImageIcon from URL.
         * @param name ID
         * @return Returns ImageIcon via URL parameters
    public ImageIcon getImageUrl(String id){
    try{
    //create image
    UrlStr = "http://www.foo.com?id=" + id;
    URL url = new URL(UrlStr);
    img = new ImageIcon(url);
    catch (Exception e)
    System.err.print("Something happened when trying to get get the image. Error: " + e);
    return img;
    * Initialization of the Swing applet
    private void jbInit() throws Exception
    jLabel1 = new JLabel(getImageUrl("135"));
    jPanel1.add(jLabel1, null);
    this.add(jPanel1, BorderLayout.CENTER);
    2) I deployed this code as a JAR file, along with dependent JARs to the $DEVELOPER_HOME/forms90/java directory and signed the JAR using the java keytool.exe. I also updated the formsweb.cfg with the new JARs.
    3) Next I created a form with a BeanArea called FormsBeanArea and referenced my full class, "oracle.forms.fbean.FormsImageBean", for the "Implementation class" property in the FormsBeanArea dialog.
    4) After many tests, it worked.
    Best Regards,
    Justin

  • Outputting a set of images and selecting them- how?

    I would like to display a set of "Image" objects (defined in my App) and let the user select some of them. This is a kind of mail-style application, where one can select a bunch of mails and then delete them alltogether by pressing the delete button.
    instead if mails, i got images. currently I don't know how to do this. the images themselves can be displayed using a table_data and within one column i display the image, the next is the description and then... there should be a checkbox that let's the user select the image.
    how can I do this with JSF? thanx for your support!

    I got some code now, to clarify what I mean. The first column should contain a checkbox, that the user can select. When he presses a button, I would like to recognize the IDs of the images that he selected... how?
    Thanx a lot! --> BTW: the stuff below doest not work, but would be nice :-)
    <h:selectmany_checkboxlist value="#{panelBean.currentOptions}">
    <h:data_table value="#{imageBean.images}" var="image" >
         <h:column>
              <f:selectitem itemLabel="#{image.imagepath}" itemValue="#{image.imageId}"/>
         </h:column>
         <h:column>
              <h:graphic_image url="#{image.imagepath}" />
         </h:column>
    </h:data_table>
    </h:selectmany_checkboxlist>

  • HT4859 When I tried to restore my new iPhone all I got was my contacts, all of my images and voice memos are gone.  I was backing up via wi-fi at home to the iCloud.  How can I retrieve the images and voice memos?

    The voice memos, in particular, are important as they contain several conversations I had with my, now decieced, grandmother.  I was under the mistaken impression that everything was being backed up nightly when I was connected to wi-fi at home and plugged in to a charger.

    You could try restoring the backup again.  Sometimes people have more success the second time.

  • Extract part of image & save with transparent background

    What is the best way to extract part of an image & save it with a transparent background?  I had hoped to the extracted images in 2 different ways.
    Firstly just to paste into another image.
    Secondly I'd like to try to open both the extracted item as well as the whole original photo in different video editing programs including Premiere Elements & sony Vegas.  What is the best  way to do this?

    Here's what you could do.
    First make sure you have both images open in editor
    1. Open the image and select the area using the magnetic lasso/quick selection tool.
    2.  Select Layer -> New -> Layer Via Copy
    3. Now in the layers palette, right click the layer and select 'Dulicate Layer'
    4. In the duplicate layer dialog, in document - select the other image, where you would like to paste the image to.
    5. You and ajust the poition of the pasted area/resize it using the move tool or transform tool (Ctrl + T).
    6. Save the image with a new name
    If you simply want to save the image with transparency (after step #2) - you may -
    > hide the previous layer and Save the image as a png/gif so transparency is presereved.
    Hope that helps.
    When you have teh saved documents you can open them up in different editors.
    Regards,

  • Images and .properties(bunldes) files are not being found from my JSPs

    Hi,
    I have created .ear file by using ANT Application. And deployed into Oracle9iAS(OC4J). Here problem is that images and .properties(internationalization bundles)files are not found from JSPs.
    Here is my directory structure.
    public_html--->locale -->BusinessEntity -->businessentity_en_US.properties
    --->enterprise -->images -->knowldege.jpg
    --->BusinessEntity-->BEAdd.jsp
    in my jsp bundle(.properties)file is accessed like this:-
    <i18n:bundle baseName="/locale/-->BusinessEntity/businessentity" id="businessentity" locale="<%= locale %>" />
    in my jsp images accessed like this:-
    src="/enterprise/images/knowldege.jpg".
    In my working environment, without creating .ear file, images and .properties files are being found my JSPs. But if i create .ear file and after deploy, images and .properties files are not being found my JSPs.
    please let me know where i might did wrong
    thanks in advance
    srinivas

    Hi i am again. Here is my configuration files(server.xml and default-web-site.xml)
    server.xml :-
    <?xml version="1.0"?>
    <!DOCTYPE application-server PUBLIC "-//Evermind//DTD Orion Application-server//EN" "http://xmlns.oracle.com/ias/dtds/application-server.dtd">
    <application-server application-directory="../applications"
    deployment-directory="../application-deployments"
    >
         <library path="../tools.jar" />
         <rmi-config path="./rmi.xml" />
         <jms-config path="./jms.xml" />
         <log>
              <file path="../log/server.log" />
         </log>
         <transaction-config timeout="30000" />
         <global-application name="default" path="application.xml" />
         <application name="nalluri" path="../applications/trainiumear.ear" auto-start="true" />
         <global-web-app-config path="global-web-application.xml" />
         <web-site path="./default-web-site.xml" />
         <cluster id="-1640090707" />
    </application-server>
    default-web-site.xml:-
    <?xml version="1.0"?>
    <!DOCTYPE web-site PUBLIC "Orion Web-site" "http://xmlns.oracle.com/ias/dtds/web-site.dtd">
    <web-site port="8888" display-name="Default Oracle9iAS Containers for J2EE Web Site">
         <default-web-app application="nalluri" name="Commonwar" />
         <access-log path="../log/default-web-access.log" />
    </web-site>
    thanks in advance
    wating for reply
    srinivas

Maybe you are looking for

  • How to I get my internet to work?

    I am currently using an iMac G3 and everytime I try to accsess Facebook or actually any website that is, it will either say "The file cannot be found", or "Secuity Error" Someone please help me.

  • Layout Problem in XML Import

    Dear All, I am new in InDesign. I have some problem. I am using InDesign CS3. I want when XML file will be import layout should be come according to our specification with image. Is it possible any script or XSLT. If yes please give me some guiduence

  • ITunes is saying that I need to download 64bit when I have already gotten 64bit.

    iTunes has quit recognizing both of my iPhone 3gs. It says that I have to download 64bit nut I already have 64 bit. I uninstalled & re-downloaded iTunes 64 bit only to still recieve the same error message saying that I need 64 bit. Help!!!

  • [Tip] How to protect Image file

    Hello, If you have ever wanted to protect your image file, especially within your Flash content, this article will be helpful. First of all, there are some points you need to protect when you deliver image data with Flash. 1. Internet Browser Cache.

  • JTable selection visible

    Is it possible to set a table or list selection always visible ? And if yes, How ? (of course) Thanks