Manipulation of the size of an image inserted into an Image Field

Hi,
I'm learning LiveCycle Designer ES 8.2 as I go. My apologies for the lengthy post but I'm trying to give you as much background as possible.
I'm are trying to design a form that will allow us to automate data entry (by importing fields into our Access dbase instead doing the data entry by hand).  However, at the end of the day, I also need an electronic pdf file of the same form and a printed paper copy.  Things have been going well until working with the Image Field.
The form is fairly complicated - 4 pages long.  We're collecting extensive data on specific locales (location, what was seen there, who did the work, etc). On one page, three different images (maps) are needed, each one showing different details on the site's location.  [Please note these images will not be imported into the database but must appear in the electronic pdf and on the paper copy.] The people who fill out the forms are expected to do so using Adobe Reader (the form will have extended rights so that they can save the data they enter on the form).  They would then email us the form as an xml file.  Once we receive the form, we have to add some additional information and then the finalized paper copy and electronic pdf would be made.  We have already done this successfully with much simpler forms, none of which have needed Image fields.
Here's my problem - one of the three maps required is a standard 1:50000 scale topographic map which shows things like contour lines and latitude/longitude lines.   For accuracy and comparison reasons, having the standard 1:50000 scale is very important to us, so we can make absolutely certain the submitter has the right location.  If the dot plotted on the map is out just a few millimeters, we're looking at an error that represents 100s of meters on the ground.
The current form exists in Word - we have never had any rules about the image formats used (jpg, gif, etc) or the resolution, as long as the image was clear.  The only rule was that the scale of the topographical map image HAD to be at 1:50000 scale.  This gets very tricky because Word will automatically mess with the physical appearance of the image, based on its resolution.  In most cases, the submitter simply readjusted the image within Word, stretching/resizing it manually until the scale was correct.  Another option was to use an image in the emf file format so that Word didn't readjust the image's appearance based on its resolution. Whatever method they used was fine by us, as long as the scale was correct.
So far, after playing with all the "sizing" options of the Image field, along with embedding or not embedding the file, I do not see any way to control the physical size of the image. On our form, the three image fields are different sizes, with 2 of them being small (~2x3 inches) and the 3rd being large (~7x7 inches). Regardless of the settings I chose for each image field, the program simply resizes the topographic map whatever Image field it was inserted into,  making the same image appear physically smaller or larger at will.  I cannot correct the scale by resizing it, like I can in Word.   Instead, when I try to select the image, all I am asked is if I wish to insert another image.  Inserting an .emf file format into the field doesn't work - it only shows a blank screen instead of the image.
Is there a way for the user to adjust the image's physical size in the form, after inserting it (like they can do in Word)?  Demanding that everyone use a standardized resolution or image format also seems highly unlikely to work - there are too many submitters and too many programs that can be used to make the image (some are making them using GIS programs, others are scanning the bought topographic print).  I'd appreciate any help you can give me on this.  I have had very little luck tracking down discussions on Image fields and how they work best within LiveCycle.  Any comments would be helpful!

Hi,
I have an example here that is intended to demonstrate the difference between Positioned and Flowed subforms: http://assure.ly/i8pSdy.
This shows how you can use a slider to change the dimensions of the image object.
I have extended this to an example with buttons to scale the image: http://assure.ly/i8ZI5Y
This may not be fine enough for your purposes, but it may give you some ideas.
Good luck,
Niall
Assure Dynamics

Similar Messages

  • How to set the size of an image

    hi,
    I have a database which contain an image. now i want to retrieve this image & want to show this image in my jsp page as user's defined size. I have following code. My following code shows the original size of an image. Now i want to see different size of this image. How is this possible? I know control the size of this image after saving this image
    in a file. but i want to control the size of this image without saving this image in a file? IS it possible ? Is there anybody can help me?
    Please help me.
    ResultSet rs = null;
    PreparedStatement ps=null;
         InputStream sImage=null;
         byte[] imagebyte=null;
         String var;
         String name=request.getParameter("RegName") ;
         String image =request.getParameter("ImageFile");
         out.println(name);
         out.println(image);
         out.println();
         ps=con.prepareStatement("insert into t_image (ID, Image) values(?,?);");
           File file =new File(image);
        FileInputStream in = new FileInputStream(file);
        ps.setInt(1,1234);
        ps.setBinaryStream(2,in,(int)file.length());
        ps.execute();  
        rs =stm.executeQuery("select Image from t_image where ID=1234");
        if(rs.next()) {
       imagebyte =rs.getBytes(1);
        response.reset();
        response.setContentType("image/jpeg");
        %>
    <%
    response.getOutputStream().write(imagebyte);
    %>
    <%
        response.flushBuffer();
    %>With regards
    Bina

    hi,
    I have a database which contain an image. now i
    want to retrieve this image & want to show this
    image in my jsp page as user's defined size. I have
    following code. My following code shows the original
    size of an image. Now i want to see different size
    of this image. How is this possible? I know control
    the size of this image after saving this image
    n a file. but i want to control the size of this
    image without saving this image in a file? IS it
    possible ? Is there anybody can help me?This has nothing to do with JDBC; you can only store and retrieve the image you have and there's no image manipulation functions in JDBC (nor should there be).
    I can see 2 options:
    1) serve the image file as is, but in the jsp that writes the html that contains the "<img>" tag that gets it, use the "height" and/or the "width" to scale the suppied image to presentation size you want.
    2) find some image manipulation code that will convert the image into the size you want
    Option 1 will work well if the problem you have is merely refining the image size for presentation. Option 2 is your only coice if it's the image files size itself you really want to change, not just it's appearance on a page.

  • Why is the size of new image constructed using Bufferd Image class less?

    I am trying to compress image losslessly, for start I what I am doing is:
    step1. Access pixels of .jpg image and store in array
    Step2. Reconstruct the image from same array
    What I have found is, that the size of new image constructed is less than the original.
    I am pasting the code below
    public static void main(String[] args) {
    BufferedImage sourceImage = null;
    try {
    sourceImage = ImageIO.read(new File("Sample.jpg"));
    } catch (IOException e) {
    int type = sourceImage.getType();
    int w = sourceImage.getWidth();
    int h = sourceImage.getHeight();
    byte[] pixels = null;
    if (type == BufferedImage.TYPE_3BYTE_BGR) {
    System.out.println("type.3byte.bgr");
    pixels = (byte[]) sourceImage.getData().getDataElements(0, 0, w, h, null);
    try {
    BufferedImage edgesImage = new BufferedImage(w, h, BufferedImage.TYPE_3BYTE_BGR);
    edgesImage.getWritableTile(0, 0).setDataElements(0, 0, w, h, pixels);
    ImageIO.write(edgesImage, "jpg", new File("result.jpg"));
    } catch (IOException e) {
    Please could any one explain me why is it so?

    I am working on a IEEE paper where in I am supposed to achieve a better compression ratios as compared to current JPEG standards. So if only loading and displaying the image results in size reduction and quality too, how do I go ahead with my algorithmI suggest you:
    (a) start with images in an uncompressed format such as TIFF, rather than a format which is already lossy (JPEG)
    (b) acquire some basic knowledge about JPEG before you attempt to improve on it, and
    (c) learn to quote accurately. Otherwise your paper will be refereed out of existence. I didn't say anything about 'loading and displaying the image resulting in size reduction and quality too'. I said 'loading and storing'; and 'change the contents', not 'size reduction and quality too'.
    A JPEG load and store operation does not result in a bitwise identical file. Frankly you should already know that.

  • Determining the size of an Image

    I am running Pages 5.2 and I have a document with a whole load of images taken from photos. Usually I shrink the original images to keep the document size manageable but I forgot on some but I don't know which. Is there a way I can determine the size of individual images in the document ?

    In Pages v5.2, there does not appear any means to assess the image storage size, but File > Reduce File Size will offer a prompt stating an amount it can reduce the current selected image.
    Another approach is to select the image, and press command+C to put it on the clipboard. Launch Preview, ignore the open dialog, and choose File > New from Clipboard. You now have two choices to assess image size: 1) Use the Inspector (General Info panel) from the toolbar, or 2) Menu > Tools > Adjust Size...

  • Increasing the size of an image

    I have a BufferedImage and I want to double the size of this image.
    I have used following code for that but this approach distorts results.
    public static BufferedImage enlarge(BufferedImage image) {
    int w = 2 * image.getWidth();
    int h = 2 * image.getHeight();
    BufferedImage enlargedImage =
    new BufferedImage(w, h, image.getType());
    for (int y=0; y < h; ++y)
    for (int x=0; x < w; ++x)
    enlargedImage.setRGB(x, y, image.getRGB(x/n, y/n));
    return enlargedImage;
    Is there some build in method in Java that uses Interpolation to increase size of an Image.
    best wishes
    M3

    Consider using AffineTransform or simply scale() method of graphics.
    For instance check this post http://www.javalobby.org/java/forums/t19387.html
    Choosing good interpolation hints may imrpove quality of result
    see docs for RenderingHints.KEY_INTERPOLATION and java.net forums.

  • For best performance what's the size of an image to be stored in database?

    Hi all,
    can any one tell me..for best performance what's the size of an image to be stored in database?
    is it <256kb  or >256mb?
    when i google  we can store image as varbinary(max) and its limit upto 2GB..
    Can anyone exlain it?
    is it performance wise better..
    thanx in advance..
    lucky

    Your question does not seem apparently meaningful. If you need to store a 5MB image in the database, you store a 5MB image, not a 200 KB image or a 200 MB image. Business needs always trumph performance.
    Not surprisingly, the larger the image the more resources it takes to read and write it.
    What is a meaningful question is whether you should use the FILESTREAM feature or not. The cut-off limit here is usually given as 1MB. That is, if your images typically exceeds 1MB you should use FILESTREAM and access the data through Win32
    API. If your images are generally below this size, you should stick to regular T-SQL.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • How can I set the size of an image in java?

    How can I set the size of an image in java? I have to choose the width and height of image...thanks to everybody...sorry for my english :-)

    Hi 43477
    Can you provide more details, do you want to setsize to display an image on a screen of when saving image etc?
    PS.
    There is a good invention called googlegoogle is good, but sometimes it's better to use more specific search, there is a search field avove on this page :)

  • How to decrease the size of an image (CS5)?

    I need help with how to reduce the size of an image to fit various smaller sizes.  E.g. 135 x 380mm, 254 x254mm etc mounted/matted. Therefore, the image must be made smaller than these sizes without losing quality and any part of the image. I am unable to crop to achieve these sizes since I need the full image. These photos were taken by using a Canon D450 camera and in both RAW & JPEG.
    Your help is much appreciated.

    You may want to use Image > Image size... and dial in the sizes you want.
    Set your units to mm in the dialog. Turn off resample and you can adjust the final print size.
    What I am showing you is called "scaling", changing the print size without throwing out pixels as resample would do. Your image is  intact. This is from CS6, but it should be about the same in CS5.
    Gene

  • My Mac G-4 OS X will not image an icon of the zip disk with I inserted into my computer's built-in Zip Drive, therefore I can not remove the zip disk from my computer.  What can I do?

    My Mac G-4 OS X will not image an icon of the zip disk with I inserted into my computer's built-in Zip Drive, therefore I can not remove the zip disk from my computer.  What can I do?

    Thanks Old Comm Guy, BD Aquam and Texas Mac Man for youradvice and reply to my question
    and problem with my Zip Drive.  However:
        1.  Depressing mouse buttonon start up did not eject the zip disk.
        2.  To examine front of zipdrive, I had to remove many screws and several plastic case
             coverings.  Upon doing thatI discovered that, unfortunately, there is no whole in front
              of mybuilt-in zip hardware drive for me to insert a paper clip to manually eject zipdisk.
          3.  I went to the Utilities folder in myMac OS X Application folder, but I could not find
               theiomega zip drive in there.
    Also, I did go into my "9" System folder and thento the Extensions folder within it and did find an icon of an
    Iomega Driver. When double clicking on it a window came upstating I was opening the application
    "ColorSync Extension" for thefirst time, and asking if I was sure I wanted to open this application.
    Uponclicking open nothing happened - nothing opened.
    I also went into the "System X" folder>Libraryfolder>Extension folder>IomegaSAM.ket icon and double
    clicked on it and asmall window opened stating "Compiling file List", however nothingopened it just
    continued to compile, so I closed it.
    Within my Mac OS X HD>  Applications>Iomega folder>Iomega Tools.app a smallwindow opened up
    with several options (Erase, Protect, Disk Info and DriveInfo). Clicking on the Drive Info a message says:
    "No Iomega Drives or noIomega Driver found.  Therefore, Ihave gone to Mac, Iomega and other websites
    trying to find a Driver for thebuilt-in Zip Drive in my Mac G-4 OS X 10.4.11, but have not really found anythat work.
    CAN ANYONE TELL ME IF THERE IS A WEBSITE WHERE I CANDOWNLOAD A NEW DRIVER FOR MY ZIP DRIVE?
    Thanks,     Peterfromcrystallake

  • Does anyone know why video image in events section has a certain dimension and instead when I import same video in a clip, the size of video image is minor? Thanks for help

    Does anyone know why video image in events section has a certain dimension and instead when I import same video in a clip, the size of video image is minor? Thanks for help

    This may depend on your chosen encoding options for the Mails (MIME vs. Base64 or similar) and/or the mails being reduced in size and sliced up server side. Apple (and Google) do stuff like recompressing images when viewing mails on mobile devices from an Apple ID or Gmail account... You have to turn it off in their web frontends....
    Mylenium

  • Where can you see the size of your image?

    Hi all,
    For contests and such, I need to know the size of my images. I don't know where the size--in inches--displays in LR, so I always have to export to Photoshop to see what the size of the image is at different resolutions (240ppi, 300ppi, 600ppi). There must be a way, can anyone fill me in?
    Thanks!
    Alec

    You wrote:
    "images are by and large worthless in the real world unless they are printed in some fashion which requires inches"
    Yes, but that does not mean that images on your computer (your hard drive) have a dimension in inches. The size in inches is determined on output for printing and varies according to the resolution that you choose for the print. For instance if you have an image with a pixel size of 2000 x 3000 pixels - if you print it at a resolution of 300 ppi / dpi the image size in inches will be 6.66" x 10". If you print it with a resolutin of 200 ppi / dpi the size in inches will be 10" x 15"; and if you print it with a resolution of 100 ppi / dpi the size will be 20" x 30". Of course, a print resolution of 100 ppi / dpi is only theoretical, because the quality of the print will be awful, and if you want to print an image of 2000 x 3000 ppi in a size of 20' x 30' you have to upsample (enlarge) it first.
    So size of an image in inches is detyermind by the formula: pixel amount / resolution in ppi/dpi.
    ppi = pixels per inch - ppi is used when we talk about an image on screen
    dpi = dots per inch - dpi is used when we talk about print output.
    You also wrote:
    "LR printing is fine for snapshots but insufficient for printing from large format printers for fine art."
    Why, do you say that? Printing from LR is not substantially different than printing from Photoshop. LR gives you the same printing options as does Photoshop.
    I suggest you have a second look at the Print Module in LR.
    WW

  • How do I figure out the size of an image in my iPhoto. How do I know if it is Kilobytes or megabytes. I assume Megabytes are larger than kilobytes and gigabytes are largest.

    How do I figure out the size of an image in my iPhoto. Soe applications require a certain size and I have no way of knowing what they are.
    Please confirm that Kilobytes are smaller than megabytes and gigabytes are the largest.

    You're correct, Kilobytes are smaller than megabytes and gigabytes are the largest.
    When you attach the images to an email, look on the bottom line for the total size of the email.  You can also change the image from Actual size to medium or small.

  • How can I get a count at the same time I am inserting into another table

    I have a requirement where I have to find out the count(number of records inserted into another table) at the same time I insert into the table:
    Like
    I am copying records from table B to A, while doing this I have to find out how many records I've inserted since I need this count in subsequent steps
    INSERT INTO A
    SELECT * FROM B
    how can I store the count into any variable while doing above statement
    Please advice

    No, Warren that doesn't work!
    SQL> set serveroutput on
    SQL> declare
      2     vCtr  number := 0;
      3  begin
      4     insert into emp2
      5     select * from emp;
      6
      7     select count(*)
      8       into vCtr
      9       from emp2;
    10
    11     dbms_output.put_line('rows created '||to_char(vCtr));
    12  end;
    13  /
    rows created 15
    PL/SQL procedure successfully completed.
    SQL> declare
      2     vCtr  number := 0;
      3  begin
      4     insert into emp2
      5     select * from emp;
      6
      7     select count(*)
      8       into vCtr
      9       from emp2;
    10
    11     dbms_output.put_line('rows created '||to_char(vCtr));
    12  end;
    13  /
    rows created 30
    PL/SQL procedure successfully completed.
    SQL>

  • Get the data  from excel and insert into the database

    I want to read the data from excel file, get the data from excel and insert into the database.

    You can use the Apache POI HSSF API to read data from Excel files and you can use the Sun JDBC API to insert data in database.
    This has nothing to do with JSP/JSTL.

  • Image size not showing when inserting into html

    I have Dreamweaver CS3
    I noticed after inserting a bunch of images using the html pane I noticed that the image sizes where not showing in the html, i.e
    <li><img src="pics/customerphoto/thmbs/100_0223_thmb.JPG" alt="guitar rack" /></li>
    however, when I drag them in to the preview pane (which I prefer not to do), the sizes are referenced, i.e
    <li><img src="pics/customerphoto/thmbs/001_thmb.jpg" width="140" height="94" /></li>
    I prefer to have the sizes included in the html and certainly don't want to manually add them. Is there a way to do this through the html pane?
    Thanks

    Right Click on picture.  Hit Reset Size.  The native height and width will then show in the image properties pane.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

Maybe you are looking for

  • Adobe CS6 Apps Shuts Down After Installing Creative Cloud.

    I can't start my Photoshop, Illustrator or InDesign CS6 anymore, it just shuts down as soon as it's done loading, without any errors. Only Bridge CS6 will start. I tried launching with Ctrl+Alt and Ctrl+Alt+Shift but it did not work. Then I tried uni

  • Recently I have not been able to post comments and other related issues.

    On some websites like Reddit.com I am usually no longer able to post in comment boxes. I can type my comment in the box, but hitting save clears the box and no comment is posted (oddly, i noticed that the comment ends up at the end of the url). Or us

  • Synchronous messages for SOAP adapter.

    Hi All, I wanna expose an interface in XI as a WebService.My requirement is to invoke a webservice which takes some input and hands it over to a DataBase and gets something from it(DB) and hands it over to the application which had called this WebSer

  • Best Practices for Forms within Site Studio Templates

    Last summer our university redesigned our entire website using site studio. We only use the content server for the SiteStudio add on. During the redesign, we found that it wasn't clear how we were supposed to migrate our current web forms (applicatio

  • XSL Mapping Query

    Dear Collegues, i am  doing  Simple xsl transformation , source xml <?xml version="1.0" encoding="UTF-8"?> <!Sample XML file generated by XMLSpy v2006 sp2 U (http://www.altova.com)> <ns0:Request xmlns:ns0="http://sap.com/xi/demo/httpxsd">      <CARRI