Ramani A.V 2 HEAD OF CS & SRMV CAS, Coimbatore, Tamilnadu, India

Similar documents
REVIEW ON IMAGE COMPRESSION TECHNIQUES AND ADVANTAGES OF IMAGE COMPRESSION

JPEG Compression Using MATLAB

Web Design, 5 th Edition

INFS 2150 / 7150 Intro to Web Development / HTML Programming

1.6 Graphics Packages

Advanced High Graphics

IMAGE COMPRESSION USING FOURIER TRANSFORMS

Welcome. Web Authoring: HTML - Advanced Topics & Photo Optimisation (Level 3) Richard Hey & Barny Baggs

HTML/XML. XHTML Authoring

Website Quality Evaluation Based on Search Engine Queries using Web Rank Position Algorithm (WRPA)

Graphics File Formats

VC 12/13 T16 Video Compression

A QUAD-TREE DECOMPOSITION APPROACH TO CARTOON IMAGE COMPRESSION. Yi-Chen Tsai, Ming-Sui Lee, Meiyin Shen and C.-C. Jay Kuo

Working with Images and Multimedia

GIMP GETTING STARTED

Image Formats. Ioannis Rekleitis

8/19/2018. Web Development & Design Foundations with HTML5. Learning Objectives (1 of 2) Learning Objectives (2 of 2) Horizontal Rule Element

M4-R4: INTRODUCTION TO MULTIMEDIA (JAN 2019) DURATION: 03 Hrs

1/27/2013. Outline. Adding images to your site. Images and Objects INTRODUCTION TO WEB DEVELOPMENT AND HTML

Comparison of Image Compression Behaviour for WhatsApp, Viber and LINE

Pictures. Getting Started 1

255, 255, 0 0, 255, 255 XHTML:

Image Types Vector vs. Raster

Unit 8. Lesson 8.1. Microsoft FrontPage. Introduction. Microsoft FrontPage-1. Microsoft FrontPage

11/5/16 WEB DESIGN. Branding Fall 2016

Image coding and compression

Data Representation From 0s and 1s to images CPSC 101

Understanding file formats

DigiPoints Volume 1. Student Workbook. Module 8 Digital Compression

BRAD MARSHALL BECOME AN SVG SUPERHERO

A Methodology to Detect Most Effective Compression Technique Based on Time Complexity Cloud Migration for High Image Data Load

CS101 Lecture 12: Image Compression. What You ll Learn Today

Web graphics. Introduction

Perfect Student Midterm Exam March 20, 2007 Student ID: 9999 Exam: 7434 CS-081/Vickery Page 1 of 5

IMAGE COMPRESSION USING HYBRID QUANTIZATION METHOD IN JPEG

A New Compression Method Strictly for English Textual Data

SPEED STEP PAINTER. SPEED STEP IT solutions for fashion companies GmbH Raiffeisenstrasse 5f Rodgau, Germany

Stereo Image Compression

IMAGE COMPRESSION TECHNIQUES

Standard File Formats

Chapter 5 Images. Presented by Thomas Powell. Slides adopted from HTML & XHTML: The Complete Reference, 4th Edition 2003 Thomas A.

Video Compression System for Online Usage Using DCT 1 S.B. Midhun Kumar, 2 Mr.A.Jayakumar M.E 1 UG Student, 2 Associate Professor

Multimedia Content. Web Architecture and Information Management [./] Spring 2009 INFO (CCN 42509) Contents. Erik Wilde, UC Berkeley School of

DjVu Technology Primer

Chapter 12 Creating Web Pages

More HTML. Images and links. Tables and lists. <h1>running in the family</h1> <h2>tonight 9pm BBC One</h2>

A COMPRESSION TECHNIQUES IN DIGITAL IMAGE PROCESSING - REVIEW

IMMERSIVE TERMS AND DEFINITIONS

color bit depth dithered

GRAPHIC FILE FORMATS / SOFTWARE SELECTION / SOFTWARE COMPATIBILITY

Index. Smart Image Processor 2 Manual DMXzone.com

MULTIMEDIA AND CODING

Final Study Guide Arts & Communications

Professor Laurence S. Dooley. School of Computing and Communications Milton Keynes, UK

How to use the open-access scanners 1. Basic instructions (pg 2) 2. How to scan a document and perform OCR (pg 3 7) 3. How to scan a document and

Chapter 2 Creating and Editing a Web Page

Feedback: Twitter: #TechTalk #wpo #io2011. Make The Web Faster. Joshua Marantz Richard Rabbat Håkon Wium Lie.

Web Development & Design Foundations with XHTML. Chapter 4 Key Concepts

Bytes are read Right to Left, so = 0x3412, = 0x

GUIDELINES FOR WEB SITE DESIGN CHAPTER 10

Page Content. Inserting Text To add text to your document, you can type the text directly or use Cut or Copy and Paste or Paste Special.

A Image Comparative Study using DCT, Fast Fourier, Wavelet Transforms and Huffman Algorithm

Differential Compression and Optimal Caching Methods for Content-Based Image Search Systems

INTERNATIONAL JOURNAL OF PURE AND APPLIED RESEARCH IN ENGINEERING AND TECHNOLOGY

University of Pittsburgh Communications Services. Basic Training Manual Drupal 7

Interactive Multimedia. Multimedia and the World Wide Web

BEST BUDDIES DESIGN GUIDELINES. Advertising & General Applications

Lesson 7 Working with Graphics

DIS: Design and imaging software

A Novel Image Compression Technique using Simple Arithmetic Addition

Constructing Websites toward High Ranking Using Search Engine Optimization SEO

Multimedia Systems. Part 4. Mahdi Vasighi

Part 1 of 4. MARCH

Common File Formats. Need a standard to store images Raster data Photos Synthetic renderings. Vector Graphic Illustrations Fonts

This is not yellow. Image Files - Center for Graphics and Geometric Computing, Technion 2

ALL COLORS HAVE DIFFERENT EFFECTS ON IMAGE SIZE A HELPING APPROACH FOR IMAGE OPTIMIZATION

Chapter 2 The Internet and World Wide Web

Compression and Decompression of Virtual Disk Using Deduplication

Lecture 19 Media Formats

Computing Basics. Business Education & Computer Science Mr. Dukes

3Q WHITEPAPER SERIES. Page Speed Optimization: Load First or Finish Last. Maty Rice SEO Account Manager, 3Q Digital

So, what is data compression, and why do we need it?

Preview from Notesale.co.uk Page 2 of 88

III-6Exporting Graphics (Windows)

Fingerprint Image Compression

EXPORTING SAS OUTPUT ONTO THE WORLD WIDE WEB

Optimization of Bit Rate in Medical Image Compression

Digital Graphics Primer

Different File Types and their Use

Introduction to Computer Science (I1100) Data Storage

Overview. Importance of Design. Lost in hyperspace. Site Organisation. Designing Structure. Lecture 14 Web Usability

Multimedia on the Web

IMAGE COMPRESSION TECHNIQUES

Creative Weight Best Practices

Unit 2 Digital Information. Chapter 1 Study Guide

TR 1288 Specifications for PDF & XML format Page 1 of 7

CMPT 165 Graphics Part 2. Nov 3 rd, 2015

Histogram Based Block Classification Scheme of Compound Images: A Hybrid Extension

Roll No. :... Invigilator's Signature : GRAPHICS AND MULTIMEDIA. Time Allotted : 3 Hours Full Marks : 70

Image Compression. -The idea is to remove redundant data from the image (i.e., data which do not affect image quality significantly)

Transcription:

Volume 7, Issue 2, February 2017 ISSN: 2277 128X International Journal of Advanced Research in Computer Science and Software Engineering Research Paper Available online at: www.ijarcsse.com Website Quality Evaluation based On Image Compression Techniques Algorithm Chandran.M 1 MCA Department & SRMV CAS, Coimbatore, Tamilnadu, India DOI: 10.23956/ijarcsse/V7I2/0146 Ramani A.V 2 HEAD OF CS & SRMV CAS, Coimbatore, Tamilnadu, India Abstract-Internet is a way of presenting information knowledge the webpages plays a vital role in delivering information and performing to the users. The information and performing delivered by the webpages should not be delayed and should be qualitative. ie. The performance of webpages should be good. Webpage performance can get degraded by many numbers of factors. One such factor is loading of images in the webpages. Image consumes more loading time in webpage and may degrade the performance of the webpage. In order to avoid the degradation of webpage and to improve the performance, this research work implements the concept of optimization of images. Images can be optimized using several factors such as compression, choosing right image formats, optimizing the CSS etc. This research work concentrates on choosing the right image formats. Different image formats have been analyzed and tested in the SRKVCAS webpages. Based on the analysis, the suitable image format is suggested to be get used in the webpage to improve the performance. Keywords: Image, CSS, Image Compression and Lossless I. INTRODUCTION As images continues to be the largest part of webpage content, it is critically important for web developers to take aggressive control of the image sizes and quality in order to deliver a fastest loading and responsive site for the users. This research provides the technique to understand and properly address the image compression issues for the webpages. The Worldwide Web has grown from a few thousand pages in 1993 to more than two billion pages at present. Due to this.explosion in size, web search engines are becoming increasingly important as the primary means of locating relevant information. Such search engines rely on massive collections of web pages that are acquired with the help of web crawlers, which traverse the web by following hyperlinks and storing the downloaded pages in a large database that is later indexed for efficient execution of user queries, design and implementation of a high performance Distributed Web Crawler. Developing a great website requires a lot of work. Besides the development process itself, there are a lot of things to be considered such as SEO, content, optimization etc. The website performance, or more specifically the loading times of your website or web app are essential in order to provide a greater user experience. This research work focuses on improving the web page performance by optimizing the web pages with factors such as format selection, compression, number of images, optimizing CSS and using shorthand coding. The main objective of the image compression is to reduce the irrelevant and redundant image data in order to able to reconstruct the image or transmit data in an efficient form. Digital image [1] is basically array of various pixel values ranging from 0 to 255 where pure black is represented by 0 and pure white is represented by 255. Thus, there are total 256 shades of gray. Basically in images, there are three types of redundancies [2][3] in Order to compress the file size. II. PROBLEM DEFINITION The performance of web page can greatly depend on the images that are used in the web pages. The images in the web pages can be optimized in order to improve the performance. Optimizing of images will reduce website s page loading time, reduce bandwidth and will improve the browsing experience for visitors. [4] As pages are loading quicker, the user search engine ranking can also improve. If an image is optimized, the factor to be noticed is compression. When an image is compressed the image size will reduce and the quality of the image can be affected if it is compressed too much. It is therefore important to get a balance between image quality and image file size. Lazy load is the jquery plugin which delays the loading of images in long webpages. In this technique, images outside of viewport will not be loaded before the user scrolls the webpage to view a particular image. This greatly reduces the initial size of webpages as images are only loaded when the user scrolls down the page. 2017, IJARCSSE All Rights Reserved Page 192

Optimization of Images Images in the webpages add size to it and make the loading time of webpages slow. Image optimization efforts can be made on the images to improve the performance of the web page. Some of the image optimization techniques are listed below: Format Selection Compression Number of Images Optimizing the CSS Use Shorthand Coding Get Rid of Browser Specific CSS Code. III. METHODOLOGIES The Graphics Interchange Format was developed in 1987 at the request of Compuserve, It is a compressed (lossless) format and compresses at a ratio of between 3:1 and 5:1. It is an 8 bit format and supports the maximum number of 256 colors. The two different GIF standards are 87a and 89a (developed in 1987 and 1989). The 89a standard has additional features such as improved interlacing, ability to define one color to be transparent and ability to store multiple images in one file to create basic form of animation.[5] JPG is a standardized image compression technique. JPG is designed for compressing either full color (24 bit) images or gray scale digital images of natural (real world) scenes. JPG works well on photographs, artwork, cartoons and black and white line drawings. JPG handles only still images but MPEG supports for motion pictures as well. JPG is lossy which means that the images you get out of decomposition is not quite identical to what the user originally puts in. The JPG algorithm achieves much of its compression by exploiting known limitation of the human eye. Thus, JPG is intended for compressing images that can be looked at by human eyes. When lossy compression comes to represent real world scenes, no digital image format can retain all the information. From the comparison, it is found that JPG losses less amount of information than GIF.[6] There are three universally supported image formats. They GIF,PNG and JPG Classification of GIF, PNG and JPG based on its characteristics is given in the figure 1. Some browsers also support formats such as webp and JPEGXR. GIF limits the color palette to at most 256 colors, which makes it a poor choice for most images. Further, PNG-8 delivers better compression for images with a small palette. As a result, GIF is the right answer only when animation is required. PNG does not apply any lossy compression algorithms beyond the choice of the size of the color palette. As a result, it will produce the highest quality image, but at a cost of significantly higher file size than other formats.[7] Figure 1: Classification of GIF, PNG and JPG Formats IV. ANALYSIS AND IMPLEMENTATION Image Compression Image compression plays an important role in web page performance. Image compression should be carried out by without affecting the quality of an image. Choose the Right Format JPG is the most popular format and accounts about 46% of images used in web are JPG. JPG creates high quality files in small size. JPG uses lossy compression by discarding some data to achieve smaller images. Formats like PNG and GIF uses lossless compression which does not discards data and results in reduced file size with quality image. In general, JPEG is best suited for complex images such as photos. PNG is best suited for simple or transparent images such as logos. GIF is best suited for animations and simple, low-resolution images. 2017, IJARCSSE All Rights Reserved Page 193

Some of the image formats and its properties are listed in the Table 1. Table 1: Comparison of Image Formats Format Browser Support (as of June 2015) Compression Transparency Animations JPEG All Lossy No No PNG All Lossless Partial No GIF All Lossless Yes Yes WebP Android, Chrome, Opera Both Yes Yes JPEG XR Internet Explorer Both Yes Yes JPEG 2000 Safari Both Yes Yes Image editing tools allows user to adjust the quality level when exporting an image. This is mostly done for convenience, since there is no single factor that controls the overall quality of an image. Tools such as Webpage Test, Page Speed can provide in depth in managing the quality of the images. Image Loading The next focus after image optimization is should be on browser. Image requires memory and processing power to load, too many unoptimized images could strain the user devices. Image Processing for SEO The Image processing system gets all image URLs from Website and processing the Image URL in server.a unique image can generate multiple images has different formats. After the end of conversion its will be checking the size of the images and finally suggest the least size image. The figure given below describes this process. Figure 2: Classification of GIF, PNG and JPG First we pass website URL in this application And this app fetches all images URL s in that website. And loop images one by one and convert images has different format like JPG to BMP, TIFF, PNG etc. The images has generated has different sizes. And finally we suggest the least size for fast rendering in web. Image Processing for SEO Algorithm //Collect image URL string Images[] Get list of image URL / / declare and initialize the variable for store Suggestion Images SuggestionList new list of class for store images as Image,existingsize as integer,existingformat as string,suggestionsize as integer,suggestionformat as string for each (Images[] in item) { format GetFileExtention of item St ReadImage item; lstformats[] initialize the Key value Pair img st convert to image size size of img mem Create new memorystream img has image save has JPEG format jpeg mem length lstformats[] add jpeg string has Key and jpeg variable has Value mem new memorystream 2017, IJARCSSE All Rights Reserved Page 194

img has image save has BMP format bmp mem length lstformats[] add bmp string has Key and bmp variable has Value mem new memorystream img has image save has GIF format gif mem length lstformats[] add gif string has Key and gif variable has Value mem new memorystream img has image save has PNG format png mem length lstformats[] add png string has Key and png variable has Value mem new memorystream img has image save has TIFF format tiff mem length lstformats[] add tiff string has Key and tiff variable has Value low Get minimum Value in lstformats[] Key Get best format on 1stFormats based on low value suggestionlist add image=item,existinfformat =format,existingsize =size,suggestionformat=key.key,suggestionsize=key.value V. RESULTS AND METHODOLOGY Links in the Entered URL The research work is carried out by testing different webpages. Different webpage URLs are entered and the performance has been measured. The status of each webpages is measured and more importantly the time taken to view the particular webpage after its URL got entered in the address bar has also been measured. The URLs of SRMVCAS and its elapsed time are given in the tabel 2. The figure shows the load time of each webpages along with its content and images inside in it. Table 2: Links In The Entered URL S.No Website Links Status Page Load 1 http://srmvcas.org /index.php OK 687 Time ms 2 http://srmvcas.org /aboutus.php OK 751 ms 3 http://srmvcas.org /the_ principal.php OK 667 ms 4 http://srmvcas.org /ug_courses.php OK 764 ms 5 http://srmvcas.org /pg_courses.php OK 674 ms 6 http://srmvcas.org OK 678 ms /research_courses.php Images in the Entered URL The SRMVCAS has number of images used inside it. The images used in the webpages are listed out in the table 3. This figure shows the images used in the webpages along with its image formats. Here JPG images are used. JPG images are lossy but can holds quality. So JPG format are used in SRKVCAS webpages. Metrics like load time and size of each image are measured. The load time is represented in milliseconds and sizes are represented in bytes. It is observed that the load time is based on the image size. If an image size is large then the load time increases and vice versa. Table 3: Images in the Entered URL S.No Image Name Image Type Load Time Image Size(Bytes) 1 Home1 Image/jpge 14 ms 235394 2 Home2 Image/jpge 7 ms 254429 3 Home3 Image/jpge 10 ms 190491 4 S1 Image/jpge 7 ms 456297 5 S2 Image/jpge 6 ms 216704 6 S3 Image/jpge 6 ms 7902 Suggested Image Information in the Entered URL In order to improve the performance by reducing the load time of images, the image format of GIF is used. The JPG formats are replaced with the images of GIF formats. This shows in reduction of image sizes automatically and reduces the loading time and thereby improves the performance of the webpage. 2017, IJARCSSE All Rights Reserved Page 195

Table 4: Suggested Image Information S.No Image Name Image Type Image Size(Bytes) Suggested Format Estimated Size(Bytes) 1 Home1 Image/jpge 235394 gif 130006 2 Home2 Image/jpge 254429 gif 127367 3 Home3 Image/jpge 190491 gif 93963 4 S1 Image/jpge 456297 gif 158598 5 S2 Image/jpge 216704 gif 98794 6 S3 Image/jpge 7902 gif 3176 The Table-4 shows the difference between JPG format and GIF format. The bytes occupied by JPG formats are more when compared to the bytes occupied by the GIF formats. This shows that GIF is more suitable than JPG in terms of file size. Pie Chart and Bar Chart Figure 4 of graph shows the rendering time measured in milliseconds for images, links, styles and scripts used in webpages. Pie chart shows that, the more time is consumed by images with about 51.5% and next with links of about 43.1%. Styles and scripts consumes only less rendering time. The bar chart shows the bytes occupied by images, links, styles and scripts. It is observed from the graph, the bytes occupied by the images are very high and then followed by scripts and less occupied by styles. Figure 4: Pie Chart and Bar Chart for Column Chart and Pie Chart for Images Amount of data consumed by different image formats have been measured. The figure 5 of graph shows the amount of data consumed by JPG, GIF, PNG and other formats. This comparison shows that PNG consumes very large amount of data followed by JPG and then followed by other formats. GIF did not consume any amount of data. So GIF formats are suggested and suited than any other image formats in webpages. 2017, IJARCSSE All Rights Reserved Page 196

The pie chart shows that the GIF format is suggested more of 98.60% than the JPG format. Figure 5: Column Chart and Pie Chart for Images VI. CONCLUSION This research work shows that the performance of a webpage can be improved by using image optimization technique. As image formats are more important in improving performance of webpages, this research concentrates on image formats and implements different types of formats. From the analysis, it is shown here, that GIF format is well suited for webpages as it has consumed only fewer amounts of data and the loading time is to be less. REFERENCES [1].Fu, Y. Q. Shi, and Q. Suo "A generalized Bedford's law for JPEG coefficients and its appl ications in image forensics"'/ EEE transactions Electronic Imaging, Security and Watermarking of Multimedia Contents IX, volume 6505, pages I L I-I L I I, 2007 [2] Hong LIU, Lin-pei ZHAlV, Ying GAO, Wen-ming LI", Jiu-fei ZHOU", "Image Compression Based on BiorthogonalnWavelet Transform", IEEE Proceedings ofiscit 2005. [3] Gopal Lakhani, Modified JPEG Huffman Coding"'/EEE transactions on Image Processing, VOL. I 2,NO.2,February 2003. [4] Article title http: //www.seguetech.com/optimizing-images-for-web., Date accessed: 28/02/2017 [5] Article title http://bcaq.blogspot.in/2014/02/explain-all-types-of-digital-images.html. Date accessed: 28/02/2017. [6] Article title http://info.eps.surrey.ac.uk/faq/standards.html. Date accessed: 28/02/2017. [7] Article title https://developers.google.com/web/fundamentals/performance/optimizing-content-efficiency/i mage-optimization?hl=en. Date accessed: 28/02/2017 2017, IJARCSSE All Rights Reserved Page 197