Image size display in a report

Hi EVERYONE,
I have a page where user can upload images. I am storing the images in a BLOB field. I can also display images in a report.
Now my question is, how can i reduce the size of the image when I am displaying them. I dont necessarily want to reduce the file size, I just need to display it in smaller size.
Is this possible
Thanks

Hi user585397,
resizing an image can be done with styling information. Depends on how you render the images on the screen. But let's have a look at the sample application, page with products shows the images. the query for this is:
select p.product_id edit_product
, p.product_id view_product_id
, p.product_name
, p.product_description
, p.category
, p.product_avail
, p.list_price
, '<img src="p?n=' || nvl(i.file_object_id,0) || '" height="50" width="50" />' img
from demo_product_info p
, demo_images i
where p.image_id = i.image_id (+)
Here an html-image-tag is created, specifing the heigth and width for displaying the image. This would be one way of doing so.
another way is like on page 6 of sample application, where the html expression for column formatting is used for displaying an iamge (report region, column image_name)
<div style="text-align:center;">
<img src="p?n=#FILE_OBJECT_ID#" height="50" width="50" />
</div>
Hope this helps a bit
Simon

Similar Messages

  • Image not displaying in pdf report using XSL-FO and using Oracle 11g databa

    Good Afternoon,
    I have created over 15 reports using XSL-fo, with the following syntax to display an image on the pdf:
    fo:block margin-left="0.24cm" margin-right="0.27cm" margin-top="0.0cm" ><fo:external-graphic content-width="scale-to-fit" content-height="scale-to-fit" width="1.73cm" height="1.57cm" >
    <xsl:attribute name="src">'url("http://readiness:7780/i/marforcom_symbol_rpts.gif")'</xsl:attribute></fo:external-graphic>
    </fo:block>
    This syntax works fine when using Oracle 10g, now my database has been upgraded to 11g and my image no longer displays in the reports. I have already upload the image into the database as a workspace image.
    I have tried to point the image @ the image by using url(#WORKSPACE_IMAGE#marforcom_symbol_rpts.gif)
    or <img src ="#IMAGE_PREFIX#marforcom_symbol_rpts.gif")
    and it still doesn't work.
    I have searched this forum trying to come up with a solution that will fix my problem and am unable to.
    Current config: Oracle 11g, using pl/sql gateway.
    I need to know how to point the xsl-fo file to the database, where the image now resides.
    Thanks,
    Mary
    Edited by: MaryM on Jul 25, 2012 3:15 PM
    Edited by: MaryM on Jul 25, 2012 3:51 PM

    Hi,
    I think you need load images to database XDB virtual directory /i/ and then use #IMAGE_PREFIX# substitution.
    This might help to access /i/
    http://www.apex-blog.com/oracle-apex/accessing-i-using-ftp-170.html
    Or use this to load images
    http://oracleinsights.blogspot.fi/2012/05/loading-images-into-oracle-xdb.html
    Regards,
    Jari
    My Blog: http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • Set image size in an Interactive Report

    Hello,
    I am running APEX 4.1 on Oracle 11g.  I am trying to resize images in either an IR or a classic report to be 100px x 100px.  The images are of various sizes, but all larger than the size I want to display.  The images are stored as.jpg images, and I need to access them via URL.  I have this in my select statement:  '<img src=https://aaa.bbbbb.edu:10056/inbpics/' || 'I00' || substr(spriden_id,5,5)|| '.JPG>' pic and it works to display the image, but it displays the image at its full size.  I try adding height and width values to the query, like: '<img src=https://rand.wvnet.edu:10056/inbpics/' || 'I00' || substr(spriden_id,5,5)|| '.JPG height=100 width=100>' pic but the image doesn't display because it adds the height=100 to the end of the path for the image.
    I know I could create thumbnails of the images, but there are several thousand images with more being added constantly, and it would be too much work to try to keep up with.
    Is there a way to set the height and width of an image in a report?
    Thanks,
    Bob

    Hello,
    Change your query to include "class" for images.
    '<img class="img100-100" src=https://aaa.bbbbb.edu:10056/inbpics/' || 'I00' || substr(spriden_id,5,5)|| '.JPG>'
    Now put following CSS in Page HTML Header or Footer.
    <style>img.img100-100 {height: 100px; width: 100px;}</style>
    Regards,
    Hari

  • Change image size dynamically in BIP report

    Can we change the size of image dynamically in bip report. If yes can I get some doccument or samples on it.
    Thanks
    Aj

    I am doing small POC
    I have a rtf template with three sample images on it with three different sizes for 1” by 1” , 3” by 3” and 5” by 5”.
    I have a standard size of 2” by 2” image in my server (Could change size in future depending on req)
    Now when I run the report the template should call the standard image from server and replace the sample images on the rtf and show the the standard image in three different sizes.
    Pls let me know if i am missing something

  • Images are displaying in web report

    Hi.
    I am having a webreport,when i try to open that web report in my gateway it is nit displaying images.
    I am able to 'x' mark in the place of image and unable to do drill down,
    Please advice me on the sane.
    Thanks,
    Guna

    Hi Gunasekhar,
    You might have just added URL in "Choose Screen" window.
    If you add URL here means you should be connected to Internet everytime you execute your Web template or if you have given a path in your system where the image is present, the image should be present in the similar path in other system too to make the Web template execute and to display the image through webb template.
    If you want to display the image everytime you execute your template, you need to upload the image in MIME repository... Tcode : SE80.
    To import a number of MIME objects into the MIME Repository using the MIME Repository Browser:
           1.      Start the browser of the MIME Repository. (SE80)
    The browser is displayed. It overwrites the navigation area (left-hand side).
           2.      Expand the Repository’s hierarchy and select the "BEx" folder.
           3.      Choose Import --> MIME-Objects from the context menu.
           4.      Select a MIME object from the file structure on your local hard disk of your computer.
           5.      Enter the MIME attributes and choose  Save.
    Since the object is imported into the SAP System, the dialog box Create Object Directory Entry is displayed.
           6.      Assign a package to the MIME object and choose  Save.
    Now give the path of the MIME repository in the Menu --> Insert --> Picture... --> Choose Screen --> URL...
    Give below path in the URL space provided there.
    /sap/bw/Mime/BEx/Icons/XXX.jpg
    This uses the image present in BW so you will not get "X" mark whenever you execute your report anywhere.
    Regards,
    KK.

  • Why images are displaying in my report

    Hi All,
    I did the same what is given below link. But my images are not displaying. Instead Displaying image it showing Red crose mark. I am tyring from last 2 hours on this report. Plese help me'
    http://apex.oracle.com/pls/otn/f?p=31517:64:4266884323686795::NOThanks
    Nr

    Hi Gunasekhar,
    You might have just added URL in "Choose Screen" window.
    If you add URL here means you should be connected to Internet everytime you execute your Web template or if you have given a path in your system where the image is present, the image should be present in the similar path in other system too to make the Web template execute and to display the image through webb template.
    If you want to display the image everytime you execute your template, you need to upload the image in MIME repository... Tcode : SE80.
    To import a number of MIME objects into the MIME Repository using the MIME Repository Browser:
           1.      Start the browser of the MIME Repository. (SE80)
    The browser is displayed. It overwrites the navigation area (left-hand side).
           2.      Expand the Repository’s hierarchy and select the "BEx" folder.
           3.      Choose Import --> MIME-Objects from the context menu.
           4.      Select a MIME object from the file structure on your local hard disk of your computer.
           5.      Enter the MIME attributes and choose  Save.
    Since the object is imported into the SAP System, the dialog box Create Object Directory Entry is displayed.
           6.      Assign a package to the MIME object and choose  Save.
    Now give the path of the MIME repository in the Menu --> Insert --> Picture... --> Choose Screen --> URL...
    Give below path in the URL space provided there.
    /sap/bw/Mime/BEx/Icons/XXX.jpg
    This uses the image present in BW so you will not get "X" mark whenever you execute your report anywhere.
    Regards,
    KK.

  • How to find orientation of  image displayed in a report region

    Hello,
    I have Apex 3.1 application showing an image in a report.
    The images are held as files on the web server and filename and description held in a database table
    I can use SQL to retrieve the data into report columns and then HTML expression to display the image as a fixed size as shown below. This works fine for landscape pictures but obviously distorts portrait ones.
    I wanted to check the orientation of the image and adjust width and height if portrait. I was considering using javascript to get image.height and image.width but am not sure how to reference the column and feed back into the HTML expression.
    Is this this the best approach and any help how to reference the column would be appreciated
    Many thanks
    Colin
    The Report Region Source is -
    select      "PHOTOFILE"."FNAME" as "FNAME" ,
    "PHOTOFILE"."ID" as "ID",
    "PHOTOFILE"."DESCRIPTION" as "DESCRIPTION",
    "PHOTOFILE"."FNAME" as "IMG2"
    from      "PHOTOFILE" "PHOTOFILE"
    where id=:P4_IMAGE_IDColumn Attributes IMG2
    Column Formatting
    HTML Expression
    <B><I><U><font face="verdana size="16"><center> #DESCRIPTION# </I></U>
    <font face="verdana size="20">&P4_DESCRIPTION.
    </B></center></font>
    <br/>
    <img src="#IMG2#" width=600 height=400  >

    This example may help you, although a bit different from what you want to achieve:
    http://apex.oracle.com/pls/otn/f?p=31517:212
    The point was:
    1. display image region should be fixed size (300px wide and 300px height)
    2. if the image size is bigger than that, the region should expand automaticaly.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Crystal Report Toolbar images not displaying properly in IE?

    Hi,
    I am using VisualStudio 2012 ,crystal report version 13.0.2000.0 and sp5.
    My problem is that after loading crystal report, toolbar image icons (such as print,export etc) are not showing properly in internet explorer(version ie10). But it is displaying correctly in chrome and firefox.
    What could be problem ?? Any help will be appreciated ..

    See this re. images:
    Visual Studio 2012 Crystal Report not working on Windows Server 2012/ 0x800a1391 &amp;#8211; JavaScript runtime error: &…
    Also, don't forget to do your own searches - search box is in top right corner and simple search strings are best. E.g.; 'Crystal net red x'.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
      Follow us on
    Twitter

  • How do I make a 20 X 30 print with layers of 16 X 20, 12 X 18, 11 X 14, 8 X 12, 8 X 10, 5 X 7 and 4 X 6 of the same image to display the different sizes available to someone?  Using Elements 13 with Windows 8.1

    How do I make a 20 X 30 print with layers of 16 X 20, 12 X 18, 11 X 14, 8 X 12, 8 X 10, 5 X 7 and 4 X 6 of the same image to display the different sizes available to someone?  Using Elements 13 with Windows 8.1
    A senior citizen needs some help.
    Thanks

    Saving each image as different size - is it an option for you?  I would save images with their name as: 20x30.png, 16x20.png etc etc.
    Or explain whether you want these in a webpage  in which case only one image is necessary and different sizes are displayed with good CSS code.  this is question for Dreamweaver forum if this is what you want.

  • Image not displaying properly in pdf report

    Hi,
    I have imported a jpg image on the layout using Reports builder 6i folowing File-Import-Image. Its just a static image. Once i move this report to the server in binary mode and open it from apps(Quote pdf report), the report pdf has the image displayed with half side pitch blank color and the other half side with the actual picture. Can you guide what should i do to display the mage properly.
    Thanks.

    Hi,
    Resolved this problem.
    I had 2 more images in the same report, one jpeg & another one in gif format. I removed the image in gif format, converted it into jpeg format & imported back in report layout. Thus, making all three images in the report in the same format(Jpeg).
    Once I have all images of the same format in a report. It works fine.
    Regards.

  • Recommended image size and dimensions for images displayed on iPad retina?

    What are the recommended dpi image size and dimensions for images designed in DPS app as displayed on an iPad retina?

    Take a look at the following link:
    http://blogs.adobe.com/indesigndocs/2012/03/guidelines-for-creating-folios-for-ipad-3.html

  • Photoshop CC not displaying correct image sizes, among other issues.

    Hey, so I'd like a bit of help here!
    I got my new laptop from the school a couple of weeks ago and photoshop’s been funky ever since I got it. It’s a brand new Macbook, and it's running Photoshop CC.
    First things first, it won’t recognize some of the brushstrokes I make. It will show that I've made them, but they won’t show up in the history panel. I'll have to make another stroke for it to register both of them. (Making undoing things a real pain.) Also, some of the keyboard shortcuts I use won't work in a really similar way. If I go to switch to my brush by pressing b, it occasionally won't register it unless I make an additional brush stroke. This works with all of the other shortcuts I use.
    In addition, file sizes are all kinds of messed up. Here’s the most recent example. The image dimensions are 500px x 135px, 300DPI, 8bit, RGB color. This is at 100% zoom. Those are the settings I normally use, but for some reason it’s showing the file as about half of the size it should be. (Tumblr post for comparison—they are 500px wide.)
    Here’s another example. This one is 1254 x 1201, 300DPI, 8bit, RGB, shown at 100% zoom. The image size is 4.31M. If I go to double the size and change nothing else, the image size jumps up to a whopping 17.2M. I don’t feel like that’s right? I don't remember any other versions of Photoshop having images be that large.
    Maybe it’s my computer settings? Right now I have the resolution set on "best for display," but even if i use the "scaled" option and change sizes, the images are still too small.
    I don't know if I would be able to uninstall and then re-install Photoshop because the school has control over those sorts of things and there are certain programs that you cannot remove. I've tried restarting the program as well as the laptop, but neither of those helped.
    if anyone can help me, I’d really appreciate it! Thank you!

    For generic performance and trouble-shooting advice I’d like to recommend reading these:
    http://helpx.adobe.com/photoshop/kb/optimize-performance-photoshop-cs4-cs5.html
    http://blogs.adobe.com/crawlspace/2012/07/photoshop-basic-troubleshooting-steps-to-fix-mos t-issues.html
    As for the specifics:
    The image size is 4.31M. If I go to double the size and change nothing else, the image size jumps up to a whopping 17.2M.
    If you double the dimensions of an image the area is increased fourfold – so what is the problem there?
    The image dimensions are 500px x 135px, 300DPI, 8bit, RGB color. This is at 100% zoom. Those are the settings I normally use, but for some reason it’s showing the file as about half of the size it should be. (Tumblr post for comparison—they are 500px wide.)
    The introduction or Retina (and other high resolution) displays and browsers actually up-scaling images to accommodate those screen resolutions seems to have confused some users about the concept of pixels.
    Could you please post a full size screenshot on this Forum of the image at View > 100% in Photoshop and on tumblr?

  • Logo image not displayed in PDF preview in HFR Studio reports

    Hello All
    I need to display a logo image on every page of an hfr report. The logo is visible in web-preview and print preview. But when the report is run in PDF preview, logo is not visible.
    A header text box is also used which visible in all formats but not the logo.
    Any pointers will be greatly appreciated.
    Thanks
    Neha

    The image is a jpg image. I have also tried using and image already saved in hfr's repository.
    But still I'm not able get the image in pdf format of report*
    The same image is visible in web-preview and print preview*
    I don't think issue is because of position of image because I tried including the image in an empty report as well.
    The problem is still there with the pdf preview*
    Is there something else that could be done to display the image in pdf preview of report????
    Thanks in advance..
    Neha

  • Image size changes in report

    Post Author: dwtalso
    CA Forum: General
    I'm currently working on a set of reports that has two images embedded on the "cover page". They are embedded as OLE Objects. Very often when I open these report to work on them the images will have shrunk. The "object" is still the same size because the border then it's selected is correct, but the image within the object is shrunk and distorted. Grabbing the object and nudging it on the page resets the image size and it will not change again until I close and reopen the report.
    A little less frequently, I'll open a report and the image will be gone. The object is still there and can be select but there is no image. Nothing restores the image at all at this point.  I have to reinsert the image from it original source or I have to open a different report and, if the image is good, copy the image and paste it into the broken report.
    What am I doing wrong? What do I need to do to get these images to stop doing this?
    Thanks

    CR, being a report writing software, is not that good at manipulating graphics. We rely on the graphics to be in as "usable a format" as possible when passed in to the report engine. Having said that, there are suggestions I've seen on these forums that may be of help. See if using the search at the top right corner (Select "ALL of SAP") will help.
    - Ludek

  • Graphic/Image not displayed with conditional formatting in Report Designer

    We are facing problems with displaying an image in a conditional formatting in the Report Designer. The image itself is in the mime repository and can be displayed in the report if no conditional formatting is used. But if it is used the image doesn't appear in the report.
    Backend setup: SP 8
    Frontend setup: Patch 8, hotfix 2, Revision 95
    Any help is highly appreciated.
    Sven

    Hi,
    I could not reproduce your problem in internal SP8 system. Also images in rows with conditional formatting are displayed.
    Do you get any errors after the execution in the portal?
    Try to use exactly the same image in both rows (drag-and-drop with CTRL key pressed).
    If then your problem still occurs, open a customer message. Describe your problem in detail and write technical name of the report you used.
    Regards, Karol

Maybe you are looking for