CN102622391A - Method for processing small pictures - Google Patents

Method for processing small pictures Download PDF

Info

Publication number
CN102622391A
CN102622391A CN2011103166486A CN201110316648A CN102622391A CN 102622391 A CN102622391 A CN 102622391A CN 2011103166486 A CN2011103166486 A CN 2011103166486A CN 201110316648 A CN201110316648 A CN 201110316648A CN 102622391 A CN102622391 A CN 102622391A
Authority
CN
China
Prior art keywords
picture
little
file
big
small
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2011103166486A
Other languages
Chinese (zh)
Inventor
杨振宇
金峰
李政
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Technology Co Ltd
Original Assignee
Beijing Xiaomi Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Technology Co Ltd filed Critical Beijing Xiaomi Technology Co Ltd
Priority to CN2011103166486A priority Critical patent/CN102622391A/en
Publication of CN102622391A publication Critical patent/CN102622391A/en
Pending legal-status Critical Current

Links

Landscapes

  • Editing Of Facsimile Originals (AREA)

Abstract

The invention discloses a method for processing small pictures. The method comprises the steps as follows: firstly, combining at least two small pictures into a big picture; secondly, generating a data file for recording mappings from small picture file names to digital coordinates and small picture sizes of the small pictures in the big picture; thirdly, visiting the small pictures through the small picture file names when the small pictures are used; fourthly, retrieving corresponding digital coordinates and small picture sizes of the small pictures in the big picture through the small picture file names according to the mappings from the small picture file names to the digital coordinates and the small picture sizes of the small pictures in the big picture; fifthly, visiting a big picture file; and lastly, obtaining the small pictures according to the retrieved digital coordinates and small picture sizes of the small pictures in the big picture. Due to the technical scheme of the invention, the small pictures can be located and used in a friendly way, and the maintenance cost is lower at the same time.

Description

A kind of little image processing method
Technical field
The present invention relates to field of computer technology, relate in particular to a kind of little image processing method.
Background technology
In application software,, usually need use a large amount of pictures in order to demonstrate abundant expressive force to the user.Simultaneously, for based on the software and services of internet (no matter based on browser also be based on client terminal local operating system),, also usually need download a large amount of pictures in order to demonstrate abundant expressive force to the user.These pictures are built in the software in the time of can being installation, also can be to download from server end in the installation and operation process.
A big chunk in these pictures all is very little picture, when little picture is a lot, has just caused following problem:
1, for installation, if these little pictures all are installed in the goal systems with the form of unique file, when the file system performance of goal systems was relatively poor, the installation of little picture can influence installation rate widely so, dragged slow whole erection process;
2, for download; If each little picture is all downloaded with the form of unique file, so each the download all needs an independently network requests, and great amount of time spends in the request; This can drag slow whole downloading process, and this point is very obvious in the Web system based on browser;
3,, if each little picture all loads with the form of unique file, so when file system performance is relatively poor, spend in time of loading on the little picture very many just, thereby influence the runnability of system for loading.
For download problem, in Web system, there is a solution, i.e. CSS Sprites scheme at present based on browser.It allows that all fragmentary pictures that a page relates to are all covered one and goes among the figure greatly, and so, when this page of visit, the picture that is written into is just once all downloaded and shown.The Web page is located and is shown this picture through the digital co-ordinate position of this picture in big figure when quoting a picture.
Though CSS Sprites scheme has solved download problem; Yet its defective also is tangible: it is not directly perceived at first to locate picture through digital co-ordinate position; Use cumbersome; And safeguard inconvenience, when the digital co-ordinate position of picture changes, need extra instrument to guarantee that picture quotes the synchronous renewal of place's coordinate position.
Summary of the invention
The objective of the invention is to propose a kind of little image processing method, can locate and use little picture with a kind of close friend's mode, maintenance cost is lower simultaneously.
For reaching this purpose, the present invention adopts following technical scheme:
A kind of little image processing method may further comprise the steps:
A, the little picture that will be no less than 2 are merged into 1 big picture;
B, generate 1 data files, be used for writing down little picture file title to little picture in the digital coordinates of big picture and the mapping of little picture size;
C, when using said little picture, visit said little picture through the file name of said little picture;
D, based on the little picture file title in the data file to digital coordinates and the mapping of little picture size of little picture in big picture, the file name through said little picture retrieves digital coordinates and the little picture size of corresponding little picture in big picture;
E, visit big picture file, obtain little picture based on the digital coordinates and the little picture size of the little picture that retrieves in big picture.
Step D is further comprising the steps of:
Data file is read in the internal memory, in internal memory, set up little picture file title to digital coordinates and the mapping of little picture size of little picture in big picture.
When little picture need to be installed, said big picture file and said data file are installed.
When need downloading little picture, download said big picture file and said data file.
When need loading little picture, load said big picture file and said data file.
Adopted technical scheme of the present invention; Solve the installation rate problem of the built-in little picture of software when too much, solved the download problem of a large amount of little pictures, solved the loading velocity problem of a large amount of little pictures; Locate and use little picture with a kind of close friend's mode, maintenance cost is lower simultaneously.
Description of drawings
Fig. 1 is the process flow diagram that the medium and small picture of the specific embodiment of the invention is handled.
Embodiment
Further specify technical scheme of the present invention below in conjunction with accompanying drawing and through embodiment.
Fig. 1 is the process flow diagram that the medium and small picture of the specific embodiment of the invention is handled.As shown in Figure 1, this little picture treatment scheme may further comprise the steps:
Step 101, many little pictures are merged into 1 big picture.
Step 102, generate 1 data files, be used for writing down little picture file title to little picture in the digital coordinates of big picture and the mapping of little picture size.
Step 103, when using little picture, visit little picture through the file name of little picture.
Step 104, data file is read in the internal memory, in internal memory, set up little picture file title to digital coordinates and the mapping of little picture size of little picture in big picture.
Step 105, based on the little picture file title in the data file to digital coordinates and the mapping of little picture size of little picture in big picture, the file name through little picture retrieves digital coordinates and the little picture size of corresponding little picture in big picture.
Step 106, visit big picture file, obtain little picture based on the digital coordinates and the little picture size of the little picture that retrieves in big picture.
When little picture need to be installed, big picture file and said data file are installed.Because only big picture file and data file need be installed when installing, its quantity is far smaller than the number of little picture file.After considering that picture merges; Generally the shared storage space of big picture file is less than the shared storage space sum of all little picture files; Can not increase much before thereby the shared storage space of file that generates is compared, in most cases reduce.When file system performance was relatively poor, quantitative significantly reducing can be accelerated installation rate greatly, the minimizing of storage space, and installation rate can not slow down.This has just solved the installation rate problem of the built-in little picture of software when too much.
When need downloading little picture, download big picture file and said data file.Owing to when downloading, only download big picture file and data file, rather than download a large amount of little picture files.Significantly reducing of quantity of documents can significantly reduce the number of network requests, and storage space constant basically even reduce can not increase download pictures content on one's body the time originally that spends in.This has just solved the download problem of a large amount of little pictures.
When need loading little picture, load big picture file and said data file.Owing to when loading, only big picture file is loaded in the internal memory as a whole, rather than a large amount of little picture files of loading one by one.When file system performance was relatively poor, quantitative significantly reducing can be accelerated the picture loading velocity greatly.
The above; Be merely the preferable embodiment of the present invention, but protection scope of the present invention is not limited thereto, anyly is familiar with this technological people in the technical scope that the present invention disclosed; The variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of claim.

Claims (5)

1. a little image processing method is characterized in that, may further comprise the steps:
A, the little picture that will be no less than 2 are merged into 1 big picture;
B, generate 1 data files, be used for writing down little picture file title to little picture in the digital coordinates of big picture and the mapping of little picture size;
C, when using said little picture, visit said little picture through the file name of said little picture;
D, based on the little picture file title in the data file to digital coordinates and the mapping of little picture size of little picture in big picture, the file name through said little picture retrieves digital coordinates and the little picture size of corresponding little picture in big picture;
E, visit big picture file, obtain little picture based on the digital coordinates and the little picture size of the little picture that retrieves in big picture.
2. a kind of little image processing method according to claim 1 is characterized in that step D is further comprising the steps of:
Data file is read in the internal memory, in internal memory, set up little picture file title to digital coordinates and the mapping of little picture size of little picture in big picture.
3. a kind of little image processing method according to claim 1 is characterized in that, when little picture need to be installed, said big picture file and said data file is installed.
4. a kind of little image processing method according to claim 1 is characterized in that, when need downloading little picture, downloads said big picture file and said data file.
5. a kind of little image processing method according to claim 1 is characterized in that, when need loading little picture, loads said big picture file and said data file.
CN2011103166486A 2011-10-18 2011-10-18 Method for processing small pictures Pending CN102622391A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011103166486A CN102622391A (en) 2011-10-18 2011-10-18 Method for processing small pictures

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011103166486A CN102622391A (en) 2011-10-18 2011-10-18 Method for processing small pictures

Publications (1)

Publication Number Publication Date
CN102622391A true CN102622391A (en) 2012-08-01

Family

ID=46562314

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011103166486A Pending CN102622391A (en) 2011-10-18 2011-10-18 Method for processing small pictures

Country Status (1)

Country Link
CN (1) CN102622391A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103678411A (en) * 2012-09-24 2014-03-26 联想(北京)有限公司 Picture information processing method, operation processing method and electronic equipment
CN104063492A (en) * 2014-07-04 2014-09-24 用友软件股份有限公司 Image synthesizing method and system
CN104750689A (en) * 2013-12-25 2015-07-01 腾讯科技(深圳)有限公司 Picture display method and device used for browser startup process and terminal equipment
WO2015169209A1 (en) * 2014-05-07 2015-11-12 Tencent Technology (Shenzhen) Company Limited Animation data generating method, apparatus, and electronic device
CN105867769A (en) * 2016-03-29 2016-08-17 广州阿里巴巴文学信息技术有限公司 Picture switching method and device and user terminal
CN106326393A (en) * 2016-08-17 2017-01-11 东方网力科技股份有限公司 Method and device for storing and reading small picture
CN107357863A (en) * 2017-06-30 2017-11-17 广东欧珀移动通信有限公司 A kind of image processing method, device, storage medium and terminal
CN111191174A (en) * 2018-11-14 2020-05-22 北京京东尚科信息技术有限公司 Method, system and device for integrating Spanish Bitums

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101183366A (en) * 2006-12-26 2008-05-21 腾讯科技(深圳)有限公司 Photograph document handling method and system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101183366A (en) * 2006-12-26 2008-05-21 腾讯科技(深圳)有限公司 Photograph document handling method and system

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103678411A (en) * 2012-09-24 2014-03-26 联想(北京)有限公司 Picture information processing method, operation processing method and electronic equipment
CN104750689A (en) * 2013-12-25 2015-07-01 腾讯科技(深圳)有限公司 Picture display method and device used for browser startup process and terminal equipment
WO2015169209A1 (en) * 2014-05-07 2015-11-12 Tencent Technology (Shenzhen) Company Limited Animation data generating method, apparatus, and electronic device
CN105096364A (en) * 2014-05-07 2015-11-25 腾讯科技(深圳)有限公司 Animation data generation method and device, and electronic equipment
CN105096364B (en) * 2014-05-07 2021-06-11 腾讯科技(深圳)有限公司 Animation data generation method and device and electronic equipment
CN104063492A (en) * 2014-07-04 2014-09-24 用友软件股份有限公司 Image synthesizing method and system
CN104063492B (en) * 2014-07-04 2017-09-29 用友网络科技股份有限公司 Picture merging method and picture combination system
CN105867769A (en) * 2016-03-29 2016-08-17 广州阿里巴巴文学信息技术有限公司 Picture switching method and device and user terminal
CN106326393A (en) * 2016-08-17 2017-01-11 东方网力科技股份有限公司 Method and device for storing and reading small picture
CN107357863A (en) * 2017-06-30 2017-11-17 广东欧珀移动通信有限公司 A kind of image processing method, device, storage medium and terminal
CN107357863B (en) * 2017-06-30 2020-05-12 Oppo广东移动通信有限公司 Picture processing method and device, storage medium and terminal
CN111191174A (en) * 2018-11-14 2020-05-22 北京京东尚科信息技术有限公司 Method, system and device for integrating Spanish Bitums

Similar Documents

Publication Publication Date Title
CN102622391A (en) Method for processing small pictures
CN101147145B (en) Embedded web-based management method
US9740435B2 (en) Methods for managing content stored in cloud-based storages
CN106909317B (en) Storing data on storage nodes
CN101763226B (en) Cache method for virtual storage devices
CN101252589B (en) Data buffer apparatus and network storage system using the same and buffer method
CN105183839A (en) Hadoop-based storage optimizing method for small file hierachical indexing
CN107844399A (en) Method, storage medium, electronic equipment and the system of automatic monitoring data storehouse service
US11586672B2 (en) Remote virtualized asset delivery and local provisioning
CN103530387A (en) Improved method aimed at small files of HDFS
CN102523301A (en) Method for caching data on client in cloud storage
CN102789458B (en) A kind of image file disposal route and system
CN105915619A (en) Access heat regarded cyber space information service high performance memory caching method
CN104052824A (en) Distributed cache method and system
JP2013020395A (en) Information processing apparatus, information processing method and program
CA2824868C (en) Variants of files in a file system
US20170223078A1 (en) Asset streaming and delivery
WO2014163852A1 (en) Grouping files for optimized file operations
CN105045539B (en) The control method and device of off-line data storage
JP6529678B2 (en) Method and device for accelerating the execution of an application
KR101017433B1 (en) A method for web map service using compressor
CN101714933A (en) Method and system for playing remote media
US8990265B1 (en) Context-aware durability of file variants
CN105094918A (en) Image size processing method and system
US8375164B2 (en) Content addressable storage with reduced latency

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: 100085 Beijing city Haidian District Qinghe Street No. 68 Huarun colorful city shopping center two floor 13

Applicant after: Xiaomi Technology Co., Ltd.

Address before: 100102, Beijing, Wangjing, Chaoyang District West Road, No. 50, -1 volume stone world building, block A, 12

Applicant before: Beijing Xiaomi Technology Co., Ltd.

C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20120801