CN110032697A - Image processing method, device, computer equipment and storage medium - Google Patents

Image processing method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN110032697A
CN110032697A CN201910324219.XA CN201910324219A CN110032697A CN 110032697 A CN110032697 A CN 110032697A CN 201910324219 A CN201910324219 A CN 201910324219A CN 110032697 A CN110032697 A CN 110032697A
Authority
CN
China
Prior art keywords
picture
target photo
configuration parameter
access address
terminal
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
CN201910324219.XA
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.)
Suzhou Ziyan Network Technology Co Ltd
Original Assignee
Suzhou Ziyan Network 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 Suzhou Ziyan Network Technology Co Ltd filed Critical Suzhou Ziyan Network Technology Co Ltd
Priority to CN201910324219.XA priority Critical patent/CN110032697A/en
Publication of CN110032697A publication Critical patent/CN110032697A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/54Browsing; Visualisation therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation

Abstract

The embodiment of the invention discloses a kind of image processing method, device, computer equipment and storage mediums.Request is checked for Target Photo the described method includes: sending to server, and receives the picture access address of the Target Photo of server feedback, includes the resolution information of Target Photo in picture access address;The resolution information in picture access address is parsed, and according to resolution information and native en characteristic parameter, the determining and matched picture configuration parameter of Target Photo;Picture configuration parameter is sent to server, so that server is handled Target Photo according to picture configuration parameter, picture after being handled;Picture after the processing of reception server feedback, and carry out picture and check.The technical solution of the embodiment of the present invention realizes under the premise of not influencing user and checking picture experience, reduces the flow consumption of user, meanwhile, support cross-platform progresss picture processing, saving development cost.

Description

Image processing method, device, computer equipment and storage medium
Technical field
The present embodiments relate to Internet technical fields more particularly to a kind of image processing method, device, computer to set Standby and storage medium.
Background technique
Universal with mobile terminal with the development of internet technology, the type of mobile terminal is more and more, and people can be with Various pictures are checked by different types of mobile terminal.
In the prior art, due to the mobile terminal with different operating system, the method for checking picture is different, therefore needs Will the mobile terminal to different operating system develop the corresponding program for checking picture respectively, and this needs to spend a large amount of exploitation Time, moreover, checking in picture approach existing, original image is typically directly sent to corresponding mobile whole by server End does not support picture scaling and multi-format conversion, and the flow for causing mobile terminal download pictures to use is more, influences user's body It tests.
Summary of the invention
The embodiment of the present invention provides a kind of image processing method, device, computer equipment and storage medium, to realize not Under the premise of influence user checks picture experience, the flow consumption of user is reduced, meanwhile, support cross-platform progress picture processing, Save development cost.
In a first aspect, the embodiment of the invention provides a kind of image processing methods, comprising:
It is sent to server and checks request for Target Photo, and receive the Target Photo of the server feedback Picture access address, include the resolution information of the Target Photo in the picture access address;
The resolution information in the picture access address is parsed, and according to the resolution information and the machine ring Border characteristic parameter, the determining and matched picture configuration parameter of the Target Photo;
The picture configuration parameter is sent to the server, so that the server is according to the picture configuration parameter The Target Photo is handled, picture after being handled;
Picture after the processing of the server feedback is received, and carries out picture and checks.
Optionally, the resolution information includes: lateral resolution and longitudinal resolution;The lateral resolution and Longitudinal resolution is set to the setting position in the picture access address by least two target separators;
Parse the resolution information in the picture access address, comprising:
The target separator is searched in the picture access address, and is extracted between the target separator, or Information between the target separator and other separators is as the resolution information.
Optionally, according to the resolution information and native en characteristic parameter, determination is matched with the Target Photo Picture configuration parameter, comprising:
The resolution information and native en characteristic parameter are matched with the configuration parameter table of comparisons, determining and institute State the matched picture configuration parameter of Target Photo.
Optionally, the picture configuration parameter is sent to the server, comprising:
The server is sent to after the picture configuration parameter is additional to the picture access address as suffix.
Optionally, the method is realized by React Native frame, so that the method can adapt to different behaviour Make the terminal of system.
Second aspect, the embodiment of the invention also provides a kind of image processing methods, comprising:
Request is checked for Target Photo according to terminal, the picture access address of the Target Photo is back to described Terminal includes the resolution information of the Target Photo in the picture access address;
The picture configuration parameter that the terminal is sent is received, the picture configuration parameter is the terminal according to the picture The resolution information of Target Photo and terminal native en characteristic parameter determination obtain in access address;
The Target Photo is handled according to the picture configuration parameter, picture feeds back to the end after being handled End is checked.
The third aspect, the embodiment of the invention also provides a kind of picture processing units, comprising:
Access address receiving module checks request for Target Photo for sending to server, and receives the clothes The picture access address of the Target Photo for device feedback of being engaged in includes the resolution of the Target Photo in the picture access address Rate information;
Configuration parameter determining module, for parsing the resolution information in the picture access address, and according to institute State resolution information and native en characteristic parameter, the determining and matched picture configuration parameter of the Target Photo;
Picture obtains module, for the picture configuration parameter to be sent to the server, so that the server root The Target Photo is handled according to the picture configuration parameter, picture after being handled;
Picture checks module, picture after the processing for receiving the server feedback, and carries out picture and check.
Fourth aspect, the embodiment of the invention also provides a kind of picture processing units, comprising:
Access address sending module, for checking request for Target Photo according to terminal, by the Target Photo Picture access address is back to the terminal, includes the resolution information of the Target Photo in the picture access address;
Configuration parameter receiving module, the picture configuration parameter sent for receiving the terminal, the picture configuration parameter It is the terminal according to the resolution information of Target Photo in the picture access address and the terminal native en feature Parameter determination obtains;
Picture processing module is handled for being handled according to the picture configuration parameter the Target Photo Picture feeds back to the terminal and is checked afterwards.
5th aspect the embodiment of the invention also provides a kind of computer equipment, including memory, processor and is stored in On memory and the computer program that can run on a processor, the processor realize that the present invention such as appoints when executing described program The image processing method that embodiment of anticipating provides.
6th aspect, the embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computer Program realizes the image processing method provided such as any embodiment of that present invention when the program is executed by processor.
For the embodiment of the present invention by sending the request of checking for Target Photo to server, obtaining includes photo resolution Target Photo access address, then according to the resolution information and native en characteristic parameter in picture access address, really Set the goal picture picture configuration parameter and be sent to server so that server according to picture configuration parameter to Target Photo into The corresponding processing operation of row, and will treated that picture is sent to terminal carries out picture and check.As it can be seen that the present embodiment is comprehensive multi-party Face factor determines the configuration parameter of Target Photo, carries out corresponding compression processing to Target Photo, so that showing in guarantee picture Under the premise of effect, customer flow can be saved to the greatest extent, solve in the prior art server to Target Photo not into Row processing, is transmitted directly to terminal, user is caused to check the more problem of picture consumed flow, has reached and has looked into not influencing user Under the premise of seeing picture experience, the flow consumption of user is reduced, the waiting time that user checks picture is shortened.
Further, the present embodiment is realized using React Native frame, supports cross-platform progress picture processing, can be with Save development cost.
Detailed description of the invention
Fig. 1 is the flow chart of one of the embodiment of the present invention one image processing method;
Fig. 2 is the flow chart of one of the embodiment of the present invention two image processing method;
Fig. 3 is a kind of implementation flow chart of the applicable application scenarios of the embodiment of the present invention;
Fig. 4 is the structural schematic diagram of one of embodiment of the present invention four picture processing unit;
Fig. 5 is the structural schematic diagram of one of embodiment of the present invention five picture processing unit;
Fig. 6 is the structural schematic diagram of one of the embodiment of the present invention six computer equipment.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Embodiment one
Fig. 1 is the flow chart of one of the embodiment of the present invention one image processing method, and the present embodiment is applicable to treat The picture checked is handled, and to reduce the case where customer flow consumes, this method can be executed by picture processing unit, should Device can be realized by the mode of software and/or hardware, and generally be can integrate and checked the terminal of service in various offer pictures In equipment, for example, mobile phone or tablet computer etc., are used cooperatively with the server for storing picture.Specifically, with reference to Fig. 1, This method may include steps of:
Step 110 sends to server and checks request for Target Photo, and receives the Target Photo of server feedback Picture access address, include the resolution information of Target Photo in picture access address.
In embodiments of the present invention, when user is when terminal checks specified Target Photo, terminal is first sent to server Request is checked for Target Photo, so that server checks that request includes the resolution of Target Photo according to Target Photo The picture access address of rate information, and return to terminal;Wherein, Target Photo refers to user's picture to be viewed, including file In picture and webpage in picture etc., terminal may include the terminal devices such as mobile phone, tablet computer, computer.
Optionally, the resolution information of Target Photo may include: lateral resolution and longitudinal resolution;Laterally differentiate Rate is called horizontal resolution, refers to the number of pixels of Target Photo per inch in the horizontal direction, can indicate Target Photo Horizontal definition;Longitudinal resolution is called vertical resolution, refers to the number of pixels of Target Photo per inch in vertical direction, It can indicate the vertical definition of Target Photo.In the present embodiment, the lateral resolution and longitudinal resolution of Target Photo can To be set to the setting position in picture access address by least two target separators;Target separator can be connector Number, perhaps other special symbol setting positions may include the end position of picture access address or open underlined characters Head position.
Illustratively, for the picture access address https of the resolution information including Target Photo: // Company.com/path/da8eh79ef2ed2e8ab_1280_960.jpg, including target separator be underscore The photo resolution of separator " _ ", Target Photo is 1280*960, and 1280 be lateral resolution, and 960 be longitudinal resolution.
Resolution information in step 120, parsing picture access address, and it is special according to resolution information and native en Levy parameter, the determining and matched picture configuration parameter of Target Photo.
Optionally, after terminal receives the picture access address of the Target Photo of server feedback, to picture access Location is parsed, and the resolution information of Target Photo, the i.e. lateral resolution and longitudinal resolution of Target Photo are obtained.Specifically , terminal searches for target separator in picture access address, and extract between target separator or target separator and its Information between his separator is as resolution information.
Illustratively, for access address https: //company.com/path/da8eh79ef2ed2e8ab_1280_ 960.jpg, terminal first in picture access address determine target separator " _ " position, then extract target separator " _ " it Between lateral resolution and target separator and adjacent separator " " between longitudinal resolution.
Optionally, according to resolution information and native en characteristic parameter, determination is matched with the matched picture of Target Photo Parameter is set, may include: to match resolution information and native en characteristic parameter with the configuration parameter table of comparisons, is determined With the matched picture configuration parameter of Target Photo.Wherein, native en characteristic parameter includes the current network environment parameter of terminal And the system version parameter of terminal;Picture configuration parameter includes Target Photo treated picture width and picture format.
Specifically, terminal obtains screen pixels ratio, the product of lateral resolution and screen pixels ratio is calculated, as target figure Piece terminal display width, by Target Photo terminal display width and current network environment parameter and configuration parameter pair It is matched according to table, determines that Target Photo carries out the picture width after compression processing;And by the system version parameter of terminal with The configuration parameter table of comparisons is matched, and determines Target Photo treated picture format.
Picture configuration parameter is sent to server by step 130, so that server is according to picture configuration parameter to target figure Piece is handled, picture after being handled.
Optionally, terminal is by the picture configuration parameter of Target Photo, i.e., Target Photo treated expected picture width with And picture format is sent to server, so that server carries out the picture of corresponding ratio according to picture configuration parameter to Target Photo Compression and picture format conversion, picture after being handled.
Optionally, picture configuration parameter is sent to server, may include: to be added using picture configuration parameter as suffix Server is sent to after picture access address.Illustratively, if picture configuration parameter include: Target Photo treated figure Piece width is 320 pixels, and picture format is WebP format, picture access address are as follows: https: //company.com/path/ Da8eh79ef2ed2e8ab_1280_960.jpg, then mobile terminal using picture configuration parameter as suffix with being additional to picture access After location, new picture access address https: //company.com/path/da8eh79ef2ed2e8ab_1280_ is obtained 960.jpg-s320wp, and be sent to server, so that server obtains Target Photo treated figure according to suffix "-s320 " Piece width is the information of 320 pixels, and according to suffix " wp " obtains Target Photo treated that picture format is WebP format Information, and carry out according to the information compression processing of Target Photo, the picture that obtains that treated.
Step 140 receives picture after the processing of server feedback, and carries out picture and checks.
Optionally, terminal receives server feedback treated Target Photo, and carries out picture to picture after the processing It checks, allows the user to view Target Photo.Wherein, picture is that server is configured according to the picture that terminal is sent after processing Parameters on target picture carries out what corresponding compression processing obtained.
Optionally, this method is realized by React Native frame, so that method can adapt to different operating system Terminal.Wherein, React Native frame is a kind of cross-platform mobile application Development Framework, can support iOS and Android two Large platform can be improved the development efficiency of multi-platform exploitation, solves image display method in the prior art and is only applicable to pacify Zhuo Pingtai iOS platform needs to write the problem of a set of code carries out picture display respectively for different platforms, and reduction is opened Send out cost and development time.
The technical solution of the embodiment of the present invention obtains packet by sending the request of checking for Target Photo to server The Target Photo access address of photo resolution is included, then according to the resolution information and native en in picture access address Characteristic parameter determines the picture configuration parameter of Target Photo and is sent to server, so that server is according to picture configuration parameter Corresponding processing operation carried out to Target Photo, and will treated that picture is sent to terminal carries out picture and check.As it can be seen that this reality The configuration parameter that the comprehensive many factors of example determine Target Photo is applied, corresponding compression processing is carried out to Target Photo, so that Under the premise of guaranteeing image display effect, customer flow can be saved to the greatest extent, solves server pair in the prior art Target Photo is transmitted directly to terminal, causes user to check the more problem of picture consumed flow, reached without processing Do not influence user check picture experience under the premise of, reduce user flow consumption and memory consumption, shorten user and check Waiting time of picture, while using React Native frame, support cross-platform progresss picture processing, save develop at This.
Embodiment two
Fig. 2 is the flow chart of one of the embodiment of the present invention two image processing method, and the present embodiment is applicable to treat The picture checked is handled, and to reduce the case where customer flow consumes, this method can be executed by picture processing unit, should Device can be realized by the mode of software and/or hardware, and generally can integrate in the server for storing picture, and be mentioned Check that the terminal device of service is used cooperatively for picture.In conjunction with Fig. 2, specifically comprise the following steps:
Step 210 checks request for Target Photo according to terminal, and the picture access address of Target Photo is back to Terminal includes the resolution information of Target Photo in picture access address.
Optionally, what server receiving terminal was sent checks request for Target Photo, and be found in the database and This checks the picture access address for requesting corresponding Target Photo, which is returned to terminal, so that terminal is logical It crosses and parses the picture access address, the determining and matched picture configuration parameter of Target Photo.
Optionally, server receive terminal send for Target Photo check request before, receive computer set The standby picture uploaded and photo resolution utilize at least two target predetermined point for received each picture Every symbol, photo resolution is set to the setting position in picture access address, is visited with generating the picture comprising photo resolution Ask address, and by the picture and the storage of picture access corresponding with picture address into database.
Illustratively, if server receives the figure that a picture resolution ratio of computer equipment upload is 1280*960 Piece then utilizes underscore separator " _ ", photo resolution 1280*960 is set to the end position of picture access address, is obtained To the picture access address comprising photo resolution corresponding with the picture, https: //company.com/path/ Da8eh79ef2ed2e8ab_1280_960.jpg, and the picture and the storage of picture access corresponding with picture address are arrived In database.
Step 220 receives the picture configuration parameter that terminal is sent, and picture configuration parameter is terminal according to picture access address What resolution information and terminal native en the characteristic parameter determination of middle Target Photo obtained.
Optionally, the picture access address including picture configuration parameter that server receiving terminal is sent, from picture access Parsing obtains picture configuration parameter in the suffix of address, i.e. Target Photo treated picture width and picture format.Wherein, Picture configuration parameter is terminal according to the resolution information of Target Photo in picture access address and terminal native en feature Parameter determination obtains.
Illustratively, the picture access address https: //company.com/path/ sent for terminal Da8eh79ef2ed2e8ab_1280_960.jpg-s320wp obtains Target Photo treated picture according to suffix "-s320 " Width is 320 pixels, and according to suffix " wp " obtains Target Photo treated that picture format is WebP format.
Step 230 is handled Target Photo according to picture configuration parameter, after being handled picture feed back to terminal into Row is checked.
Optionally, server is after parsing obtains picture configuration parameter in the picture access address that terminal is sent, according to figure Piece configuration parameter carries out corresponding compression processing, picture after being handled to Target Photo, and picture after processing is fed back to end End, so that user checks Target Photo in terminal.
The technical solution of the embodiment of the present invention, the request of checking for Target Photo sent by receiving terminal, returns Target Photo access address including photo resolution, so that terminal is according to the resolution information in picture access address and originally Machine environment characteristic parameters determine the picture configuration parameter of Target Photo, and the picture configuration parameter then sent according to terminal is to mesh Piece of marking on a map carries out corresponding processing operation, and will treated that picture is sent to terminal carries out picture and check.As it can be seen that the present embodiment Comprehensive many factors determine the configuration parameter of Target Photo, corresponding compression processing are carried out to Target Photo, so that guaranteeing Under the premise of image display effect, customer flow can be saved to the greatest extent, solve in the prior art server to target Picture is transmitted directly to terminal, causes user to check the more problem of picture consumed flow, reached in not shadow without processing Under the premise of sound user checks picture experience, reduces flow consumption and the memory consumption of user, shorten user and check picture Waiting time, while using React Native frame, support cross-platform progress picture processing, save development cost.
Embodiment three
Fig. 3 is a kind of implementation flow chart of the applicable application scenarios of the embodiment of the present invention, is held with server and terminal Row, the present embodiment can be in conjunction with optinal plan each in above-described embodiment.Specifically, with reference to Fig. 3, this method may include as Lower step:
S310, server generate the picture access comprising photo resolution according to the picture and photo resolution of upload Address.
Optionally, server receives the picture and corresponding photo resolution that computer equipment uploads, and for reception Each picture and its photo resolution, the picture access address comprising photo resolution is generated in the way of setting, and By picture and the storage of corresponding picture access address into database.
S320, terminal to server, which are sent, checks request for Target Photo, and receives the target figure of server feedback The picture access address of piece.
Optionally, when user is when terminal checks specified Target Photo, terminal first sends to server and is directed to target figure Piece checks request, so that server checks that request includes the figure of the resolution information of Target Photo according to Target Photo Piece access address, and return to terminal.
S330, terminal parsing picture access address obtain photo resolution, and obtain native en characteristic parameter.
Optionally, after terminal receives the picture access address of the Target Photo of server feedback, to picture access Location is parsed, i.e., in picture access address search for target separator, and extract between target separator or target separate Then information between symbol and other separators calculates the product of lateral resolution and screen pixels ratio as photo resolution, Target Photo is obtained in the display width of terminal.
Optionally, native en characteristic parameter includes the current network environment parameter of terminal and the system version ginseng of terminal It counts, in the present embodiment, terminal saves current network type using network global variable, therefore can be according to network global variable value Obtain current network environment parameter.Illustratively, if network global variable value is none, indicate that the current network environment of terminal is Off-line state;If network global variable value is wifi, indicate that the current network environment of terminal is wifi connection status;If network is complete Office's variate-value is cell, indicates that the current network environment of terminal is cell phone network state;If connection network global variable value is Unknown indicates that the current network environment of terminal is that network type is unknowable.
S340, terminal are according to the configuration parameter table of comparisons, the determining and matched picture configuration parameter of Target Photo.
Optionally, be stored in advance a configuration parameter table of comparisons, terminal by by Target Photo terminal display width And current network environment parameter is matched with the configuration parameter table of comparisons, determines that Target Photo carries out the picture after compression processing Width, and by matching the system version parameter of terminal with the configuration parameter table of comparisons, determining Target Photo, treated Picture format.
Illustratively, for Target Photo treated picture width, the configuration parameter table of comparisons be can be set are as follows: work as target Picture is in display width < 120px of terminal, if current network environment parameter is wifi environment, treated picture width For 100 pixels, if current network environment parameter is non-wifi environment, treated, and picture width is 64 pixels;When 120px < Target Photo is in display width < 320px of terminal, if current network environment parameter is wifi environment, treated picture Width is 300 pixels, if current network environment parameter is wifi environment, treated, and picture width is 200 pixels;When 320px < Target Photo is in display width < 512px of terminal, if current network environment parameter is wifi environment, after processing Picture width be 400 pixels, if current network environment parameter is non-wifi environment, treated picture width is 320 pictures Element;As display width > 512px of the Target Photo in terminal, if current network environment parameter is wifi environment, treated Picture width is 512 pixels, if current network environment parameter is non-wifi environment, treated, and picture width is 400 pixels.
Optionally, for Target Photo treated picture format, the configuration parameter table of comparisons be can be set are as follows: when terminal When operating system is Android system, if system version is higher than version Android4.2.1, Target Photo treated picture lattice Formula is WebP format, if system version is lower than version Android4.2.1, treated that picture format is any for Target Photo Other a kind of compressed formats;When the operating system of terminal is IOS system, if system version is higher than version IOS 8, target figure Piece treated picture format is WebP format, if system version is lower than version IOS 8, Target Photo treated picture lattice Formula is any one other compressed format;Wherein, other compressed formats may include GIF format, jpeg format and JPG format Deng.
After picture configuration parameter is additional to picture access address as suffix by S350, terminal, and it is sent to server.
Optionally, when user uses picture, whether terminal treated picture width and will support WebP format to make After being additional to picture access address for suffix, new picture access address is generated.Illustratively, if picture after terminal processes Width is 100 pixels, then corresponding suffix is "-s100 ", if terminal supports that WebP format, corresponding suffix are " wp ", because It is https that this terminal, which obtains new picture access address plus suffix "-s100wp " after picture access address: // Company.com/path/da8eh79ef2ed2e8ab_1280_960.jpg-s320wp, and send it to server.
S360, server are handled Target Photo according to picture configuration parameter, picture and are fed back to after being handled Terminal.
S370, terminal receive picture after the processing of server feedback, and carry out picture and check.
By the common configuration of server and terminal device, may be implemented do not influence user check picture experience premise Under, flow consumption and the memory consumption of user are reduced, shortens the waiting time that user checks picture, while using React Native frame supports cross-platform progress picture processing, saves development cost.
Example IV
Fig. 4 is the structural schematic diagram of one of embodiment of the present invention four picture processing unit.The present embodiment be suitable for pair Picture to be viewed is handled, to reduce the case where customer flow consumes.As shown in figure 4, the picture processing unit is applied to In terminal, comprising: access address receiving module 410, configuration parameter determining module 420, picture obtain module 430 and picture is looked into See module 440, in which:
Access address receiving module 410 checks request for Target Photo for sending to server, and receives service The picture access address of the Target Photo of device feedback includes the resolution information of Target Photo in picture access address;
Configuration parameter determining module 420 is believed for parsing the resolution information in picture access address, and according to resolution ratio Breath and native en characteristic parameter, the determining and matched picture configuration parameter of Target Photo;
Picture obtains module 430, for picture configuration parameter to be sent to server, so that server is configured according to picture Parameters on target picture is handled, picture after being handled;
Picture checks module 440, picture after the processing for receiving server feedback, and carries out picture and check.
The technical solution of the embodiment of the present invention obtains packet by sending the request of checking for Target Photo to server The Target Photo access address of photo resolution is included, then according to the resolution information and native en in picture access address Characteristic parameter determines the picture configuration parameter of Target Photo and is sent to server, so that server is according to picture configuration parameter Corresponding processing operation carried out to Target Photo, and will treated that picture is sent to terminal carries out picture and check.As it can be seen that this reality The configuration parameter that the comprehensive many factors of example determine Target Photo is applied, corresponding compression processing is carried out to Target Photo, so that Under the premise of guaranteeing image display effect, customer flow can be saved to the greatest extent, solves server pair in the prior art Target Photo is transmitted directly to terminal, causes user to check the more problem of picture consumed flow, reached without processing Do not influence user check picture experience under the premise of, reduce user flow consumption and memory consumption, shorten user and check Waiting time of picture, while using React Native frame, support cross-platform progresss picture processing, save develop at This.
Further, resolution information may include: lateral resolution and longitudinal resolution;Lateral resolution and vertical The setting position in picture access address is set to by least two target separators to resolution ratio;
Correspondingly, configuration parameter determining module 420 may include: resolution unit, for searching in picture access address Target separator, and the information between target separator or between target separator and other separators is extracted as resolution Rate information.
Further, configuration parameter determining module 420 may include: parameter determination unit, for by resolution information with And native en characteristic parameter is matched with the configuration parameter table of comparisons, the determining and matched picture configuration parameter of Target Photo.
Further, it may include: transmission unit that picture, which obtains module 430, for using picture configuration parameter as suffix It is additional to picture access address and is sent to server later.
Further, picture processing unit can be realized by React Native frame, so that method can adapt to The terminal of different operating system.
Provided by any embodiment of the invention be applied to can be performed in picture processing unit provided by the embodiment of the present invention The image processing method of terminal has the corresponding functional module of execution method and beneficial effect.
Embodiment five
Fig. 5 is the structural schematic diagram of one of embodiment of the present invention five picture processing unit.The present embodiment be suitable for pair Picture to be viewed is handled, to reduce the case where customer flow consumes.As shown in figure 5, the picture processing unit is applied to In server, comprising: access address sending module 510, configuration parameter receiving module 520 and picture processing module 530, In:
Access address sending module 510, for checking request for Target Photo according to terminal, by the figure of Target Photo Piece access address is back to terminal, includes the resolution information of Target Photo in picture access address;
Configuration parameter receiving module 520, for receiving the picture configuration parameter of terminal transmission, picture configuration parameter is terminal It is obtained according to the resolution information of Target Photo in picture access address and the determination of terminal native en characteristic parameter;
Picture processing module 530, for being handled according to picture configuration parameter Target Photo, picture after being handled Terminal is fed back to be checked.
The technical solution of the embodiment of the present invention, the request of checking for Target Photo sent by receiving terminal, returns Target Photo access address including photo resolution, so that terminal is according to the resolution information in picture access address and originally Machine environment characteristic parameters determine the picture configuration parameter of Target Photo, and the picture configuration parameter then sent according to terminal is to mesh Piece of marking on a map carries out corresponding processing operation, and will treated that picture is sent to terminal carries out picture and check.As it can be seen that the present embodiment Comprehensive many factors determine the configuration parameter of Target Photo, corresponding compression processing are carried out to Target Photo, so that guaranteeing Under the premise of image display effect, customer flow can be saved to the greatest extent, solve in the prior art server to target Picture is transmitted directly to terminal, causes user to check the more problem of picture consumed flow, reached in not shadow without processing Under the premise of sound user checks picture experience, reduces flow consumption and the memory consumption of user, shorten user and check picture Waiting time, while using React Native frame, support cross-platform progress picture processing, save development cost.
Provided by any embodiment of the invention be applied to can be performed in picture processing unit provided by the embodiment of the present invention The image processing method of server has the corresponding functional module of execution method and beneficial effect.
Embodiment six
It is a kind of structural schematic diagram for computer equipment that the embodiment of the present invention six provides referring to Fig. 6, Fig. 6, such as Fig. 6 institute Show, which includes processor 610, memory 620, input unit 630 and output device 640;The number of processor 610 in equipment It measures and can be one or more, in Fig. 6 by taking a processor 610 as an example;Processor 610, memory 620, input in equipment Device 630 can be connected with output device 640 by bus or other modes, in Fig. 6 for being connected by bus.
Memory 620 is used as a kind of computer readable storage medium, can be used for storing software program, journey can be performed in computer Sequence and module, if the corresponding program instruction/module of the image processing method in the embodiment of the present invention is (for example, at a kind of picture Access address receiving module 410, configuration parameter determining module 420, picture in reason device obtain module 430 and picture checks mould Block 440, alternatively, order access address sending module 510, configuration parameter receiving module 520 in another picture processing unit With picture processing module 530).Software program, instruction and the module that processor 610 is stored in memory 620 by operation, Thereby executing the various function application and data processing of equipment, that is, realize above-mentioned image processing method.
Processor 610 realizes a kind of image processing method, comprising:
It is sent to server and checks request for Target Photo, and receive the Target Photo of the server feedback Picture access address, include the resolution information of the Target Photo in the picture access address;
The resolution information in the picture access address is parsed, and according to the resolution information and the machine ring Border characteristic parameter, the determining and matched picture configuration parameter of the Target Photo;
The picture configuration parameter is sent to the server, so that the server is according to the picture configuration parameter The Target Photo is handled, picture after being handled;
Picture after the processing of the server feedback is received, and carries out picture and checks.
Alternatively, processor 610 realizes another image processing method, comprising:
Request is checked for Target Photo according to terminal, the picture access address of the Target Photo is back to described Terminal includes the resolution information of the Target Photo in the picture access address;
The picture configuration parameter that the terminal is sent is received, the picture configuration parameter is the terminal according to the picture The resolution information of Target Photo and terminal native en characteristic parameter determination obtain in access address;
The Target Photo is handled according to the picture configuration parameter, picture feeds back to the end after being handled End is checked.
Memory 620 can mainly include storing program area and storage data area, wherein storing program area can store operation system Application program needed for system, at least one function;Storage data area, which can be stored, uses created data etc. according to terminal.This Outside, memory 620 may include high-speed random access memory, can also include nonvolatile memory, for example, at least one Disk memory, flush memory device or other non-volatile solid state memory parts.In some instances, memory 620 can be into one Step includes the memory remotely located relative to processor 610, these remote memories can pass through network connection to equipment.On The example for stating network includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Input unit 630 can be used for receiving the number or character information of input, and generate with the user setting of equipment with And the related key signals input of function control.Output device 640 may include that display screen etc. shows equipment.
Embodiment seven
The embodiment of the present invention seven provides a kind of computer readable storage medium, is stored thereon with computer program, the journey A kind of image processing method is realized when sequence is executed by processor, comprising:
It is sent to server and checks request for Target Photo, and receive the Target Photo of the server feedback Picture access address, include the resolution information of the Target Photo in the picture access address;
The resolution information in the picture access address is parsed, and according to the resolution information and the machine ring Border characteristic parameter, the determining and matched picture configuration parameter of the Target Photo;
The picture configuration parameter is sent to the server, so that the server is according to the picture configuration parameter The Target Photo is handled, picture after being handled;
Picture after the processing of the server feedback is received, and carries out picture and checks.
Alternatively, realizing another image processing method when the program is executed by processor, comprising:
Request is checked for Target Photo according to terminal, the picture access address of the Target Photo is back to described Terminal includes the resolution information of the Target Photo in the picture access address;
The picture configuration parameter that the terminal is sent is received, the picture configuration parameter is the terminal according to the picture The resolution information of Target Photo and terminal native en characteristic parameter determination obtain in access address;
The Target Photo is handled according to the picture configuration parameter, picture feeds back to the end after being handled End is checked.
Certainly, a kind of computer readable storage medium provided by the embodiment of the present invention, computer program are executable not It is limited to method operation as described above, the correlation in image processing method provided by any embodiment of the invention can also be performed Operation.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but in many cases, the former is more Good embodiment.Based on this understanding, technical solution of the present invention substantially in other words contributes to the prior art Part can be embodied in the form of software products, which can store in computer readable storage medium In, floppy disk, read-only memory (Read-Only Memory, ROM), random access memory (Random such as computer Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are with so that a computer is set Standby (can be personal computer, server or the network equipment etc.) executes method described in each embodiment of the present invention.
It is worth noting that, included each unit and module are only pressed in the embodiment of above-mentioned picture processing unit It is divided, but is not limited to the above division according to function logic, as long as corresponding functions can be realized;In addition, The specific name of each functional unit is also only for convenience of distinguishing each other, the protection scope being not intended to restrict the invention.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (10)

1. a kind of image processing method characterized by comprising
It is sent to server and checks request for Target Photo, and receive the figure of the Target Photo of the server feedback Piece access address includes the resolution information of the Target Photo in the picture access address;
The resolution information in the picture access address is parsed, and special according to the resolution information and native en Levy parameter, the determining and matched picture configuration parameter of the Target Photo;
The picture configuration parameter is sent to the server, so that the server is according to the picture configuration parameter to institute It states Target Photo to be handled, picture after being handled;
Picture after the processing of the server feedback is received, and carries out picture and checks.
2. the method according to claim 1, wherein the resolution information includes: lateral resolution and indulges To resolution ratio;The lateral resolution and longitudinal resolution are set to the picture access by least two target separators Setting position in address;
Parse the resolution information in the picture access address, comprising:
The target separator is searched in the picture access address, and is extracted between the target separator or described Information between target separator and other separators is as the resolution information.
3. the method according to claim 1, wherein being joined according to the resolution information and native en feature Number, the determining and matched picture configuration parameter of the Target Photo, comprising:
The resolution information and native en characteristic parameter are matched with the configuration parameter table of comparisons, the determining and mesh The matched picture configuration parameter of piece of marking on a map.
4. method according to claim 1-3, which is characterized in that be sent to the picture configuration parameter described Server, comprising:
The server is sent to after the picture configuration parameter is additional to the picture access address as suffix.
5. method according to claim 1-4, it is characterised in that:
The method is realized by React Native frame, so that the method can adapt to the end of different operating system End.
6. a kind of image processing method characterized by comprising
Request is checked for Target Photo according to terminal, and the picture access address of the Target Photo is back to the end It holds, includes the resolution information of the Target Photo in the picture access address;
The picture configuration parameter that the terminal is sent is received, the picture configuration parameter is the terminal according to the picture access The resolution information of Target Photo and terminal native en characteristic parameter determination obtain in address;
The Target Photo is handled according to the picture configuration parameter, after being handled picture feed back to the terminal into Row is checked.
7. a kind of picture processing unit characterized by comprising
Access address receiving module checks request for Target Photo for sending to server, and receives the server The picture access address of the Target Photo of feedback includes that the resolution ratio of the Target Photo is believed in the picture access address Breath;
Configuration parameter determining module, for parsing the resolution information in the picture access address, and according to described point Resolution information and native en characteristic parameter, the determining and matched picture configuration parameter of the Target Photo;
Picture obtains module, for the picture configuration parameter to be sent to the server, so that the server is according to institute It states picture configuration parameter to handle the Target Photo, picture after being handled;
Picture checks module, picture after the processing for receiving the server feedback, and carries out picture and check.
8. a kind of picture processing unit characterized by comprising
Access address sending module, for checking request for Target Photo according to terminal, by the picture of the Target Photo Access address is back to the terminal, includes the resolution information of the Target Photo in the picture access address;
Configuration parameter receiving module, the picture configuration parameter sent for receiving the terminal, the picture configuration parameter is institute Terminal is stated according to the resolution information of Target Photo in the picture access address and the terminal native en characteristic parameter What determination obtained;
Picture processing module is schemed after being handled for being handled according to the picture configuration parameter the Target Photo Piece feeds back to the terminal and is checked.
9. a kind of computer equipment including memory, processor and stores the meter that can be run on a memory and on a processor Calculation machine program, which is characterized in that the processor realizes such as picture as claimed in any one of claims 1 to 5 when executing described program Processing method or image processing method as claimed in claim 6.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor It is realized when execution such as image processing method as claimed in any one of claims 1 to 5, or picture processing as claimed in claim 6 Method.
CN201910324219.XA 2019-04-22 2019-04-22 Image processing method, device, computer equipment and storage medium Pending CN110032697A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910324219.XA CN110032697A (en) 2019-04-22 2019-04-22 Image processing method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910324219.XA CN110032697A (en) 2019-04-22 2019-04-22 Image processing method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110032697A true CN110032697A (en) 2019-07-19

Family

ID=67239712

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910324219.XA Pending CN110032697A (en) 2019-04-22 2019-04-22 Image processing method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110032697A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110322381A (en) * 2019-07-30 2019-10-11 江西师范大学 A kind of PS teaching method Internet-based and system
CN110913088A (en) * 2019-11-22 2020-03-24 合肥高维数据技术有限公司 Picture transmission method and system for IM software platform
CN111159441A (en) * 2019-12-25 2020-05-15 北大方正集团有限公司 Picture editing method, picture editing apparatus, and computer-readable storage medium
CN111223155A (en) * 2019-10-22 2020-06-02 浙江大搜车软件技术有限公司 Image data processing method, image data processing device, computer equipment and storage medium
CN111222047A (en) * 2020-01-03 2020-06-02 深圳市华宇讯科技有限公司 Picture downloading method, device, server and storage medium
CN113900613A (en) * 2021-10-18 2022-01-07 北京博瑞彤芸科技股份有限公司 Picture dynamic adaptation method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050050117A1 (en) * 2003-08-26 2005-03-03 Jeong-Wook Seo Apparatus and method for processing a data backup service for use in a mobile terminal
CN103493500A (en) * 2012-09-04 2014-01-01 华为终端有限公司 Media playback method, control point and terminal
CN109558501A (en) * 2018-11-28 2019-04-02 中国工商银行股份有限公司 A kind of response type image processing method, mobile terminal, server and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050050117A1 (en) * 2003-08-26 2005-03-03 Jeong-Wook Seo Apparatus and method for processing a data backup service for use in a mobile terminal
CN103493500A (en) * 2012-09-04 2014-01-01 华为终端有限公司 Media playback method, control point and terminal
CN109558501A (en) * 2018-11-28 2019-04-02 中国工商银行股份有限公司 A kind of response type image processing method, mobile terminal, server and system

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110322381A (en) * 2019-07-30 2019-10-11 江西师范大学 A kind of PS teaching method Internet-based and system
CN111223155A (en) * 2019-10-22 2020-06-02 浙江大搜车软件技术有限公司 Image data processing method, image data processing device, computer equipment and storage medium
CN111223155B (en) * 2019-10-22 2023-12-05 浙江大搜车软件技术有限公司 Image data processing method, device, computer equipment and storage medium
CN110913088A (en) * 2019-11-22 2020-03-24 合肥高维数据技术有限公司 Picture transmission method and system for IM software platform
CN110913088B (en) * 2019-11-22 2021-11-09 合肥高维数据技术有限公司 Picture transmission method and system for IM software platform
CN111159441A (en) * 2019-12-25 2020-05-15 北大方正集团有限公司 Picture editing method, picture editing apparatus, and computer-readable storage medium
CN111222047A (en) * 2020-01-03 2020-06-02 深圳市华宇讯科技有限公司 Picture downloading method, device, server and storage medium
CN113900613A (en) * 2021-10-18 2022-01-07 北京博瑞彤芸科技股份有限公司 Picture dynamic adaptation method and device

Similar Documents

Publication Publication Date Title
CN110032697A (en) Image processing method, device, computer equipment and storage medium
US10795629B2 (en) Text and custom format information processing method, client, server, and computer-readable storage medium
CN107688538B (en) Script execution method and device and computing equipment
CN111581083B (en) Interface testing method and device, electronic equipment and storage medium
CN108255701B (en) Scene testing method and mobile terminal
CN112615753B (en) Link abnormity tracking method, first node, second node and link
CN106549989B (en) Data transmission method and system, user terminal and application server
CN108875328B (en) Identity verification method, device and storage medium
CN106648971A (en) Crash recovery device, terminal and method
CN102999628A (en) Search method and information search terminal
CN111464352A (en) Call link data processing method and device
CN107733974A (en) A kind of upgrade method of mobile terminal
CN106658666A (en) Method and device for building wireless connection
CN103079194B (en) Service adaptation method, apparatus and system
CN108303926B (en) Electric vehicle control method and computing device
CN111488731B (en) File generation method, device, computer equipment and storage medium
CN108965905A (en) A kind of live data plug-flow and offer and the method, apparatus for obtaining plug-flow address
CN103138871A (en) Server data processing system and method of application program of mobile communication system
CN105068926A (en) Program test method and device thereof
CN103609193B (en) The method and wireless access network equipment of identification terminal type
CN105488199A (en) Mixed form processing method, device and mobile terminal
CN108984375B (en) Content capture method, device and system and storage medium
CN110264035A (en) Configuration method, device, terminal and the storage medium of workflow
CN104079368B (en) A kind of the test data transmission method and server of application software
CN103139227B (en) A kind of application data transmission system and method being applied to mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for 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: 20190719