Your SlideShare is downloading. ×
0
Image Converter
Image Converter
Image Converter
Image Converter
Image Converter
Image Converter
Image Converter
Image Converter
Image Converter
Image Converter
Image Converter
Image Converter
Image Converter
Image Converter
Image Converter
Image Converter
Image Converter
Image Converter
Image Converter
Image Converter
Image Converter
Image Converter
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Image Converter

552

Published on

At a time, it can convert large amount of BMP/PNG/GIF images to JPG/JPEG image format with same dimension and resolution. …

At a time, it can convert large amount of BMP/PNG/GIF images to JPG/JPEG image format with same dimension and resolution.

When bmp images are converted to JPG images, its size extensively reduced but dimension and resolution remains unchanged.

You can convert image to Byte Array & store in Database and whenever require, it can be retrieved.

Published in: Education
1 Comment
0 Likes
Statistics
Notes
  • i need coding source code for image converter for reference my email id is prabha.rocks12@gmail.com
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Be the first to like this

No Downloads
Views
Total Views
552
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
9
Comments
1
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. A Industrial Training Project Report on “IMAGE CONVERTER SOFTWARE” Submitted by :- NAVIN KUMAR ROLL : 09EAXEC075Organization : Class : B. Tech (ECE) - 4rd Year. College : Apex Institute of Engineering & Technology, Jaipur.HCL Infosystems Ltd, Jaipur. Page 1
  • 2. CONTENTS Introduction System and Software Required Working Advantages Applications
  • 3. INTRODUCTION Image Converter Software is made in Java Environment which can run on any operating system. At a time, it can convert large amount of BMP/PNG/GIF images to JPG/JPEG image format with same dimension and resolution. When bmp images are converted to JPG images, its size extensively reduced but dimension and resolution remains unchanged. You can convert image to Byte Array & store in Database and whenever require, it can be retrieved.
  • 4. SYSTEM AND SOFTWARE REQUIRED Operating System : • Windows XP. • Windows 7. Java Platform : • Version 6 Database : • Microsoft SQL Server 2005 or MySQL. IDE : • Eclipse IDE for Java
  • 5. Creating Table In Database (MS SQL Server)To Create a Table :create table s_pht(pht_kid int primary key not null identity(10,1),pht_name varchar(50) not null, pht_kid pht_name pht_filepht_file image not null) 1 10 2 11 3 12Table Name : s_pht 4 133 Columns : pht_kid, pht_name & pht_fileTo See Content of Table :select *from s_pht
  • 6. JDBC Connectionimport java.sql.Connection;import java.sql.DriverManager;import java.sql.ResultSet;import java.sql.Statement;public class Abc {private Statement getstatement(){String connectionUrl = "jdbc:sqlserver://localhost:1433;databaseName=apex;";try { Load DriverClass.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");Connection con = DriverManager.getConnection(connectionUrl,"sa",“pass");return con.createStatement();}catch(Exception e){ e.printStackTrace(); } UserID Passwordreturn null;}public static void main(String args[]){Abc mncls = new Abc();try {Statement stmt = mncls.getstatement();String sql = "insert into btech(sno,name,percentage,semester) " +" values (4,Ravish,84.01,5)";stmt.execute(sql);sql = "select * from btech"; Use ResultSet to iterateResultSet rs = stmt.executeQuery(sql); while (rs.next()) { and access the data.System.out.println(rs.getString(1)); System.out.println(rs.getString(2)); } }catch(Exception e){ e.printStackTrace(); }}}
  • 7. Creating Java Program In order to write a java program in Eclipse IDE, steps may be as follows : Create New Project Create New Package Import Package(s) Create New Java Class(s) Extend Class(s) [ .java file(s) ] JDBC Driver R U Implement Interface(s) Database Connection N [ .class file(s) ]
  • 8. Selecting File/Directory For Old Path By clicking on Browse Button which is in front of Old Path, File/Directory chooser will open. Path of selected file/directory will automatically copy to the corresponding Text Field.
  • 9. Selecting Directory For New Path By clicking on Browse Button which is in front of New Path, Directory chooser will open. Path of selected directory will automatically copy to the corresponding Text Field.
  • 10. Conversion of Images to jpg/jpeg format When Button “Convert” is clicked/pressed, all images from source directory(Old Path) is converted to JPG/JPEG format and stored at destination directory(New Path).
  • 11. Disruption of Obstruction During Image Conversion If old path and/or new path are not provided then an error message will be generated.
  • 12. BMP Image Vs. JPEG Image A bitmap(BMP) file is one that is made up of pixels in a grid. It is a resolution dependent image, so it’s very difficult to increase the size of a bitmap graphic without a noticeable decrease in quality. Joint Photographic Experts Group (JPEG) or JPG files are a type of compressed bitmap file. This lossy compression technique reduces the size of an image by discarding details that are typically too insignificant for the human eye to detect. JPEG file format supports 16 million colours, it does a very good job of analysing what data is the most important to a particular image.
  • 13. Save Image To Database When Button “Save To DataBase” is clicked/pressed then all JPG/JPEG images at “New Path” is save to the database in byte array format.
  • 14. Images Stored In Database  JPG images are stored in database in Byte Array format.  Each images stored in database with unique id.Unique ID Images in Byte Array Format
  • 15. Disruption of Obstruction During Saving of Images in Database If New Path is not provided then an error message will be generated.
  • 16. Continued……. If program is not successfully connected to database due to invalid user, password, driver, etc. then an error message will be generated.
  • 17. Retrieve Images From Database When Button “Upload” is clicked/pressed, images from database which is stored in Byte Array format is uploaded at Old Path location in JPG format.
  • 18. Disruption of Obstruction During Upload of Images From Database If Old Path is not provided then an error message will be generated.
  • 19. Continued……. During upload, if program is not successfully connected to database due to invalid user, password, driver, etc. then an error message will be generated.
  • 20. ADVANTAGESPortableJava based program which is platform independent.Image takes less memory space.Takes very less amount of time in conversion.No effect on image quality and dimension.Data stored in database is more secure.Each images stored in database with unique ID.
  • 21. CONCLUSION If you need to convert one or thousands of images of varying types, this is thetool.A BMP image having size 5MB is converted to JPG image then it’s size reducedup to 700 KB but image quality is unaffected.Instead of storing the image, you can store the byte array of that image in DB. Youcan convert that image to byte array & store in DB. Byte Array (Base 64 string)which is more secure.It can be used in various places like Banks, UIDAI (Aadhaar), photography etc.
  • 22. THANK YOU

×