Image in a Carousel

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
billcross
Posts: 30
Joined: Thu Apr 07, 2016 3:01 am

Image in a Carousel

Post by billcross »

In the carousel examples the image used is a bitmap, is this the only image type that can be used and if not how do you make the carousel use a different type ?
User avatar
Stewart Marshall
Posts: 417
Joined: Thu Nov 05, 2015 5:25 pm

Re: Image in a Carousel

Post by Stewart Marshall »

The Employee images stored in the PSLIMG table are actually PNG files.

The LANSA class Prim_Bmp (http://docs.lansa.com/14/EN/LANSA016/PRIM_BMP.htm) is so called because it was first created in the mid 1990s and bitmaps were all the rage. JPG didn't really become popular until the late 90s. Rather than making new classes for emerging image types such as Prim_JPG, Prim_PNG and so on, the class was extended to support different types.

You can use Prim_BMP to manage BMP, JPG and PNG files.

Do you have a particular file type that's not covered?


Regards
Stewart Marshall

Independent IT Consultant
www.marshallfloyd.com.au
billcross
Posts: 30
Joined: Thu Apr 07, 2016 3:01 am

Re: Image in a Carousel

Post by billcross »

So does that mean that a JPG is not being converted to a BMP when the filename for a PRIM_BMP is set to a JPG file ?
User avatar
Stewart Marshall
Posts: 417
Joined: Thu Nov 05, 2015 5:25 pm

Re: Image in a Carousel

Post by Stewart Marshall »

Correct

Whatever you put in a PRIM_BMP will remain exactly as is.
Stewart Marshall

Independent IT Consultant
www.marshallfloyd.com.au
Post Reply