need to re-size an external photo in WebI

Can I re-size a photo in WebI, that displays inside a report?

The photo is coming from Blackboard (Higher Ed Software), and it displays with this object:
‘https://my_college.blackboard.com/bbcswebdav/orgs/DEPTCSERV/Studn%20Photos/’ || STUDENT.STUDENT_INFO.CLYE_CLASS_APPLIED_FOR || ‘/M’ || STUDENT.STUDENT_INFO.Id || ‘.jpg’

(Then the cell property is Image URL)

Works great but it’s sized around 600 x 800, I’d like to cut that by 1/2 or by 2/3.

We also have a photo link, which is
‘<a href="https://my_college.blackboard.com/bbcswebdav/orgs/DEPTCSERV/Studn%20Photos/’ || STUDENT.STUDENT_INFO.CLYE_CLASS_APPLIED_FOR || ‘/M’ || STUDENT.STUDENT_INFO.Id || ‘.jpg"’||‘target="_blank">Photo’

This opens another tab with the photo.

it seems like height and width could be added here, but this opens a new tab - I want the picture re-sized in WebI


gadsden_consulting :us: (BOB member since 2015-06-18)

change the display to stretch and size the cell (format cell -> appearance)


erik.stenson :us: (BOB member since 2012-07-30)

I need to re-size it, not stretch it. It comes in pretty big as I said (~600 x 800), It’s like to be be 1/2 that size.

Stretching it or shrinking it doesn’t re-size it, it only crops it.


gadsden_consulting :us: (BOB member since 2015-06-18)

ah yes I see this method could be used to enlarge it not shrink it. I don’t think that there is a way to do this in WebI


erik.stenson :us: (BOB member since 2012-07-30)

To shrink the size of the report, you’d need something else - an 800x600 image will still be its original file size, no matter how much you shrink it.

You’d need some sort of tool like Irfan that provides batch images shrinking to get the 800x600 images down to, say, 200x150

Mark,

it seems like there ought to be a way … can’t you CSS style reports? The re-sizing function is one of the basics of HTML / CSS.

I suppose we can look at a way of reproducing the photos at say 33%, but that’s outside of WebI.

but thanks!


gadsden_consulting :us: (BOB member since 2015-06-18)

If you shrink the dimensions, you won’t automatically shrink the file size (I remember first hitting that problem 15 years ago in 5.1.6!)

A large logo will still have the file size of a large logo, even if you present it as 160x120 rather than 800x600.

In terms of CSS, you might be able to use what’s in here:

I haven’t got time to experiment myself.

Mark P, thanks!

I’ll look at the link and do my own experimenting.


gadsden_consulting :us: (BOB member since 2015-06-18)

I have a simple example, and did “View page source”, attached.

So couldn’t we have some sort of template with CSS that re-sizes the image? There is only one image we display - the student’s photo.
Business Objects report HTML.txt (4.0 KB)


gadsden_consulting :us: (BOB member since 2015-06-18)