Posted on

Make portions of image responsive on your web page

Images are nowadays an important part of web pages. We make our web pages look more attractive and appealing to the users by adding images. We can make it more attractive by adding responsive images. So the big question is how can we make an image responsive.

 

responsive

 

The basic formats of images that we use in our daily life are JPEGs , PNGs , BMPs etc. These formats identify image as one whole entity.So how our code will identify small portions that are there in the image.One thing that we could do is crop our image and break it into smaller images of the portions that we want to make responsive. This will be like our brute force approach to the problem not a smart approach. We might be able to do the task but it will be a very complicated solution and we will have to take care of various corner cases.Smart approach of this problem is using a different less common image format SVG. SVG stands for Scalable Vector Graphics.

technology-1283624_640 We can change our image format into SVG easily either by using an online converter or using an image editing software as Illustrator. The benefit of SVG is that we can see and manipulate parts of our image as code. We can see the code by opening a SVG image into any text editor. Small portions of image is represented as small part of the code which we can manipulate.We can use SVG as HTML attribute. We can directly put the code in HTML code of our web page and manipulate the code by adding on-click and on-hover events to the different parts of the images.

Posted on

Tips and Tricks for Students learning UI5

In this VideoĀ blog, Our CTO Ajay is sharing some of his experiences when he was learning UI5 and D3JS.

 


 

Posted on

SAP HANA Internet of Things (IoT): Raspberry, Arduino Uno, XSJS & SAPUI5: Part 7

 

SAP HANA IoT and The Internet of Things

If you have not seen yet, double check the introduction, first partsecond partthird partfourth partfifth part and sixth part of this SAP HANA IoT series.

Tying loose ends and going live

All the components are now setup individually and all we need to do is to run them synchronously.

We should double check the URLs of the services, that links Raspberry Pi to SAP HANA system, from the sensor side; and SAP HANA system to SAPUI5, from the front end user’s side.

Let’s go for the go-live.

We are going to open the SAPUI5 app screen and start the Java program that reads the serial data and sends it back to HANA:

SAP-HANA-IoT-with-Arduino-and-Raspberry-Pi-3-750x703

 

 

Now, once we start the Java program, we will instantly see the SAPUI5 app starts updating all the sensors data, on near real time basis.

A video result is shown here:

 

 

 

 

 

 

Congratulations we have now a working prototype ready of application leveraging Internet of Things with Raspberry Pi, Arduino Uno, sensors, SAP HANA and SAPUI5.