CN106157247A - A kind of image processing method and system - Google Patents
A kind of image processing method and system Download PDFInfo
- Publication number
- CN106157247A CN106157247A CN201610529538.0A CN201610529538A CN106157247A CN 106157247 A CN106157247 A CN 106157247A CN 201610529538 A CN201610529538 A CN 201610529538A CN 106157247 A CN106157247 A CN 106157247A
- Authority
- CN
- China
- Prior art keywords
- picture
- resource bag
- original image
- application
- image resource
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformation in the plane of the image
- G06T3/40—Scaling the whole image or part thereof
- G06T3/4092—Image resolution transcoding, e.g. client/server architecture
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
Abstract
This application discloses a kind of image processing method and system, the method comprise the steps that in response to listening to application installation signal, resolve the resource bag of application, extract the original image resource bag that application provides, and obtain its target screen resolution being suitable for that described original image resource bag is specified;Obtain the screen resolution intending installing the current device of application;The picture of described original image resource bag is respectively converted into the picture of the screen resolution adapting to current device;Picture packing after conversion is write the resource bag of described application, replaces described original image resource bag.Same set of picture resource is the invention enables to be suitable for the equipment of different resolution, reduce application program installation kit size, make application quick for installation, light, reduce system and the complexity of application and development simultaneously, the performance that lifting system processes, and the support of compatible following resolution.
Description
Technical field
The application relates to electricity digital data processing field, particularly relates to a kind of image processing method and system.
Background technology
Along with the variation of terminal unit, display screen develops, application different terminals to be adapted to, different resolution
Processing, that is accomplished by processing for the platform of different resolution.Each system current both provides based on different resolution
Solving the method that application is adaptive, application needs the terminal according to different resolution to provide the picture that many sets are corresponding.So, on the one hand
Application size can be very big, downloads a kind of pressure that installation etc. is system, and, if system support is different according to platform access
Resource, complexity is the highest and affects overall performance, furthermore the picture that cannot process the higher resolution gradually developed shows, should
With the equipment needing the most newly added new picture just to adapt to new resolution.
Summary of the invention
An object of the application is to provide a kind of image processing method or system, and it makes same set of picture resource be suitable for
The equipment of different resolution, reduces application program installation kit size, makes application quick for installation, light, reduces system simultaneously and answers
By the complexity of exploitation, promote the performance that system processes, and the support of compatible following resolution.
An object of the application is realized by a kind of image processing method, and the method includes:
In response to listening to application, signal is installed, resolves the resource bag of application, extract the original image resource that application provides
Bag, and obtain its target screen resolution being suitable for that described original image resource bag is specified;
Obtain the screen resolution intending installing the current device of application;
The picture of described original image resource bag is respectively converted into the picture of the screen resolution adapting to current device;
Picture packing after conversion is write the resource bag of described application, replaces described original image resource bag.
An object of the application is also realized by a kind of picture processing system, and this system includes:
Original image resource bag acquisition module, in response to listening to application installation signal, resolving the resource bag of application,
Extract the original image resource bag that application provides, and obtain its target screen being suitable for that described original image resource bag specifies and divide
Resolution;
Current screen resolution acquisition module, for obtaining the screen resolution intending installing the current device of application;
Modular converter, divides for the picture of described original image resource bag is respectively converted into the screen adapting to current device
The picture of resolution;
Packing replacement module, for the picture packing after conversion writes the resource bag of described application, replaces described original
Picture resource bag.
The present invention is by when application is installed to system, according to messaging resource pictures such as the resolution of terminal system,
Generate a picture resource being suitable for current platform, delete source material, reduce application program installation kit size, make application install
Fast, light, reduce system and the complexity of application and development simultaneously, performance that the system that promotes processes is, and compatible following differentiate
The support of rate.
Accompanying drawing explanation
The present invention will be below with reference to accompanying drawing and combine preferred embodiment and illustrate more completely.
Fig. 1 is the flow chart of the embodiment according to the inventive method.
Fig. 2 is the structural representation of the embodiment according to present system.
For clarity, the figure that these accompanying drawings are schematically and simplify, they only give for understanding institute of the present invention
Necessary details, and omit other details.
Detailed description of the invention
By detailed description given below, the scope of application of the present invention will be apparent to.It will be appreciated, however, that in detail
While thin description and object lesson show the preferred embodiment of the present invention, they are given only for illustration purpose.
Fig. 1 shows the flow chart of image processing method according to an embodiment of the invention.The method starts from step
S10, installs signal in response to listening to application, starts application picture resource resolution and abstraction function, resolve the resource bag of application,
Extract the original image resource bag that application provides, and obtain its target screen being suitable for that described original image resource bag specifies and divide
Resolution such as 720*1280.The picture of original image resource bag be meet target screen resolution, be adapted for ensureing that display is clear
Clear degree ground amplifies and/or the picture that reduces, such as the high-quality picture that resolution is high, color depth is deeper, such as bitmap, high compression rate
Jpeg picture and/or jpg picture etc., preferably to support the visual effect of high-resolution equipment, can tackle following support simultaneously
The device requirement of bigger resolution.In step S20, obtain the screen resolution such as 960* intending installing the current device of application
1440.In step S30, the picture of described original image resource bag is respectively converted into the screen resolution of adaptation current device
Picture.In an embodiment, aforementioned conversion is carried out by following manner: calculate the screen resolution of current device and described mesh respectively
The width ratio of mark screen resolution and aspect ratio;Make the width of each picture of described original image resource bag and be multiplied by the most respectively
Described width ratio and described aspect ratio changed after picture width and height;Width according to the picture after conversion and height
Spend and determine that frequency carries out data frequency sampling generation and turns the picture of described original image resource bag according to width ratio and aspect ratio
Picture after changing.In other embodiments, while carrying out data frequency sampling, also data can be carried out color sampling, i.e.
The number of bits that each color represents may be that 8,16 or 24 are the highest, and the biggest explanation picture clarity is more
Height, after sampling, picture is the most saturated.Therefore, it can the performance factor according to terminal and carry out color sampling sampling when, as
The use 16 or 8 of 24 is sampled, ensures that photo actual size reduces, meet target platform quickly load and
Display.Afterwards, in step S40, the picture packing after conversion is write the resource bag of described application, replaces described original image money
Source is wrapped.Afterwards, the picture resource bag that applications exploiting is new carries out the installation applied, so that picture can be better suited for current flat
Platform, it is ensured that display effect, reduces size and the development amount of application installation kit simultaneously.
Fig. 2 shows the schematic diagram of picture processing system according to an embodiment of the invention, and this system includes: original image
Resource bag acquisition module 10, in response to listening to application installation signal, resolving the resource bag of application, extracts application offer
Original image resource bag, and obtain its target screen resolution being suitable for that described original image resource bag is specified.Original image
The picture of resource bag is the picture being adapted for amplifying and/or reducing with ensureing display resolution, such as bitmap, high-quality jpeg
Picture and/or jpg picture;Current screen resolution acquisition module 20, for obtaining the screen intending installing the current device of application
Resolution;Modular converter 30, for being respectively converted into the screen adapting to current device by the picture of described original image resource bag
The picture of resolution;Packing replacement module 40, for the picture packing after conversion writes the resource bag of described application, replaces institute
State original image resource bag.In an embodiment, modular converter 30 includes: ratio calculating sub module 32, current for calculating respectively
The width ratio of the screen resolution of equipment and described target screen resolution and aspect ratio;The wide high acquisition module 34 of picture, is used for
Make the width of each picture of described original image resource bag and be multiplied by described width ratio the most respectively and described aspect ratio is turned
The width of the picture after changing and height;Image generating module 36, for the width according to the picture after conversion with highly according to width
Degree ratio and aspect ratio frequency carry out the picture after data frequency sampling generates conversion to the picture of described original image resource bag.
Unless explicitly stated otherwise, singulative " ", " being somebody's turn to do " as used herein all include that plural reference (i.e. has " at least one "
The meaning).It will be further understood that terminology used herein " has ", " including " and/or " comprising " shows that existence is described
Feature, step, operation, element and/or parts, but do not preclude the presence or addition of other features one or more, step, behaviour
Work, element, parts and/or a combination thereof.Term "and/or" includes one or more relevant item enumerated as used in this
Any and all combination.Unless explicitly stated otherwise, the step of any method disclosed herein need not be accurately according to disclosed order
Perform.
Some preferred embodiments are in explanation made above, it should be emphasized, however, that the present invention is not limited to this
A little embodiments, but can realize with the alternate manner in the range of present subject matter.
Claims (10)
1. an image processing method, it is characterised in that described method includes:
In response to listening to application, signal is installed, resolves the resource bag of application, extract the original image resource bag that application provides, and
Obtain its target screen resolution being suitable for that described original image resource bag is specified;
Obtain the screen resolution intending installing the current device of application;
The picture of described original image resource bag is respectively converted into the picture of the screen resolution adapting to current device;
Picture packing after conversion is write the resource bag of described application, replaces described original image resource bag.
Method the most according to claim 1, it is characterised in that described conversion includes:
Calculate the screen resolution of current device and the width ratio of described target screen resolution and aspect ratio respectively;
Make the width of each picture of described original image resource bag and be multiplied by described width ratio the most respectively and described aspect ratio obtains
The width of the picture after conversion and height;
Width according to the picture after conversion and height picture after the picture of described original image resource bag generates conversion.
Method the most according to claim 2, it is characterised in that described generation from the picture of described original image resource bag turns
Picture after changing includes determining that frequency carries out data frequency to the picture of described original image resource bag according to width ratio and aspect ratio
Rate sampling generates the picture after conversion.
4. according to the arbitrary described method of claim 1-3, it is characterised in that the picture of described original image resource bag is for being suitable to
Carry out the picture amplifying and/or reducing with ensureing display resolution.
Method the most according to claim 4, it is characterised in that the picture of described original image resource bag include bitmap,
Jpeg picture and/or jpg picture.
6. a picture processing system, it is characterised in that described system includes:
Original image resource bag acquisition module, in response to listening to application installation signal, resolving the resource bag of application, extract
The original image resource bag that application provides, and obtain its target screen resolution being suitable for that described original image resource bag is specified
Rate;
Current screen resolution acquisition module, for obtaining the screen resolution intending installing the current device of application;
Modular converter, for being respectively converted into the screen resolution adapting to current device by the picture of described original image resource bag
Picture;
Packing replacement module, for the picture packing after conversion writes the resource bag of described application, replaces described original image
Resource bag.
System the most according to claim 6, it is characterised in that described modular converter includes:
Ratio calculating sub module, for calculating the screen resolution of current device and the width of described target screen resolution respectively
Ratio and aspect ratio;
Picture width height obtains module, for making the width of each picture of described original image resource bag and being multiplied by described the most respectively
Width ratio and described aspect ratio changed after picture width and height;
Image generating module, raw from the picture of described original image resource bag for the width according to the picture after conversion and height
Become the picture after conversion.
System the most according to claim 7, it is characterised in that described image generating module includes according to width ratio and height
Than determining that frequency carries out the picture after data frequency sampling generates conversion to the picture of described original image resource bag.
9. according to the arbitrary described system of claim 6-8, it is characterised in that the picture of described original image resource bag is for being suitable to
Carry out the picture amplifying and/or reducing with ensureing display resolution.
System the most according to claim 9, it is characterised in that the picture of described original image resource bag include bitmap,
Jpeg picture and/or jpg picture.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610529538.0A CN106157247A (en) | 2016-07-06 | 2016-07-06 | A kind of image processing method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610529538.0A CN106157247A (en) | 2016-07-06 | 2016-07-06 | A kind of image processing method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106157247A true CN106157247A (en) | 2016-11-23 |
Family
ID=58061955
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610529538.0A Pending CN106157247A (en) | 2016-07-06 | 2016-07-06 | A kind of image processing method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106157247A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106658121A (en) * | 2016-12-22 | 2017-05-10 | 深圳创维数字技术有限公司 | Method and system for set-top box to display fingerprint information |
CN106775916A (en) * | 2017-02-17 | 2017-05-31 | 北京金山安全软件有限公司 | Method and device for reducing application installation packages and electronic equipment |
CN109426509A (en) * | 2017-09-04 | 2019-03-05 | 华为技术有限公司 | Method for processing resource and equipment |
CN109558501A (en) * | 2018-11-28 | 2019-04-02 | 中国工商银行股份有限公司 | A kind of response type image processing method, mobile terminal, server and system |
WO2019170038A1 (en) * | 2018-03-06 | 2019-09-12 | 中兴通讯股份有限公司 | Target screen determining method and device, and storage medium |
CN110314376A (en) * | 2019-06-04 | 2019-10-11 | 福建天晴数码有限公司 | The adaptation method and computer readable storage medium of background picture and background light efficiency |
CN111611043A (en) * | 2020-05-23 | 2020-09-01 | 中南大学 | Image display method, image display device, electronic equipment and computer readable storage medium |
CN113269858B (en) * | 2021-07-19 | 2021-11-30 | 腾讯科技(深圳)有限公司 | Virtual scene rendering method and device, computer equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102023849A (en) * | 2009-09-22 | 2011-04-20 | 北京搜狗科技发展有限公司 | Processing method and device for multi-platform multi-resolution application program interface |
CN102044058A (en) * | 2010-11-22 | 2011-05-04 | Tcl集团股份有限公司 | Method and system for processing pictures in electronic equipment, and electronic equipment |
CN103366341A (en) * | 2013-04-16 | 2013-10-23 | 广东欧珀移动通信有限公司 | Method and device for adaptive-resolution display of image |
CN103530079A (en) * | 2013-09-30 | 2014-01-22 | 山西云途信息技术有限公司 | Picture displaying method and device adaptive to mobile terminals of different resolution ratios |
US20160191846A1 (en) * | 2014-12-29 | 2016-06-30 | Autochips Inc. | Progressive displaying terminal and video playing method and image processing apparatus thereof |
-
2016
- 2016-07-06 CN CN201610529538.0A patent/CN106157247A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102023849A (en) * | 2009-09-22 | 2011-04-20 | 北京搜狗科技发展有限公司 | Processing method and device for multi-platform multi-resolution application program interface |
CN102044058A (en) * | 2010-11-22 | 2011-05-04 | Tcl集团股份有限公司 | Method and system for processing pictures in electronic equipment, and electronic equipment |
CN103366341A (en) * | 2013-04-16 | 2013-10-23 | 广东欧珀移动通信有限公司 | Method and device for adaptive-resolution display of image |
CN103530079A (en) * | 2013-09-30 | 2014-01-22 | 山西云途信息技术有限公司 | Picture displaying method and device adaptive to mobile terminals of different resolution ratios |
US20160191846A1 (en) * | 2014-12-29 | 2016-06-30 | Autochips Inc. | Progressive displaying terminal and video playing method and image processing apparatus thereof |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106658121A (en) * | 2016-12-22 | 2017-05-10 | 深圳创维数字技术有限公司 | Method and system for set-top box to display fingerprint information |
WO2018113420A1 (en) * | 2016-12-22 | 2018-06-28 | 深圳创维数字技术有限公司 | Method and system for set-top box to display fingerprint information, set-top box, and storage medium |
CN106658121B (en) * | 2016-12-22 | 2019-06-11 | 深圳创维数字技术有限公司 | A kind of set-top box shows the method and system of finger print information |
CN106775916A (en) * | 2017-02-17 | 2017-05-31 | 北京金山安全软件有限公司 | Method and device for reducing application installation packages and electronic equipment |
CN109426509A (en) * | 2017-09-04 | 2019-03-05 | 华为技术有限公司 | Method for processing resource and equipment |
WO2019170038A1 (en) * | 2018-03-06 | 2019-09-12 | 中兴通讯股份有限公司 | Target screen determining method and device, and storage medium |
CN109558501A (en) * | 2018-11-28 | 2019-04-02 | 中国工商银行股份有限公司 | A kind of response type image processing method, mobile terminal, server and system |
CN110314376A (en) * | 2019-06-04 | 2019-10-11 | 福建天晴数码有限公司 | The adaptation method and computer readable storage medium of background picture and background light efficiency |
CN111611043A (en) * | 2020-05-23 | 2020-09-01 | 中南大学 | Image display method, image display device, electronic equipment and computer readable storage medium |
CN113269858B (en) * | 2021-07-19 | 2021-11-30 | 腾讯科技(深圳)有限公司 | Virtual scene rendering method and device, computer equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106157247A (en) | A kind of image processing method and system | |
CN110555795B (en) | High resolution style migration | |
US10165198B2 (en) | Dual band adaptive tone mapping | |
US9842123B2 (en) | Dynamic, parameterized image resource selection | |
ATE514145T1 (en) | PANCHROMATIC MODULATION OF MULTI-SPECTRAL IMAGE MATERIAL | |
CN111798813B (en) | Brightness adjusting method and device of display device and display device | |
CN103634343A (en) | Wallpaper arranging method and terminal | |
CN106204513A (en) | The methods, devices and systems of image procossing | |
CN104199920A (en) | Adaptation method and device for display of web application | |
CN109817170A (en) | Pixel compensation method, device and terminal device | |
CN105701165A (en) | Browser mode switching method and switching device | |
CN105469381A (en) | Information processing method and terminal | |
CN114203087A (en) | Configuration of compensation lookup table, compensation method, device, equipment and storage medium | |
CN107220934B (en) | Image reconstruction method and device | |
Corti et al. | Two new pulsating low-mass pre-white dwarfs or SX Phoenicis stars? | |
EP1209900A3 (en) | Method and apparatus for performing tone scale modifications | |
CN108924587A (en) | A kind of rendering method and system based on cloud server | |
JP2015197851A (en) | Image processor, program for image processing and information management system | |
CN107068034A (en) | A kind of method and device of screen display brightness adjustment | |
DE112013004068B4 (en) | Image file creation device and display device | |
CN103914223A (en) | Terminal application interface generation method and device | |
CN109523588B (en) | User-defined parquet method and system | |
CN104793837A (en) | Picture generation method and device | |
CN103686099A (en) | Picture-color-cast adjustment method and device | |
CN114968466A (en) | Page color matching adjustment method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161123 |