Resizing .png images

Hi,
I have many .png images in several files and I am unable to resize them using the resizing tool (click & drag to resize).  Does anyone have another way to resize these images, besides opening them and saving them in the correct size?  Some images are used in several places and while one image size works in one file, it does not work in another.  I'm afraid I'm going to have to maintain duplicate images.
I thought about saving the .png file into a different format, but that degrades the image some.....
thanks for your ideas.....!
RH 8.0.2

I generally work with jpg and gif formats so I was rather surprised to see the Resizer does not list PNGs as a supported format. Have you tried GIF format? It will depend on what the images are but screenshots seem to resize OK within limits.
Please follow this link and submit PNG resizing as a feature request.
http://www.Adobe.com/cfusion/mmform/index.cfm?name=wishform&product=38
See www.grainge.org for RoboHelp and Authoring tips
@petergrainge

Similar Messages

  • Exporting PNG Image Sequence in Compressor?

    Hi everyone!
    Can anyone help? Any Compressor pro's out there?
    I can successfully export sequences via Final Cut Pro using Quicktime conversion as .PNG Image Sequences retaining the alpha channel (millions+). However in Compressor the Image Sequence settings seem to ONLY support targa or tiff, IS there a way to export the image sequence using compressor as a alpha channel PNG!
    You can export the sequence as a .mov with the png codec.. but I must have it as the image sequence!
    Any ideas anyone?

    Sorry, but I have not been able to find an option for exporting image sequences with Alpha channel in Compressor either. I submitted a bug report about this a few months ago.
    Why do you need to use Compressor? If it is for deinterlacing or resizing, you could export from FCP using Compressor, and choose to export a QuickTime movie using the Animation codec at 100%. After that, you can export your Animation file to a PNG image sequence using QuickTime Pro.
    It is the only workaround I can think of at the moment.
    I would recommend submitting a bug report: http://www.apple.com/feedback/compressor.html

  • Resize html image in email signature

    Hi, I have been trying to insert my company logo in my email signature on Outlook Client 2013 but the results have been disappointing. Would greatly appreciate your assistance. Thank you in advance!
    My company logo is in png-format. Its dimensions are 1221 x 374 px, and has a dpi of192. Its size is 37.9 KB. 
    I have read from various online sources that it is better to resize the image such that it is not larger than 10 KB.
    However, I do not want to resize the image (to ideal width: 150 px) before inserting it in the signature editor, because doing that is bound to degrade the resolution of the image, no matter how good the photo editor is. I have tried gimp and various
    photo editors, but the resulting picture quality is poor and grainy. I can barely make out the text in the logo. 
    These are the 4 methods that I have tried:
    1. I followed this YouTube tutorial. I insert the image in signature editor. The location of the image is at my Desktop. Save and close. 
    I insert the signature in a new email. The resulting image is large and appears according to its original dimensions in my signature. So I resize the image in the inserted email signature, copy that resized image, then paste it in the signature
    editor. The resized image will appear, with reduced dimensions. I save and close the signature editor.
    Then, I insert the signature again in the email. The dimensions of the image are correct and they appear perfect. So I do a test by sending an email to myself. When I view the email on Outlook Client, the image looks perfect. However, on Outlook
    Web App, the image is extremely large and out of place. I have been racking my brains on how to solve this problem.
    2. Same as step 1. But instead of inserting the logo from my Desktop, I inserted the logo located on the web by typing its URL in full. I used: Insert > Link to File.
    However, the same problem appears. The image in the send email looks great on Outlook Client, but too large on Outlook Web App.
    3. Re-render the image to 96 dpi using IrfanView. I read from this source that Outlook will rescale any image that is not 96 dpi.
    Tried Step 1 again. But image size in Outlook Web App is too large again.
    4. I followed the steps in this link to create a HTML email signature. I used an online WYSIWYG HTML editor
    to generate the HTML code. I realised that altering the height and width of the image in the html changes the size of the image only in the WYSIWYG editor. I believe that Outlook Client overrides all provided image dimensions.
    Thank you so much for your help!

    Hi Joy,
    Try this.
    Compose the signature in Outlook, insert the original image, resize it to the correct size, by dragging the image using mouse.
    Compress using inbuilt Outlook tool, this should not degrade the quality of the image much.
    Click the picture or pictures that you want to change the resolution for.
    Under Picture Tools, on the Format tab, in the
    Adjust group, click Compress Pictures.
    If you do not see the Picture Tools and Format tabs, make sure that you selected a picture. You may have to double-click the picture to select it and open the
    Format tab.
    To change the resolution for the selected pictures only and not all of the pictures in the document, select the
    Apply only to this picture check box.
    Under Target output, click the resolution that you want.
    Now, copy all and create a new Signature out of this.
    Send out an email with this new signature and see if it works on OWA.
    Ensure you are checking it on the same PC and the Web browser is on 100% zoom level.
    In my case its appearing slightly smaller on Browser then on PC. Check if its same on different PCs as well.
    Regards,
    Satyajit
    Please “Vote As Helpful”
    if you find my contribution useful or “Mark As Answer” if it does answer your question. That will encourage me - and others - to take time out to help you.

  • How to resize GIF images

    Hi
    I used acme.jar to wirte gif images to a local disk . i worked fine , but iam facing problem in resizing these images , when i resize these images i get black background color in tat images .. can any body help me regarding this.....
    thumbImage = scaleToSize(imageWidth, imageHeight, thumbImage);
    Graphics2D graphics2D = thumbImage.createGraphics();
    graphics2D.setRenderingHint(RenderingHints.KEY_INTERPOLATION,
         RenderingHints.VALUE_INTERPOLATION_BILINEAR);
         graphics2D.drawImage(image,0,0,     thumbWidth,thumbHeight,null);
    out = new BufferedOutputStream(new FileOutputStream(newFilePath));
    GifEncoder gife = new GifEncoder(image,out);     
    gife.encode();
    this is my code .....

    Following is my code:
    public final String dealFile(ActionMapping mapping,ActionForm form,
                   HttpServletRequest request) throws FileNotFoundException, IOException{
              GroupForm gForm = (GroupForm) form;
              ActionMessages errors = new ActionMessages();
              // retrieve the file representation
              FormFile file = gForm.getPictFile();
              if (file == null) {
                   errors.add("FileNeeded", new ActionMessage("error.photo.filenull"));
                   saveErrors(request, errors);
                   return "failure";
              // has the maximum length been exceeded?
              Boolean maxLengthExceeded = (Boolean) request
                        .getAttribute(MultipartRequestHandler.ATTRIBUTE_MAX_LENGTH_EXCEEDED);
              if ((maxLengthExceeded != null) && (maxLengthExceeded.booleanValue())) {
                   errors.add("maxLengthExceeded", new ActionMessage(
                             "error.photo.length"));
                   saveErrors(request, errors);
                   return "failure";
              // retrieve the file name
              String fileName = file.getFileName();
              // judge file type
              String fileType = fileName.substring(fileName.lastIndexOf(".") + 1);
              if (!(fileType.equalsIgnoreCase("jpg")
                        || fileType.equalsIgnoreCase("jpeg")
                        || fileType.equalsIgnoreCase("gif") || fileType
                        .equalsIgnoreCase("png"))) {
                   errors.add("NotPict", new ActionMessage("error.photo.wrongformat"));
                   saveErrors(request, errors);
                   return "failure";
              Date date = new Date();
              Random r = new Random(date.getTime());
              // ������������
              String newFileName = request.getSession().getId() + r.nextInt(10000)
                        + "." + fileType;
              String filePath = null;
              String newFilePath = null;
              // the directory to upload to
              String uploadDir = servlet.getServletContext()
                        .getRealPath("/resources")
                        + "/groupphoto/" + DateUtil.asShortString(date)+"/";
              // prepare directory if not exists
              File dirPath = new File(uploadDir);
              if (!dirPath.exists()) {
                   dirPath.mkdirs();
              // retrieve the file data
              InputStream stream = file.getInputStream();
              // write the file to the file specified
              OutputStream bos = new FileOutputStream(uploadDir + newFileName);
              int bytesRead = 0;
              byte[] buffer = new byte[8192];
              while ((bytesRead = stream.read(buffer, 0, 8192)) != -1) {
                   bos.write(buffer, 0, bytesRead);
              bos.close();
              buffer = null;
              filePath = dirPath.getAbsolutePath() + Constants.FILE_SEP
                        + newFileName;
              File _file = new File(uploadDir + newFileName);
              Image src = ImageIO.read(_file); // ����Image����
              int width = src.getWidth(null); // ����������
              int height = src.getHeight(null);// ����������
              // convert the picture to picture within 100x100 and save to a file with
              // prefix
              // 100x100_ for later listing purpose.
              newFilePath = dirPath.getAbsolutePath() +Constants.FILE_SEP
                        + "100x100_" + newFileName;
              int newWidth = 0;
              int newHeight = 0;
              int bigger = width <= height ? height : width;
              if (bigger > 100) {
                   if (width >= height) {
                        newWidth = 100;
                        newHeight = height * 100 / width;
                   } else {
                        newHeight = 100;
                        newWidth = width * 100 / height;
                   ImageUtil.convert(filePath, newFilePath, newWidth, newHeight);
              // close the stream
              stream.close();
              _file = null;
              src = null;
              dirPath = null;
              String url = request.getContextPath() + "/resources" + "/groupphoto/"
              + DateUtil.asShortString(date)+"/"+ "100x100_" + newFileName;
              return url;          
         }

  • How can to resize an image uploaded in to the smart image

    Hi
        I have an image uploaded into the smartimage from the local file system. How can i resize this file or create a rendition for this image?
    Thanks
    Veena

    Hi
       I got a reference for the same question from Stack Overflow http://stackoverflow.com/questions/14726485/resize-an-image-resource-in-cq5/16728970#16728 970
    I tried the same method
    Resource resourceNew = resource.getResourceResolver().getResource(img.getFileReference());
        Asset asset = resourceNew.adaptTo(Asset.class);
        log.error("asset ****" + asset);
        Layer layer = new Layer(asset.getOriginal().getStream());
        layer.resize(200, 200);
        log.error("layer ****" + layer);
                            Image image = new Image(resource);
        String mimeType = image.getMimeType();
        ByteArrayOutputStream bout = null;
        ByteArrayInputStream bin = null;
        try {
            bout = new ByteArrayOutputStream(2048);
            layer.write(mimeType, 1, bout);
            bin = new ByteArrayInputStream(bout.toByteArray());
            asset.addRendition("resizedImage", bin, mimeType);
    log.error("asset Bin" + asset);
        } finally {
            // close streams ...              
    Where img is my Image object and I was able to create a rendition in the dam.
    But the rendition I am getting is in File format. Is there a way by which i can change it to png format??? any Help will be appreciable..
    Thanks
    Veena

  • Why when I resize an image does it looks less sharp and poor quality?

    I've been using Photoshop since CS3 and have never had thus problem before. I used to create websites using WordPress for clients and have created many different logo images without any issues. Now however I'm doing it for muself and I'm having problems when I resize the images for web use.
    Here are a few examples. The first is a 1400x1400 image that I'm going to use for a podcast. iTunes requires this size and it looks good to my eye. When you look at the resized image however you'll see that it is not quite as sharp.
    1400x1400 http://d.pr/i/SrtJ
    300x300 http://d.pr/i/IqtI
    Logo at http://safetydad.net
    Twitter page http://twitter.com/thesafetydad
    I've tried all different things to get it to look good at any size but no mater what when the image gets resized (especially by a CMS or Twitter) it looks like crap. I've tried saving as png, jpeg, flatteing before resizing, resizing the psd, saving as jpeg then resizing, using save for web option but no matter what it doesn't look right.
    What am I doing wrong?

    When you scale down, you will lose some of the sharpness because it is removing pixels from the image, and Photoshop is trying to figure out how to remove pixels, and reassemble the edges of the image.. As a result, when some of that shading is removed, it begins to blur. Make sure when scaling down an image (image - image size) that you set the resampling to bicubic sharper. This will help to reduce the blur from the pixel removal.
    Also, you can go to filter - sharpen - unsharp mask - and work on bringing back some of the sharpness there as well.
    For your twitter logo - I would make a separate logo for it, because the text is difficult to read over it. Sorry - just my opinion there.
    You may have tried these things already - but if not - hopefully it helps
    On the other note - I think you might be hyper-critical of the changes...

  • Resizing, renaming images...

    Okay, maybe Java isnt the solution for this, but I figured I'd check it out.
    I'ma photogenic person, I love my digital camera to death but I have a problem... When I take the images off my camera they're like 2200px by 1800px or something to that effect, way to large. So I immediately open them in photoshop, resize them, and save/rename them. It's rather tedious. So I'm looking to write an application, preferably in java, that I will enter in a directory (c:\dir\blah\blah) and it takes all the images in there and resizes them to say 600x400px and bumps the quality down from 10 to 7 (photoshop talk there, heh) then saves them.
    Is Java best for this situation, if so, can anyone push me into the right direction?

    It can be done with java.
    I wrote a hobby application to generate thumb-views (and extract exif data) into a separate directory. It is written in Java including the thumb-views' resizing from the original images. I used code snippets (for resizing) and an exif package found in the internet - see the comment in the code.
    If I had your address, I could mail the whole stuff to you.
    Beware however the spammers' e-mail-sniffing bots!
    As said it was a hobby project. But you do not need to reinvent the wheel.
    Image Magic(k) has ready-made tools (convert.exe) for this purpose, you only need to write some launcher script. Or some image viewers could provide a GUI interface to this batch-like activity, maybe Irfanview too.
    http://www.imagemagick.org/script/index.php
    http://www.irfanview.com/
    package hu.bij.thwutil;
    //http://blog.cyberjos.idv.tw/space/Esaily+scale+image+in+Java
    import java.awt.Graphics2D;
    import java.awt.image.BufferedImage;
    import java.io.File;
    import javax.imageio.ImageIO;
    import javax.swing.JFrame;
    public class SImage
      public static final String    JPEG = "jpg";
      public static final String    PNG = "png";
      private int                   srcHeight = 0;
      private int                   srcWidth = 0;
      private int                   height = 0;
      private int                   width = 0;
      private double                scale = 0.0;
      private boolean               resized = false;
      private BufferedImage         bimage;
      public SImage( String filename )  throws Exception
        this( filename, 1.0 );
      public SImage( BufferedImage aimage, double scale ) throws Exception
        bimage = aimage;
        srcHeight = bimage.getHeight();
        srcWidth = bimage.getWidth();
        setScale( scale );
      public SImage( String filename, double scale ) throws Exception
        this(ImageIO.read(new File( filename)),scale);
      public void write(String filename, String format ) throws Exception
         write(new File(filename),format);
      public void write( File output, String format ) throws Exception
        BufferedImage       bimage2 = new BufferedImage( width, height, BufferedImage.TYPE_INT_RGB );
        Graphics2D          g2d = ( Graphics2D ) bimage2.getGraphics();
        if ( resized )
          g2d.scale( ( double ) width / srcWidth, ( double ) height / srcHeight );
        else
          g2d.scale( scale, scale );
        g2d.drawImage( bimage, 0, 0, new JFrame() );
        ImageIO.write( bimage2, format, output );
      public void resize( int width, int height )
        if ( width < 1 )
          width = 1;
        if ( height < 1 )
          height = 1;
        this.width = width;
        this.height = height;
        resized = true;
      public boolean isResized()
        return resized;
      public double getScale()
        if ( resized )
          return 0.0;
        return scale;
      public void setScale( double scale )
        if ( scale < 0.01 )
          scale = 0.01;
        else if ( scale > 16.0 )
          scale = 16.0;
        this.scale = scale;
        height = ( int ) ( srcHeight * scale );
        width = ( int ) ( srcWidth * scale );
        resized = false;
      public int getHeight()
        return height;
      public int getWidth()
        return width;
      public int getSrcHeight()
        return srcHeight;
      public int getSrcWidth()
        return srcWidth;
      public static void main( String args[] ) throws Exception
        if ( args.length != 3 )
          System.out.println( "Usage: java ImageScale [src] [dest] [rate]" );
          System.exit( 0 );
        SImage      image = new SImage( args[ 0 ], Double.parseDouble( args[ 2 ] ) );
        image.write( args[ 1 ], SImage.JPEG );
        image.setScale( 0.5 );
        image.write( "1" + args[ 1 ], SImage.PNG );
        image.resize( image.getWidth() + 300, image.getHeight() + 100 );
        image.write( "2" + args[ 1 ], SImage.JPEG );
    }

  • Keep transparency of png image with type TYPE_BYTE_INDEXED

    Hi, i have a problem with a few png images. they have the type TYPE_BYTE_INDEXED. if i do any resizing or anything else with Graphics2D the transparency is lost..
    here is a simple example..
            BufferedImage bi = ImageIO.read(new File(args[0]));
            double w = 450;
            double oriw = bi.getHeight();
            double orih = bi.getWidth();
            double h = (oriw/orih)*450;
            Image image = bi.getScaledInstance(450, (int)h , bi.getType());
            BufferedImage biRes = new BufferedImage((int)w,(int)h,bi.getType());
            Graphics2D bufImageGraphics = biRes.createGraphics();
            bufImageGraphics.drawImage(image, 0, 0, null);
            System.out.println(biRes.getType());
            ImageIO.write(biRes, "png", new File(args[2]));my actual java program is more complex like this..
    is there anyway to "rescue" the transparency?
    p.s. sorry for my bad english ;)

    Try something like this:
    BufferedImage biRes = new BufferedImage(bi.getColorModel(), bi.getColorModel().createCompatibleWritableRaster(w, h), bi.isAlphaPremultiplied() , null);You have to copy the color table to the new image.
    The transparency data is written there.

  • Using Javascript & Actions to resize an image and add the filename as text

    Hello,
    I am currently working on a way to take an image, resize it and add exactly what is in it's file name (before extension) as a text layer. I have succeded in this BUT am having issues with file names that require more than one line of text.
    I need the text to align to the bottom of the image & the script or action must then resize the image so that the text does not overlap.
    Any ideas on how this can be done?
    At the moment I am using:
    -"Fit Image.jsx" to resize my image to a specific size (This was included in the Photoshop CS5 scripts)
    - A script to add the file name without extension and place the file name at a specific position.
    AdFileName.jsx
    if ( documents.length > 0 )
    var originalRulerUnits = preferences.rulerUnits;
    preferences.rulerUnits = Units.PIXELS;
    try
      var docRef = activeDocument;
      // Now create a text layer at the front
      var myLayerRef = docRef.artLayers.add();
      myLayerRef.kind = LayerKind.TEXT;
      myLayerRef.name = "Filename";
      var myTextRef = myLayerRef.textItem;
      // strip the extension off
      var fileNameNoExtension = docRef.name;
      fileNameNoExtension = fileNameNoExtension.split( "." );
      if ( fileNameNoExtension.length > 1 ) {
       fileNameNoExtension.length--;
      fileNameNoExtension = fileNameNoExtension.join(".");
      myTextRef.contents = fileNameNoExtension;
      // off set the text to be in the middle
      myTextRef.position = new Array( docRef.width / 2, docRef.height / 2 );
      myTextRef.size = 12;
            myTextRef.font="Arial-BoldMT"
            //set position of text
            myTextRef.justification = Justification.CENTER;
            myTextRef.kind = TextType.PARAGRAPHTEXT;
            myTextRef.width= docRef.width;
            myTextRef.height= docRef.height/ 2;
            myTextRef.position= [0, docRef.height * 0.88];
    catch( e )
      // An error occurred. Restore ruler units, then propagate the error back
      // to the user
      preferences.rulerUnits = originalRulerUnits;
      throw e;
    // Everything went Ok. Restore ruler units
    preferences.rulerUnits = originalRulerUnits;
    else
    alert( "You must have a document open to add the filename!" );
    Can the position be changed to allow more rows of text but keep it aligned with the bottom of the layer?
    How can I script in a way to make the image resize based on the amount of text lines?
    Any help would be greatly appreciated.

    You can add a text layer any where the only thing you need to worry about is the size of the font you use.  You can normally calculate a font size by saving the images resoltuion and then setting its resolution to 72 DPI calculate a font size basied of the images pixel width and the number of characters you want in a line. After adding the text layer you can restore the image to its original resolution and align the text layer by making a selection and alignint the text layer to the selection.  There are nine posibilites like the positions in the selection you can align to like a tick tack toe board. You need to use a script to add the text layer because your retrieving the filename.  The positioning of the text layer could be done easily in an action the would use the scriot to add a text layer the do a select all  the align the added text layer to the selection.
    About your script don't make text paragraph just add new line characters to make a multi line text layer So it can be positioned easily
    I do just that with my stampexif action.  The action uses my stampexif Photoshop java script to add a multi line text layer containing some formatted EXIF data then the action centers the text layer and add a layer style to it. Link http://www.mouseprints.net/old/dpr/StampExif.jsx Example

  • I am trying to use photomerge compose.  I open one standard jpeg image and one image that is my business logo in a png format.  When I select the png image, to extract the logo from it, it appears as all white and will not allow me to select the logo from

    I am trying to use photomerge compose.  I open one standard jpeg image and one image that is my business logo in a png format.  When I select the png image, to extract the logo from it, it appears as all white and will not allow me to select the logo from it.  It has worked in the past but I downloaded the update today and photomerge will not work correctly.  Any ideas?

    hedger,
    How do you expect anyone to help when we don't know a darned thing about the file, abut your setup, exact version of Photoshop and your OS, machine specs, etc.?
    BOILERPLATE TEXT:
    Note that this is boilerplate text.
    If you give complete and detailed information about your setup and the issue at hand,
    such as your platform (Mac or Win),
    exact versions of your OS, of Photoshop (not just "CS6", but something like CS6v.13.0.6) and of Bridge,
    your settings in Photoshop > Preference > Performance
    the type of file you were working on,
    machine specs, such as total installed RAM, scratch file HDs, total available HD space, video card specs, including total VRAM installed,
    what troubleshooting steps you have taken so far,
    what error message(s) you receive,
    if having issues opening raw files also the exact camera make and model that generated them,
    if you're having printing issues, indicate the exact make and model of your printer, paper size, image dimensions in pixels (so many pixels wide by so many pixels high). if going through a RIP, specify that too.
    etc.,
    someone may be able to help you (not necessarily this poster, who is not a Windows user).
    a screen shot of your settings or of the image could be very helpful too.
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • Photoshop CC: Have a template that I moved image into.  Image is too small.  How do I resize the image while in the template?  Or must I go to original image file and resize there again and again until I get the right fit?

    I have a template that I am able to plug different pictures into at different times.  The problem is that when I plug an image into that template, I find that the image is either too big or too small.  Is there a way to plug the image into the template and resize the image (and not the template itself) OR will I have to go to the file with the original image and resize it there and then try to plug it in to the template to see if it fits------and if it does not fit, go back to the original file with the image and resize it again and see if that fits---and so on and so on...........?  I have tried the" image size" option but it's hit or miss------mostly miss!
    Thanks!

    Read up on Smart Objects. It looks like you have no idea as to how to create and use them.
    Jut create a Smart Object from the layer containing whatever it image it is that you are "plugging into your template".  But you do need to learn the application at its most basic levels.
    Photoshop is a professional level application that makes no apologies for its very long and steep learning curve.  You cannot learn Photoshop in a forum, one question at a time.
    Or is it possible that you don't even have Photoshop proper but the stripped-down Photoshop Elements?"
    If the latter is the case, you're in the wrong forum.  This is not the Elements forum.
    Here's the link to the forum you would want if you're working in Elements.:
    https://forums.adobe.com/community/photoshop_elements/content
    If you do have Photoshop proper, please provide the exact version number of that application and of your OS.
    (edited for clarification)

  • How can I add .PNG images to templates without getting a white background?

    I'm having problems with a image field when I add a .png image which doesnt have a background it is showing up with a white background. Is it possible to use images in templates so you can overlay them on something else?

    Hi, You can do this but only with a PNG with a palette of 256 colors (maybe GIF as well) so doesn't get a lot of use, good enough for image buttons and the like, but might be ok for your image as it does not have that many colors. Otherwise radzmar's suggestion would be the better approach.
    This is the link I was tring to find (in your previous thread) that tells how to do it using GIMP (a free image editor), http://smartforms.business.gov.au/DeveloperResources/Pages/HintsandTips.aspx ,  but the one I have uploaded here comes from photoshop (in photoshop it is called an indexed png).
    Regards
    Bruce
    p.s. I'm always on the lookout for a new beer to try if this one you would recommend? 3% and all.

  • How to load a PNG image from a location in CF card

    Hi,
    I am using WTK 2.5.2. I wanted to load a PNG image to Image object. The image is loaded when I have it in the classes folder. But I want to select different image from a different location. If I try to open an Image to createImage(String) from a different location, I get IOException.
    Please help me.
    Thanks
    Deekshit M

    I got the answer, I should be using Image.createImage(InputStream) API. It works fine.
    Thanks
    DM

  • Use SVGAnimator to display a SVG with xlink PNG image

    I tried the M2GDemo and it works without this image part
    SVGAnimator animator =
    SVGAnimator.createAnimator( image );
    // add our custom event listener
    animator.setSVGEventListener(
    new CustomEventListener( image, animator ) );
    // get the Canvas for this player: requires a cast
    Canvas canvas = (Canvas) animator.getTargetComponent();
    I modify the requestResource a bit to get Image from root1.
    public void requestResource(ScalableImage inImage, String inURI)
         int pos = inURI.indexOf(":");
         if (pos >0){
              inURI = inURI.substring(pos);
         inURI = "file:///root1/"+inURI;
    try
    Connector.openInputStream(inURI);
    catch ( IOException ioe )
    ioe.printStackTrace();
    <image x='90.0' y='69.46001' width='222.7' height='152.25' xlink:href='myImage.png'/>
    Now I stuck with the error below.
    Using Pisces Renderer (native version)
    loadStarting : true
    loadComplete : true
    loadingFailed: false
    loadStarting : true
    loadComplete : true
    loadingFailed: falsejava.lang.ArrayIndexOutOfBoundsException
         at com.sun.perseus.model.Text.applyXMLSpaceDefault(+86)
         at com.sun.perseus.model.Text.applyXMLSpace(+37)
         at com.sun.perseus.model.Text.layoutText(+70)
         at com.sun.perseus.model.Text.checkLayout(+13)
         at com.sun.perseus.model.Text.paint(+12)
         at com.sun.perseus.model.ModelNode.paint(+9)
         at com.sun.perseus.model.StructureNode.paint(+16)
         at com.sun.perseus.model.ModelNode.paint(+9)
         at com.sun.perseus.model.StructureNode.paint(+16)
         at com.sun.perseus.model.ModelNode.paint(+9)
         at com.sun.perseus.model.DocumentNode.paint(+16)
         at com.sun.perseus.model.SimpleCanvasManager.fullPaint(+108)
         at com.sun.perseus.model.SimpleCanvasManager.updateCanvas(+18)
         at com.sun.perseus.midp.SVGCanvas$1.run(+87)
         at com.sun.perseus.util.RunnableQueue.run(+271)
    RunnableQueue terminatingUncaught exception java/lang/ArrayIndexOutOfBoundsException.
    Bascially all I need is a viewer to display SVG with xlink to PNG image without the use or tinyline. If I want to get the PNG image from http, what should I do?
    Any response will be greatly appreciated.

    > This technique is really just using a BEE, there is
    > documentation on the BEE concept in the online help
    > and Brian McKellar has a weblog on the subject as
    > well.
    OK, I think I get the idea. Will check the stuff. Thanks.
    > Notice the strange D at the end of the line. This
    > isn't in the original posting. Perhaps this is just
    > bad cut and paste.
    Just bad copy paste. Yes.
    > You say that this isn't working for you - but you
    > don't describe the results. Is there an error?  Does
    > it render anything in the button at all?  Does the
    > raw HTML get rendered?
    I just saw coding in the button.
    > You want to make sure that the
    > text doesn't get encoded - which would cause the HTML
    > source to display instead. On the htmlb:button you
    > will want to set the attribute encode = FALSE.
    OK, that was right on spot. This shows me the Icon! Strike!
    > Also I am not sure that you can also pass in text
    > with the image like that.  You might have to create a
    > full BEE and add the image and a textView separately
    > into the BEE.  Then render the entire BEE to a string.
    I'll check the documentation on BEE and give it a try.
    Thanks for your answer.
    Thats a starting point for me.
    Alf

  • Help needed in Drag and Drop and  resizing of image icons

    Hi all,
    I'm doing a project on Drag and Drop and resizing of image icons.
    There is one DragContainer in which i have loaded the image icons and i want to drop these image icons on to the DropContainer.
    After Dropping these icons on to the DropContainer i need to resize them.
    I have used the Rectangle object in resizing.
    The problem now i'm facing is when i drag, drop and resize an image icon and when i try to drag, drop a second image icon the first image icon gets erased.
    can any one help me in fixing this error.
    if u want i can provide the source code.
    thanks in advance
    murali

    the major restrictions in its implemented only in
    jdk1.1.Why!

Maybe you are looking for

  • XSLT mapping sometimes throw ArrayOutOfBoundsException

    Hi I have a simple XSLT mapping that is supposed to group elements based on an identificator (number). My issue is that when testing message through PI, it sometimes throw ArrayOutOfBoundsException and sometimes not, with the same records involved..!

  • Re: Adobe Flash Player 15.0 r0 Has Stopped Working

    Thanks for your assistance  ... I will try any good suggestions you have. Please note the following: I really don't understand the previous information provided by "samclean"  ..... I did not submit an error report that generated those diagnosis. I g

  • Can TM backup on wireless network HDD?

    Hi guys I have a router Zyxel conected to AEBS. My macbook pro can acess internet and all network computers wirelesly including one network HDD. What I would like to do is. Use my macbook pro + G4 powerbook back up wirelesly on the same Network HDD.

  • French characters insertion not working fine

    Hi all, I'm using Oracle database 10.2.0.3, i migrate the database from 9i. My problem is in my new database version i mean 10g when i'm inserting french characters like "éèà" in my database it's not working fine, i check to my old database (9i) it's

  • What INCLUDE calculates total Weight on Outbound Delivery?

    Hi, We have a bug in our Outbound Delivery "total weight" calc on the Item Overview tab. I need to locate the logic that calculates this value. Can someone please tell me the Include or Module where I might find the code that calculates this. The Del