CN106998487A - image processing method, device and mobile terminal - Google Patents
image processing method, device and mobile terminal Download PDFInfo
- Publication number
- CN106998487A CN106998487A CN201710288992.6A CN201710288992A CN106998487A CN 106998487 A CN106998487 A CN 106998487A CN 201710288992 A CN201710288992 A CN 201710288992A CN 106998487 A CN106998487 A CN 106998487A
- Authority
- CN
- China
- Prior art keywords
- image
- uploaded
- compression
- size data
- mobile 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
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 21
- 230000006835 compression Effects 0.000 claims abstract description 115
- 238000007906 compression Methods 0.000 claims abstract description 115
- 238000012545 processing Methods 0.000 claims abstract description 65
- 238000000034 method Methods 0.000 claims abstract description 24
- 230000015654 memory Effects 0.000 claims description 19
- 238000005516 engineering process Methods 0.000 abstract description 8
- 238000011161 development Methods 0.000 abstract description 5
- 238000004891 communication Methods 0.000 description 23
- 238000001514 detection method Methods 0.000 description 9
- 238000010586 diagram Methods 0.000 description 8
- 238000010295 mobile communication Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 7
- 230000005540 biological transmission Effects 0.000 description 5
- 230000002123 temporal effect Effects 0.000 description 5
- 239000008186 active pharmaceutical agent Substances 0.000 description 4
- 230000015572 biosynthetic process Effects 0.000 description 4
- 230000005236 sound signal Effects 0.000 description 4
- 239000000284 extract Substances 0.000 description 3
- 238000007726 management method Methods 0.000 description 3
- 230000001960 triggered effect Effects 0.000 description 3
- 241000196324 Embryophyta Species 0.000 description 2
- 230000001174 ascending effect Effects 0.000 description 2
- 230000000712 assembly Effects 0.000 description 2
- 238000000429 assembly Methods 0.000 description 2
- 230000001413 cellular effect Effects 0.000 description 2
- 238000010276 construction Methods 0.000 description 2
- 230000005611 electricity Effects 0.000 description 2
- 238000003825 pressing Methods 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 101150012579 ADSL gene Proteins 0.000 description 1
- 102100020775 Adenylosuccinate lyase Human genes 0.000 description 1
- 108700040193 Adenylosuccinate lyases Proteins 0.000 description 1
- 241001062009 Indigofera Species 0.000 description 1
- 230000001133 acceleration Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 150000001875 compounds Chemical class 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 238000005314 correlation function Methods 0.000 description 1
- 239000009730 ganji Substances 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 239000002184 metal Substances 0.000 description 1
- 238000013468 resource allocation Methods 0.000 description 1
- 230000002441 reversible effect Effects 0.000 description 1
- 238000001228 spectrum Methods 0.000 description 1
- 230000001629 suppression Effects 0.000 description 1
- 239000010409 thin film Substances 0.000 description 1
- 230000002463 transducing effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/4408—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving video stream encryption, e.g. re-encrypting a decrypted video stream for redistribution in a home network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/41—Structure of client; Structure of client peripherals
- H04N21/4104—Peripherals receiving signals from specially adapted client devices
- H04N21/4126—The peripheral being portable, e.g. PDAs or mobile phones
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/4402—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
- H04N21/440218—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/83—Generation or processing of protective or descriptive data associated with content; Content structuring
- H04N21/835—Generation of protective data, e.g. certificates
- H04N21/8355—Generation of protective data, e.g. certificates involving usage data, e.g. number of copies or viewings allowed
- H04N21/83555—Generation of protective data, e.g. certificates involving usage data, e.g. number of copies or viewings allowed using a structured language for describing usage rules of the content, e.g. REL
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a kind of image processing method, device and mobile terminal, belong to field of terminal technology.Methods described includes:After the upload image command of user's triggering is received, into the local photograph album of mobile terminal;Image to be uploaded and the image size data of the image to be uploaded that acquisition user selects in the local photograph album;When the image size data of the image to be uploaded is unsatisfactory for uploading image threshold, processing is compressed to the image to be uploaded, obtains compressing image;When the image size data of the compression image, which is met, uploads image threshold, the compression image is uploaded.The present invention is compared by the image size data to image to be uploaded, and control uploads the picture quality of image, it is to avoid be limited to network speed so that rate reduction, and independent of the primary API in mobile terminal system, reduces application and development cost.
Description
Technical field
The present invention relates to field of terminal technology, more particularly to a kind of image processing method, device and mobile terminal.
Background technology
Grown stronger day by day with HTML5 development, R&D direction progressively turns to HTML5 from Android, IOS native applications should
With most of HTML5 relates to the application operatings such as the upload of user's head portrait, picture upload in applying, to improve user to this
The experience of product and dependency degree, user's head portrait in traditional HTML5 applications upload mode and increased income upload plug-in unit by outside, or
Call primary API's (Application Programming Interface, application programming interface) by Open Framework
Mode is uploaded, and the problem of such scheme is present is:By outside increase income upload plug-in unit when, its develop and learning cost compared with
Height, and it is current with the raising of mobile terminal pixel, the image size data stored in local photograph album is uploaded high-quality all than larger
The image of amount, in the case where network is not good, uplink time is long, influences Consumer's Experience;In addition, by calling primary API to carry out
Image is uploaded, then needs that the different corresponding data of terminal system matching should be docked so that development cost is higher, and needs
To cause less stable in the nested one layer of primary shell of HTML applications.
The content of the invention
It is a primary object of the present invention to propose a kind of image processing method, device and mobile terminal, it is intended to solve existing
It is higher in HTML application upload picture qualities in technology, occupied bandwidth, and need to call primary API to carry out image upload, cause
Development cost is higher, less stable the problem of.
To achieve the above object, a kind of image processing method that the present invention is provided, methods described includes:
After the upload image command of user's triggering is received, into the local photograph album of mobile terminal;
Image to be uploaded and the big decimal of image of the image to be uploaded that acquisition user selects in the local photograph album
According to;
When the image size data of the image to be uploaded is unsatisfactory for uploading image threshold, the image to be uploaded is entered
Row compression is handled, and obtains compressing image;
When the image size data of the compression image, which is met, uploads image threshold, the compression image is uploaded.
In addition, to achieve the above object, the present invention proposes a kind of image processing apparatus again, and described device includes:
Instruction reception unit, for after the upload image command of user's triggering is received, into the local phase of mobile terminal
Volume;
Image acquisition unit to be uploaded, for obtaining image to be uploaded that user selects in the local photograph album and described
The image size data of image to be uploaded;
Compression processing unit, for when the image size data of the image to be uploaded be unsatisfactory for upload image threshold when,
Processing is compressed to the image to be uploaded, obtains compressing image;And
First uploading unit, for when the image size data of the compression image meets and uploads image threshold, uploading
The compression image.
In addition, to achieve the above object, the present invention also proposes a kind of mobile terminal, and the mobile terminal includes:Memory,
Processor and the image processing program that can be run on the memory and on the processor is stored in, described image processing journey
The step of sequence is realized described image processing method during the computing device.
A kind of image processing method proposed by the present invention, device and mobile terminal, it is right after user selects image to be uploaded
The image to be uploaded for being unsatisfactory for uploading image threshold is compressed, and obtains compressing image, and upload meets the upload image threshold
Compression image, be compared by the image size data to image to be uploaded, control upload image picture quality, it is to avoid
Network speed influence uploading rate is limited to, and independent of the primary API in mobile terminal system, reduces application and development cost.
Brief description of the drawings
Fig. 1 is the hardware architecture diagram for the mobile terminal for realizing each embodiment of the invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
A kind of method flow diagram for image processing method that Fig. 3 provides for first embodiment of the invention;
A kind of method flow diagram for image processing method that Fig. 4 provides for second embodiment of the invention;
A kind of method flow diagram for image processing method that Fig. 5 provides for third embodiment of the invention;
A kind of schematic diagram for image processing apparatus that Fig. 6 provides for fourth embodiment of the invention;
A kind of schematic diagram for image processing apparatus that Fig. 7 provides for fifth embodiment of the invention;
A kind of schematic diagram for image processing apparatus that Fig. 8 provides for sixth embodiment of the invention.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Describe to realize the mobile terminal of each embodiment of the invention referring now to accompanying drawing.In follow-up description, use
For represent element such as " module ", " part " or " unit " suffix only for be conducive to the present invention explanation, itself
Not specific meaning.Therefore, " module " can be used mixedly with " part ".
Mobile terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as moving
Phone, smart phone, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), PAD (tablet personal computer), PMP
The mobile terminal of (portable media player), guider etc. and such as numeral TV, desktop computer etc. are consolidated
Determine terminal.Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that, except being used in particular for movement
Outside the element of purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Fig. 1 illustrates for the hardware configuration of the mobile terminal of realization each embodiment of the invention.
Mobile terminal 1 00 can include wireless communication unit 110, A/V (audio/video) input block 120, user's input
Unit 130, sensing unit 140, output unit 150, memory 160, interface unit 170, controller 180 and power subsystem 190
Etc..Fig. 1 shows the mobile terminal with various assemblies, it should be understood that being not required for implementing all groups shown
Part.More or less components can alternatively be implemented.The element of mobile terminal will be discussed in more detail below.
Wireless communication unit 110 generally includes one or more assemblies, and it allows mobile terminal 1 00 and wireless communication system
Or the radio communication between network.For example, wireless communication unit can include broadcasting reception module 111, mobile communication module
112nd, at least one in wireless Internet module 113, short range communication module 114 and location information module 115.
Broadcasting reception module 111 receives broadcast singal and/or broadcast via broadcast channel from external broadcast management server
Relevant information.Broadcast channel can include satellite channel and/or terrestrial channel.Broadcast management server can be generated and sent
The broadcast singal and/or broadcast related information generated before the server or reception of broadcast singal and/or broadcast related information
And send it to the server of terminal.Broadcast singal can include TV broadcast singals, radio signals, data broadcasting
Signal etc..Moreover, broadcast singal may further include the broadcast singal combined with TV or radio signals.Broadcast phase
Closing information can also provide via mobile communications network, and in this case, broadcast related information can be by mobile communication mould
Block 112 is received.Broadcast singal can exist in a variety of manners, for example, it can be with DMB (DMB) electronics
The form of program guide (EPG), the electronic service guidebooks (ESG) of digital video broadcast-handheld (DVB-H) etc. and exist.Broadcast
Receiving module 111 can receive signal broadcast by using various types of broadcast systems.Especially, broadcasting reception module 111
Can be wide by using such as multimedia broadcasting-ground (DMB-T), DMB-satellite (DMB-S), digital video
Broadcast-hand-held (DVB-H), forward link media (MediaFLO@) Radio Data System, received terrestrial digital broadcasting integrated service
Etc. (ISDB-T) digit broadcasting system receives digital broadcasting.Broadcasting reception module 111, which may be constructed such that, to be adapted to provide for extensively
Broadcast the various broadcast systems and above-mentioned digit broadcasting system of signal.Via broadcasting reception module 111 receive broadcast singal and/
Or broadcast related information can be stored in memory 160 (or other types of storage medium).
Mobile communication module 112 sends radio signals to base station (for example, access point, node B etc.), exterior terminal
And in server at least one and/or receive from it radio signal.Such radio signal can be logical including voice
Talk about signal, video calling signal or the various types of data for sending and/or receiving according to text and/or Multimedia Message.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.The module can be internally or externally
It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by the module can include WLAN (WLAN) (Wi-Fi), Wibro
(WiMAX), Wimax (worldwide interoperability for microwave accesses), HSDPA (high-speed downlink packet access) etc..
Short range communication module 114 is the module for supporting junction service.Some examples of short-range communication technology include indigo plant
ToothTM, radio frequency identification (RFID), Infrared Data Association (IrDA), ultra wide band (UWB), purple honeybeeTMEtc..
Location information module 115 is the module for checking or obtaining the positional information of mobile terminal.Location information module
Typical case be GPS (global positioning system).According to current technology, GPS module 115, which is calculated, comes from three or more satellites
Range information and correct time information and for the Information application triangulation of calculating so that according to longitude, latitude
Highly accurately calculate three-dimensional current location information.Currently, defended for calculating the method for position and temporal information using three
Star and the position calculated by using other satellite correction and the error of temporal information.In addition, GPS module 115
Can be by Continuous plus current location information in real time come calculating speed information.
A/V input blocks 120 are used to receive audio or video signal.A/V input blocks 120 can include the He of camera 121
Microphone 1220, the static map that 121 pairs of camera is obtained in video acquisition mode or image capture mode by image capture apparatus
The view data of piece or video is handled.Picture frame after processing may be displayed on display unit 151.At camera 121
Picture frame after reason can be stored in memory 160 (or other storage mediums) or be carried out via wireless communication unit 110
Send, two or more cameras 1210 can be provided according to the construction of mobile terminal.Microphone 122 can be in telephone relation mould
Sound (voice data) is received via microphone in formula, logging mode, speech recognition mode etc. operational mode, and can be by
Such acoustic processing is voice data.Audio (voice) data after processing can be changed in the case of telephone calling model
For the form output of mobile communication base station can be sent to via mobile communication module 112.Microphone 122 can implement all kinds
Noise eliminate (or suppress) algorithm with eliminate noise that (or suppression) produce during receiving and sending audio signal or
Person disturbs.
The order that user input unit 130 can be inputted according to user generates key input data to control each of mobile terminal
Plant operation.User input unit 130 allows user to input various types of information, and can include keyboard, metal dome, touch
Plate (for example, detection due to being touched caused by resistance, pressure, electric capacity etc. change sensitive component), roller, rocking bar etc.
Deng.Especially, when touch pad is superimposed upon on display unit 151 in the form of layer, touch-screen can be formed.
Sensing unit 140 detects the current state of mobile terminal 1 00, (for example, mobile terminal 1 00 opens or closes shape
State), the position of mobile terminal 1 00, user is for the presence or absence of contact (that is, touch input) of mobile terminal 1 00, mobile terminal
The acceleration or deceleration movement of 100 orientation, mobile terminal 1 00 and direction etc., and generate for controlling mobile terminal 1 00
The order of operation or signal.For example, when mobile terminal 1 00 is embodied as sliding-type mobile phone, sensing unit 140 can be sensed
The sliding-type phone is opening or closing.In addition, sensing unit 140 can detect power subsystem 190 whether provide electric power or
Whether person's interface unit 170 couples with external device (ED).Sensing unit 140, which can include proximity transducer 1410, to be combined below
This is described touch-screen.
Interface unit 170 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 1 00.For example,
External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing
Line FPDP, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Identification module can be that storage is used to verify that user uses each of mobile terminal 1 00
Plant information and subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) can be included
Etc..In addition, the device (hereinafter referred to as " identifying device ") with identification module can take the form of smart card, therefore, know
Other device can be connected via port or other attachment means with mobile terminal 1 00.Interface unit 170 can be used for reception and come from
The input (for example, data message, electric power etc.) of external device (ED) and the input received is transferred in mobile terminal 1 00
One or more elements can be used for transmitting data between mobile terminal and external device (ED).
In addition, when mobile terminal 1 00 is connected with external base, interface unit 170 may be used as allowing by it by electricity
Power provides to the path of mobile terminal 1 00 from base or may be used as allowing passing through it from the various command signals that base is inputted
It is transferred to the path of mobile terminal.The various command signals or electric power inputted from base may be used as being used to recognize that mobile terminal is
The no signal being accurately fitted within base.Output unit 150 is configured to provide defeated with vision, audio and/or tactile manner
Go out signal (for example, audio signal, vision signal, alarm signal, vibration signal etc.).Output unit 150 can include display
Unit 151, dio Output Modules 152, alarm unit 153 etc..
Display unit 151 may be displayed on the information handled in mobile terminal 1 00.For example, when mobile terminal 1 00 is in electricity
When talking about call mode, display unit 151 can be shown with conversing or other communicating (for example, text messaging, multimedia file
Download etc.) related user interface (UI) or graphic user interface (GUI).When mobile terminal 1 00 is in video calling pattern
Or during image capture mode, display unit 151 can show the image of capture and/or the image of reception, show video or figure
UI or GUI of picture and correlation function etc..
Meanwhile, when display unit 151 and touch pad in the form of layer it is superposed on one another to form touch-screen when, display unit
151 may be used as input unit and output device.Display unit 151 can include liquid crystal display (LCD), thin film transistor (TFT)
In LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. at least
It is a kind of.Some in these displays may be constructed such that transparence to allow user to be watched from outside, and this is properly termed as transparent
Display, typical transparent display can be, for example, TOLED (transparent organic light emitting diode) display etc..According to specific
Desired embodiment, mobile terminal 1 00 can include two or more display units (or other display devices), for example, moving
Dynamic terminal can include outernal display unit (not shown) and inner display unit (not shown).Touch-screen can be used for detection to touch
Input pressure and touch input position and touch input area.
Dio Output Modules 152 can mobile terminal be in call signal reception pattern, call mode, logging mode,
It is that wireless communication unit 110 is received or in memory 160 when under the isotypes such as speech recognition mode, broadcast reception mode
The voice data transducing audio signal of middle storage and it is output as sound.Moreover, dio Output Modules 152 can be provided and movement
The audio output (for example, call signal receives sound, message sink sound etc.) for the specific function correlation that terminal 100 is performed.
Dio Output Modules 152 can include loudspeaker, buzzer etc..
Alarm unit 153 can provide output to notify event to mobile terminal 1 00.Typical event can be with
Including calling reception, message sink, key signals input, touch input etc..In addition to audio or video is exported, alarm unit
153 can provide output in a different manner with the generation of notification event.For example, alarm unit 153 can be in the form of vibration
Output is provided, when receiving calling, message or some other entrance communications (incomingcommunication), alarm list
Member 153 can provide tactile output (that is, vibrating) to notify to user.Exported by providing such tactile, even in
When the mobile phone of user is in the pocket of user, user also can recognize that the generation of various events.Alarm unit 153
The output of the generation of notification event can be provided via display unit 151 or dio Output Modules 152.
Memory 160 can store software program of the processing performed by controller 180 and control operation etc., Huo Zheke
Temporarily to store oneself data (for example, telephone directory, message, still image, video etc.) through exporting or will export.And
And, memory 160 can store the vibration of various modes on being exported when touching and being applied to touch-screen and audio signal
Data.
Memory 160 can include the storage medium of at least one type, and the storage medium includes flash memory, hard disk, many
Media card, card-type memory (for example, SD or DX memories etc.), random access storage device (RAM), static random-access storage
Device (SRAM), read-only storage (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory
(PROM), magnetic storage, disk, CD etc..Moreover, mobile terminal 1 00 can be with performing memory by network connection
The network storage device cooperation of 160 store function.
The overall operation of the generally control mobile terminal of controller 180.For example, controller 180 is performed and voice call, data
Communication, video calling etc. related control and processing.In addition, controller 180 can include being used to reproduce (or playback) many matchmakers
The multi-media module 1810 of volume data, multi-media module 1810 can be constructed in controller 180, or can be structured as and control
Device 180 processed is separated.Controller 180 can be with execution pattern identifying processing, by the handwriting input performed on the touchscreen or figure
Piece draws input and is identified as character or image.
Power subsystem 190 receives external power or internal power under the control of controller 180 and provides operation each member
Appropriate electric power needed for part and component.
Various embodiments described herein can be with use such as computer software, hardware or its any combination of calculating
Machine computer-readable recording medium is implemented.Implement for hardware, embodiment described herein can be by using application-specific IC
(ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), scene can
Programming gate array (FPGA), processor, controller, microcontroller, microprocessor, it is designed to perform function described herein
At least one of electronic unit is implemented, and in some cases, such embodiment can be implemented in controller 180.
For software implementation, the embodiment of such as process or function can be with allowing to perform the single of at least one function or operation
Software module is implemented.Software code can by the software application (or program) write with any appropriate programming language Lai
Implement, software code can be stored in memory 160 and be performed by controller 180.
So far, oneself according to its function through describing mobile terminal.Below, for the sake of brevity, will description such as folded form,
Slide type mobile terminal in various types of mobile terminals of board-type, oscillating-type, slide type mobile terminal etc. is as showing
Example.Therefore, the present invention can be applied to any kind of mobile terminal, and be not limited to slide type mobile terminal.
Mobile terminal 1 00 as shown in Figure 1 may be constructed such that using via frame or packet transmission data it is all if any
Line and wireless communication system and satellite-based communication system are operated.
The communication system for describing wherein be operated according to the mobile terminal of the present invention referring now to Fig. 2.
Such communication system can use different air interfaces and/or physical layer.For example, used by communication system
Air interface includes such as frequency division multiple access (FDMA), time division multiple acess (TDMA), CDMA (CDMA) and universal mobile communications system
System (UMTS) (especially, Long Term Evolution (LTE)), global system for mobile communications (GSM) etc..As non-limiting example, under
The description in face is related to cdma communication system, but such teaching is equally applicable to other types of system.
With reference to Fig. 2, cdma wireless communication system can include multiple mobile terminal 1s 00, multiple base stations (BS) 270, base station
Controller (BSC) 275 and mobile switching centre (MSC) 280.MSC280 is configured to and Public Switched Telephony Network (PSTN)
290 form interface.MSC280 is also structured to the BSC275 formation interfaces with that can be couple to base station 270 via back haul link.
If any of interface that back haul link can be known according to Ganji is constructed, the interface includes such as E1/T1, ATM, IP,
PPP, frame relay, HDSL, ADSL or xDSL.It will be appreciated that system can include multiple BSC2750 as shown in Figure 2.
Each BS270 can service one or more subregions (or region), by multidirectional antenna or the day of sensing specific direction
Each subregion of line covering is radially away from BS270.Or, each subregion can be by two or more for diversity reception
Antenna is covered.Each BS270 may be constructed such that the multiple frequency distribution of support, and each frequency distribution has specific frequency spectrum
(for example, 1.25MHz, 5MHz etc.).
What subregion and frequency were distributed, which intersects, can be referred to as CDMA Channel.BS270 can also be referred to as base station transceiver
System (BTS) or other equivalent terms.In this case, term " base station " can be used for broadly representing single
BSC275 and at least one BS270.Base station can also be referred to as " cellular station ".Or, specific BS270 each subregion can be claimed
For multiple cellular stations.
As shown in Figure 2, broadcast singal is sent to the mobile terminal operated in system by broadcsting transmitter (BT) 295
100.Broadcasting reception module 111 as shown in Figure 1 is arranged at mobile terminal 1 00 to receive the broadcast sent by BT295
Signal.In fig. 2 it is shown that several global positioning system (GPS) satellites 300.Satellite 300 helps to position multiple mobile terminals
At least one in 100.
In fig. 2, multiple satellites 300 are depicted, it is understood that be, it is possible to use any number of satellite obtains useful
Location information.GPS module 115 as shown in Figure 1 is generally configured to coordinate with satellite 300 to obtain desired positioning letter
Breath.GPS tracking techniques or outside GPS tracking techniques are substituted, the other of the position that can track mobile terminal can be used
Technology.In addition, at least one gps satellite 300 can optionally or additionally handle satellite dmb transmission.
As a typical operation of wireless communication system, BS270 receives the reverse link from various mobile terminal 1s 00
Signal.Mobile terminal 1 00 generally participates in call, information receiving and transmitting and other types of communication.It is each anti-that certain base station 270 is received
Handled to link signal in specific BS270.The data of acquisition are forwarded to the BSC275 of correlation.BSC provides call
Resource allocation and the mobile management function of coordination including the soft switching process between BS270.BSC275 is also by the number received
According to MSC280 is routed to, it is provided for the extra route service with PSTN290 formation interfaces.Similarly, PSTN290 with
MSC280 formation interfaces, MSC and BSC275 formation interface, and BSC275 correspondingly control BS270 with by forward link signals
It is sent to mobile terminal 1 00.
Based on above-mentioned mobile terminal hardware configuration and communication system, each embodiment of the inventive method is proposed.
As shown in figure 3, first embodiment of the invention proposes a kind of image processing method, including:
Step 301, after the upload image command of user's triggering is received, into the local photograph album of mobile terminal.
Step 302, the big decimal of the image of image to be uploaded and image to be uploaded that user selects in local photograph album is obtained
According to.
Step 303, when the image size data of image to be uploaded is unsatisfactory for uploading image threshold, image to be uploaded is entered
Row compression is handled, and obtains compressing image.
Step 304, when the image size data for compressing image, which is met, uploads image threshold, compression image is uploaded.
In step 301, when user is applied using the HTML in mobile terminal 1 00, the detection user of sensing unit 140 exists
Upload image-region in HTML applications is by the touch control operation to touch-screen, and the upload image-region includes:On user's head portrait
Pass the image upload region in region, chat window and the image in social content issue uploads region, the touch control operation includes
Image-region is uploaded to click, double-click and long-press operation.After the upload image command of user's triggering is received, into mobile terminal
100 local photograph album, is shown the local photograph album of mobile terminal 1 00 according to default display mode by display unit 151,
The default aobvious mode includes:According to photograph album carry out classification show, according to the temporal information of image in the way of ascending order or descending
Shown and there is A-Z to be ranked up according to the initial of name information according to the name information of image.
Preferably, after the upload image command of user's triggering is received, according to associated application, enabling selected association should
With the network album into the associated application specifically, can read the list of application installed in mobile terminal 1 00, extract
The HTML of the upload image command triggered with active user applies associated application, obtains the associated application of user's selection, opens
Move the associated application, the network album into the associated application.Such as, user refers in HTML using the upload image of upper triggering
After order, the associated application of current HTML applications is microblogging and cloud disk, when user selects microblogging, opens microblogging and enters microblogging phase
Volume, the image of upload needed for select with user in network album, it is to avoid being limited to local photograph album selection uploads image, expansion
Range of choice, increases Consumer's Experience, and reduce to local without mass storage image and take local storage space.
In step 302, after local photograph album is entered, the figure that user uploads needed for being selected by point touching screen
Picture, image to be uploaded and the image size data of image to be uploaded that acquisition user selects in local photograph album, the image size
Data include width, height and picture quality coefficient, wherein, the unit of width and height includes pixel unit and long measure.
In step 303, the image size data of image to be uploaded is compared with uploading image threshold, uploads image
Threshold value depends on the upload image-region currently applied, such as, and head portrait, which uploads region, needs picture quality coefficient relatively low, and chats
Image in skylight opening, which uploads region, needs picture quality coefficient to upload region higher than head portrait, therefore, needs to read when comparing
The setting value of upload image threshold in current HTML applications.After contrast, for being unsatisfactory for uploading image threshold
Image to be uploaded needs to be compressed processing, obtains compressing image, compression processing includes:Adjust width, height and picture quality
Coefficient.
In step 304, by having obtained compression image after being compressed processing to image to be uploaded, then image will be compressed
It is compared with uploading image threshold, when the image size data for compressing image, which is met, uploads image threshold, uploads compression figure
Picture, so that, it is ensured that the compression image of upload is satisfied with upload image threshold, it is to avoid the higher image of picture quality is accounted for when uploading
With unnecessary bandwidth.
As shown in figure 4, second embodiment of the invention proposes a kind of image processing method, including:
Step 401, after the upload image command of user's triggering is received, into the local photograph album of mobile terminal.
Step 402, the big decimal of the image of image to be uploaded and image to be uploaded that user selects in local photograph album is obtained
According to.
Step 403, when the image size data of image to be uploaded, which is met, uploads image threshold, image to be uploaded is uploaded.
In step 401, the touch control operation of upload image-region of the detection user in HTML applications, is receiving user
After the upload image command of triggering, into local photograph album, the image in local photograph album is shown, so that user selects figure to be uploaded
Picture.
In step 402, the image to be uploaded and the image of image to be uploaded that acquisition user selects in local photograph album are big
Small data, the image size data includes width, height and picture quality coefficient.
In step 403, the image size data of image to be uploaded is compared with uploading image threshold, uploads image
Threshold value depends on the upload image-region currently applied, such as, and head portrait, which uploads region, needs picture quality coefficient relatively low, and chats
Image in skylight opening, which uploads region, needs picture quality coefficient to upload region higher than head portrait, therefore, needs to read when comparing
The setting value of upload image threshold in current HTML applications.After contrast, when the image size data of image to be uploaded is met
When uploading image threshold, without carrying out additional compression processing to image to be uploaded, image to be uploaded is directly uploaded.
As shown in figure 5, third embodiment of the invention proposes a kind of image processing method, including:
Step 501, after the upload image command of user's triggering is received, into the local photograph album of mobile terminal.
Step 502, the big decimal of the image of image to be uploaded and image to be uploaded that user selects in local photograph album is obtained
According to.
Step 503, when the image size data of image to be uploaded is unsatisfactory for uploading image threshold, image to be uploaded is entered
Row compression is handled, and obtains compressing image.
Step 504, when the image size data for compressing image is unsatisfactory for uploading image threshold, compression image is weighed
Compound compression is handled, until when the image size data for compressing image meets and uploads image threshold, uploading compression image.
In step 501, the touch control operation of upload image-region of the detection user in HTML applications, is receiving user
After the upload image command of triggering, into local photograph album, the image in local photograph album is shown, so that user selects figure to be uploaded
Picture.
In step 502, the image to be uploaded and the image of image to be uploaded that acquisition user selects in local photograph album are big
Small data, the image size data includes width, height and picture quality coefficient.
In step 503, the image size data of image to be uploaded is compared with uploading image threshold, uploads image
Threshold value depends on the upload image-region currently applied, and needs to read the upload image threshold in current HTML applications when comparing
The setting value of value.After contrast, need to be compressed processing for the image to be uploaded for being unsatisfactory for uploading image threshold,
Obtain compressing image, compression processing includes:Adjust width, height and picture quality coefficient.
In step 504, after the first second compression, upload image threshold is disclosure satisfy that in order to ensure to upload image, is needed
The image size data for compressing image is compared with uploading image threshold, after comparison, when the image size of compression image
When data are unsatisfactory for uploading image threshold, repeated compression processing is carried out to compression image, after the processing of each second compression, be required to by
The image size data for compressing image is compared with uploading image threshold, is met until when the image size data of compression image
When uploading image threshold, compression image is uploaded.
Preferably, the compression number of times that compression image carries out repeated compression processing is obtained;
When compressing number of times more than preset times, stop repeated compression.
Specifically, in order to ensure the stability of a system, repeated compression always is prevented, it is impossible to returning result, by repeating to press
The compression number of times of contracting processing is counted, and when compressing number of times more than preset times, stops repeated compression.
Preferably, when carrying out repeated compression processing to compression image, according to default reduced rule, successive adjustment compression system
Number.
Specifically, when compressing first, initial compression coefficient can be set, repeated compression processing is being carried out to compression image
When, on the basis of initial compression coefficient, if the image size data of compression image is higher than image threshold is uploaded, according to pre-
If reduced rule, the compressed coefficient is gradually improved, if the image size data of compression image is less than image threshold is uploaded, according to
Default reduced rule, gradually reduces the compressed coefficient.Such as, the compressed coefficient is set as to the decimal between 0-1, initial compression coefficient
It is set as 0.7, when compressing the image size data of image higher than image threshold is uploaded, gradually by the compressed coefficient in initial compression
Coefficient improves 0.1, when compressing the image size data of image less than image threshold is uploaded, is gradually initially pressing the compressed coefficient
Contracting coefficient reduces 0.1, by constantly adjusting the compressed coefficient so that it is corresponding that compression image adapts to upload image threshold progress
Adjustment, it is to avoid ceaselessly compress processing.
The present invention further provides a kind of image processing apparatus.
As shown in fig. 6, fourth embodiment of the invention proposes a kind of image processing apparatus, including:
Instruction reception unit 61, for after the upload image command of user's triggering is received, into the local of mobile terminal
Photograph album;
Image acquisition unit 62 to be uploaded, for obtaining image to be uploaded that user selects in local photograph album and to be uploaded
The image size data of image;
Compression processing unit 63 is right for when the image size data of image to be uploaded is unsatisfactory for uploading image threshold
Image to be uploaded is compressed processing, obtains compressing image;And
First uploading unit 64, for when compress image image size data meet upload image threshold when, upper pressure transmission
Contract drawing picture.
Specifically, in instruction reception unit 61, when user is applied using the HTML in mobile terminal 1 00, sensing unit
Upload image-region of the 140 detection users in HTML applications passes through the touch control operation to touch-screen, the upload image-region bag
Include:The image that the image that user's head portrait is uploaded in region, chat window is uploaded in region and social content issue uploads region,
The touch control operation includes upload image-region and clicks, double-clicks and long-press operation.Receiving the upload image command of user's triggering
Afterwards, into the local photograph album of mobile terminal 1 00, by display unit 151 by the local photograph album of mobile terminal 1 00 according to default aobvious
The mode of showing is shown that the default aobvious mode includes:According to photograph album carry out classification show, according to the temporal information of image according to liter
Sequence or the mode of descending are shown and have A-Z to be ranked up according to the initial of name information according to the name information of image.
Preferably, after the upload image command of user's triggering is received, according to associated application, enabling selected association should
With the network album into the associated application specifically, can read the list of application installed in mobile terminal 1 00, extract
The HTML of the upload image command triggered with active user applies associated application, obtains the associated application of user's selection, opens
Move the associated application, the network album into the associated application.Such as, user refers in HTML using the upload image of upper triggering
After order, the associated application of current HTML applications is microblogging and cloud disk, when user selects microblogging, opens microblogging and enters microblogging phase
Volume, the image of upload needed for select with user in network album, it is to avoid being limited to local photograph album selection uploads image, expansion
Range of choice, increases Consumer's Experience, and reduce to local without mass storage image and take local storage space.
In image acquisition unit 62 to be uploaded, after local photograph album is entered, user can be selected by point touching screen
The image of required upload, obtains the big decimal of the image of image to be uploaded and image to be uploaded that user selects in local photograph album
According to, the image size data includes width, height and picture quality coefficient, wherein, the unit of width and height includes pixel list
Position and long measure.
In compression processing unit 63, the image size data of image to be uploaded is compared with uploading image threshold,
Upload image threshold and depend on the upload image-region currently applied, such as, head portrait, which uploads region, needs picture quality coefficient
It is relatively low, and the image in chat window uploads region and needs picture quality coefficient to upload region higher than head portrait, therefore, when comparing
Need to read the setting value for uploading image threshold in current HTML applications.After contrast, for being unsatisfactory for upper blit
As the image to be uploaded of threshold value needs to be compressed processing, obtain compressing image, compression processing includes:Adjust width, height and
Picture quality coefficient.
In the first uploading unit 64, compression image has been obtained by being compressed to image to be uploaded after processing, then will
Compression image is compared with uploading image threshold, when the image size data for compressing image, which is met, uploads image threshold, on
Pressure transmission contract drawing picture, so that, it is ensured that the compression image of upload is satisfied with upload image threshold, it is to avoid the higher image of picture quality exists
Unnecessary bandwidth is taken during upload.
As shown in fig. 7, fifth embodiment of the invention proposes a kind of image processing apparatus, including:
Instruction reception unit 71, for after the upload image command of user's triggering is received, into the local of mobile terminal
Photograph album;
Image acquisition unit 72 to be uploaded, for obtaining image to be uploaded that user selects in local photograph album and to be uploaded
The image size data of image;And
Second uploading unit 73, for when the image size data of image to be uploaded meets and uploads image threshold, uploading
Image to be uploaded.
In instruction reception unit 71, the touch control operation of upload image-region of the detection user in HTML applications is connecing
After the upload image command for receiving user's triggering, into local photograph album, the image in local photograph album is shown, so that user's selection is treated
Upload image.
In image acquisition unit 72 to be uploaded, the image to be uploaded that is selected in local photograph album of user is obtained and to be uploaded
The image size data of image, the image size data includes width, height and picture quality coefficient.
In the second uploading unit 73, the image size data of image to be uploaded is compared with uploading image threshold,
Upload image threshold and depend on the upload image-region currently applied, such as, head portrait, which uploads region, needs picture quality coefficient
It is relatively low, and the image in chat window uploads region and needs picture quality coefficient to upload region higher than head portrait, therefore, when comparing
Need to read the setting value for uploading image threshold in current HTML applications.After contrast, when the image size of image to be uploaded
When data meet upload image threshold, without carrying out additional compression processing to image to be uploaded, image to be uploaded is directly uploaded.
As shown in figure 8, sixth embodiment of the invention proposes a kind of image processing apparatus, including:
Instruction reception unit 81, for after the upload image command of user's triggering is received, into the local of mobile terminal
Photograph album;
Image acquisition unit 82 to be uploaded, for obtaining image to be uploaded that user selects in local photograph album and to be uploaded
The image size data of image;
Compression processing unit 83 is right for when the image size data of image to be uploaded is unsatisfactory for uploading image threshold
Image to be uploaded is compressed processing, obtains compressing image;And
3rd uploading unit 84, for when the image size data for compressing image is unsatisfactory for uploading image threshold, to pressure
Contract drawing picture carries out repeated compression processing, when when the image size data satisfaction upload image threshold of compression image, upper pressure transmission
Contract drawing picture.
In instruction reception unit 81, the touch control operation of upload image-region of the detection user in HTML applications is connecing
After the upload image command for receiving user's triggering, into local photograph album, the image in local photograph album is shown, so that user's selection is treated
Upload image.
In image acquisition unit 82 to be uploaded, the image to be uploaded that is selected in local photograph album of user is obtained and to be uploaded
The image size data of image, the image size data includes width, height and picture quality coefficient.
In compression processing unit 83, the image size data of image to be uploaded is compared with uploading image threshold,
Upload image threshold and depend on the upload image-region currently applied, need to read when comparing upper in current HTML applications
Pass the setting value of image threshold.After contrast, need to carry out for the image to be uploaded for being unsatisfactory for uploading image threshold
Compression is handled, and obtains compressing image, compression processing includes:Adjust width, height and picture quality coefficient.
In the 3rd uploading unit 84, after the first second compression, upload image is disclosure satisfy that in order to ensure to upload image
Threshold value is, it is necessary to the image size data for compressing image is compared with uploading image threshold, after comparison, when the figure of compression image
When being unsatisfactory for uploading image threshold as size data, repeated compression processing is carried out to compression image, after each second compression processing,
Need the image size data for compressing image being compared with uploading image threshold, until when the big decimal of image of compression image
During according to meeting upload image threshold, compression image is uploaded.
Preferably, the device also includes:
Number of times acquiring unit is compressed, the compression number of times of repeated compression processing is carried out for obtaining compression image;And
Stop compression unit, for when compressing number of times more than preset times, stopping repeated compression.
Specifically, in order to ensure the stability of a system, repeated compression always is prevented, it is impossible to returning result, by repeating to press
The compression number of times of contracting processing is counted, and when compressing number of times more than preset times, stops repeated compression.
Preferably, the device also includes:
Compressed coefficient adjustment unit, for when carrying out repeated compression processing to compression image, according to default reduced rule,
The successive adjustment compressed coefficient.
Specifically, when compressing first, initial compression coefficient can be set, repeated compression processing is being carried out to compression image
When, on the basis of initial compression coefficient, if the image size data of compression image is higher than image threshold is uploaded, according to pre-
If reduced rule, the compressed coefficient is gradually improved, if the image size data of compression image is less than image threshold is uploaded, according to
Default reduced rule, gradually reduces the compressed coefficient.Such as, the compressed coefficient is set as to the decimal between 0-1, initial compression coefficient
It is set as 0.7, when compressing the image size data of image higher than image threshold is uploaded, gradually by the compressed coefficient in initial compression
Coefficient improves 0.1, when compressing the image size data of image less than image threshold is uploaded, is gradually initially pressing the compressed coefficient
Contracting coefficient reduces 0.1, by constantly adjusting the compressed coefficient so that it is corresponding that compression image adapts to upload image threshold progress
Adjustment, it is to avoid ceaselessly compress processing.
Seventh embodiment of the invention proposes a kind of mobile terminal, and the mobile terminal includes:Memory, processor and it is stored in
On memory and the image processing program that can run on a processor, what above-mentioned image processing program was realized when being executed by processor
The step of image processing method, including:
After the upload image command of user's triggering is received, into the local photograph album of mobile terminal;
Image to be uploaded and the image size data of image to be uploaded that acquisition user selects in local photograph album;
When the image size data of image to be uploaded is unsatisfactory for uploading image threshold, place is compressed to image to be uploaded
Reason, obtains compressing image;
When the image size data for compressing image, which is met, uploads image threshold, compression image is uploaded.
In embodiments of the present invention, when user is applied using the HTML in mobile terminal 1 00, the detection of sensing unit 140 is used
Upload image-region of the family in HTML applications is by the touch control operation to touch-screen, and the upload image-region includes:Use account
Region, the touch control operation are uploaded as the image uploaded in region, chat window uploads the image in region and social content issue
Click, double-click and long-press operation including uploading image-region.After the upload image command of user's triggering is received, into movement
The local photograph album of terminal 100, is carried out the local photograph album of mobile terminal 1 00 according to default display mode by display unit 151
It has been shown that, the default aobvious mode includes:According to photograph album carry out classification show, according to the temporal information of image according to ascending order or descending
Mode is shown and has A-Z to be ranked up according to the initial of name information according to the name information of image.
Preferably, after the upload image command of user's triggering is received, according to associated application, enabling selected association should
With the network album into the associated application specifically, can read the list of application installed in mobile terminal 1 00, extract
The HTML of the upload image command triggered with active user applies associated application, obtains the associated application of user's selection, opens
Move the associated application, the network album into the associated application.Such as, user refers in HTML using the upload image of upper triggering
After order, the associated application of current HTML applications is microblogging and cloud disk, when user selects microblogging, opens microblogging and enters microblogging phase
Volume, the image of upload needed for select with user in network album, it is to avoid being limited to local photograph album selection uploads image, expansion
Range of choice, increases Consumer's Experience, and reduce to local without mass storage image and take local storage space.
In embodiments of the present invention, after local photograph album is entered, user can be by uploading needed for the selection of point touching screen
Image, obtain the image size data of the image to be uploaded that is selected in local photograph album of user and image to be uploaded, the image
Size data includes width, height and picture quality coefficient, wherein, the unit of width and height includes pixel unit and length list
Position.
In embodiments of the present invention, the image size data of image to be uploaded is compared with uploading image threshold, on
Pass image threshold and depend on the upload image-region currently applied, such as, head portrait upload region need picture quality coefficient compared with
It is low, and the image in chat window uploads region and needs picture quality coefficient to upload region higher than head portrait, therefore, is needed when comparing
Read the setting value of the upload image threshold in current HTML applications.After contrast, for being unsatisfactory for uploading image
The image to be uploaded of threshold value needs to be compressed processing, obtains compressing image, compression processing includes:Adjust width, height and figure
As quality coefficient.
In embodiments of the present invention, compression image has been obtained by being compressed to image to be uploaded after processing, then will pressure
Contract drawing picture is compared with uploading image threshold, when the image size data for compressing image, which is met, uploads image threshold, uploads
Image is compressed, so that, it is ensured that the compression image of upload is satisfied with upload image threshold, it is to avoid the higher image of picture quality is upper
Unnecessary bandwidth is taken during biography.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property is included, so that process, method, article or device including a series of key elements not only include those key elements, and
And also including other key elements being not expressly set out, or also include for this process, method, article or device institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Also there is other identical element in process, method, article or the device of key element.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Understood based on such, technical scheme is substantially done to prior art in other words
Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions are to cause a station terminal equipment (can be mobile phone, computer, clothes
It is engaged in device, air conditioner, or network equipment etc.) perform method described in each embodiment of the invention.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair
Equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of image processing method, it is characterised in that methods described includes step:
After the upload image command of user's triggering is received, into the local photograph album of mobile terminal;
Image to be uploaded and the image size data of the image to be uploaded that acquisition user selects in the local photograph album;
When the image size data of the image to be uploaded is unsatisfactory for uploading image threshold, the image to be uploaded is pressed
Contracting is handled, and obtains compressing image;
When the image size data of the compression image, which is met, uploads image threshold, the compression image is uploaded.
2. image processing method according to claim 1, it is characterised in that methods described also includes:
When the image size data of the image to be uploaded, which is met, uploads image threshold, the image to be uploaded is uploaded.
3. image processing method according to claim 1, it is characterised in that methods described also includes:
When the image size data of the compression image is unsatisfactory for uploading image threshold, the compression image is carried out repeating pressure
Contracting is handled, until when the image size data of the compression image meets and uploads image threshold, uploading the compression image.
4. image processing method according to claim 3, it is characterised in that methods described also includes:
Obtain the compression number of times that the compression image carries out repeated compression processing;
When the compression number of times is more than preset times, stop repeated compression.
5. image processing method according to claim 3, it is characterised in that methods described also includes:
When carrying out repeated compression processing to the compression image, according to default reduced rule, the successive adjustment compressed coefficient.
6. a kind of image processing apparatus, it is characterised in that described device includes:
Instruction reception unit, for after the upload image command of user's triggering is received, into the local photograph album of mobile terminal;
Image acquisition unit to be uploaded, for obtaining image to be uploaded that user selects in the local photograph album and described treating
The image size data of blit picture;
Compression processing unit, for when the image size data of the image to be uploaded is unsatisfactory for uploading image threshold, to institute
State image to be uploaded and be compressed processing, obtain compressing image;And
First uploading unit, for when the image size data of the compression image meets and uploads image threshold, uploading described
Compress image.
7. image processing apparatus according to claim 6, it is characterised in that described device also includes:
Second uploading unit, for when the image size data of the image to be uploaded meets and uploads image threshold, uploading institute
State image to be uploaded.
8. image processing apparatus according to claim 6, it is characterised in that described device also includes:
3rd uploading unit, for when the image size data of the compression image is unsatisfactory for uploading image threshold, to described
Compress image and carry out repeated compression processing, when when the image size data satisfaction upload image threshold of the compression image,
Upload the compression image.
9. image processing apparatus according to claim 8, it is characterised in that described device also includes:
Number of times acquiring unit is compressed, the compression number of times of repeated compression processing is carried out for obtaining the compression image;And
Stop compression unit, for when the compression number of times is more than preset times, stopping repeated compression.
10. a kind of mobile terminal, it is characterised in that the mobile terminal includes:Memory, processor and it is stored in the storage
On device and the image processing program that can run on the processor, described image processing routine is by real during the computing device
Existing the step of image processing method as any one of claim 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710288992.6A CN106998487A (en) | 2017-04-27 | 2017-04-27 | image processing method, device and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710288992.6A CN106998487A (en) | 2017-04-27 | 2017-04-27 | image processing method, device and mobile terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106998487A true CN106998487A (en) | 2017-08-01 |
Family
ID=59435490
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710288992.6A Pending CN106998487A (en) | 2017-04-27 | 2017-04-27 | image processing method, device and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106998487A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107800618A (en) * | 2017-11-08 | 2018-03-13 | 广东欧珀移动通信有限公司 | Picture recommendation method, device, terminal and computer-readable recording medium |
CN113129210A (en) * | 2021-04-27 | 2021-07-16 | 维沃移动通信有限公司 | Image processing method, image processing device and electronic equipment |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101599017A (en) * | 2009-07-14 | 2009-12-09 | 阿里巴巴集团控股有限公司 | A kind of generation mthods, systems and devices of head image of network user |
CN101808182A (en) * | 2010-02-05 | 2010-08-18 | 腾讯科技(深圳)有限公司 | Method, terminal and system for uploading pictures |
CN102104617A (en) * | 2010-11-30 | 2011-06-22 | 厦门雅迅网络股份有限公司 | Method for storing massive picture data by website operating system |
CN102547086A (en) * | 2010-11-25 | 2012-07-04 | 卡西欧计算机株式会社 | Image capturing apparatus, image capturing control method, and storage medium storing program for image capturing |
CN102883304A (en) * | 2012-10-11 | 2013-01-16 | 王维国 | Method for setting head portrait in contact list of mobile phone of other person |
CN102917157A (en) * | 2012-10-19 | 2013-02-06 | 北京快联科技有限公司 | Image compression system and method based on human visual system |
CN103327042A (en) * | 2012-03-21 | 2013-09-25 | 腾讯科技(深圳)有限公司 | Method of uploading batch pictures to web album and client side |
CN103781039A (en) * | 2014-02-24 | 2014-05-07 | 广州市久邦数码科技有限公司 | Short message system with compression function and implementation method thereof |
CN104281590A (en) * | 2013-07-03 | 2015-01-14 | 腾讯科技(深圳)有限公司 | Picture uploading method, device, application interactive platform, terminal and system |
CN105491398A (en) * | 2014-09-19 | 2016-04-13 | 腾讯科技(深圳)有限公司 | Picture processing method, picture processing device and picture processing platform |
-
2017
- 2017-04-27 CN CN201710288992.6A patent/CN106998487A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101599017A (en) * | 2009-07-14 | 2009-12-09 | 阿里巴巴集团控股有限公司 | A kind of generation mthods, systems and devices of head image of network user |
CN101808182A (en) * | 2010-02-05 | 2010-08-18 | 腾讯科技(深圳)有限公司 | Method, terminal and system for uploading pictures |
CN102547086A (en) * | 2010-11-25 | 2012-07-04 | 卡西欧计算机株式会社 | Image capturing apparatus, image capturing control method, and storage medium storing program for image capturing |
CN102104617A (en) * | 2010-11-30 | 2011-06-22 | 厦门雅迅网络股份有限公司 | Method for storing massive picture data by website operating system |
CN103327042A (en) * | 2012-03-21 | 2013-09-25 | 腾讯科技(深圳)有限公司 | Method of uploading batch pictures to web album and client side |
CN102883304A (en) * | 2012-10-11 | 2013-01-16 | 王维国 | Method for setting head portrait in contact list of mobile phone of other person |
CN102917157A (en) * | 2012-10-19 | 2013-02-06 | 北京快联科技有限公司 | Image compression system and method based on human visual system |
CN104281590A (en) * | 2013-07-03 | 2015-01-14 | 腾讯科技(深圳)有限公司 | Picture uploading method, device, application interactive platform, terminal and system |
CN103781039A (en) * | 2014-02-24 | 2014-05-07 | 广州市久邦数码科技有限公司 | Short message system with compression function and implementation method thereof |
CN105491398A (en) * | 2014-09-19 | 2016-04-13 | 腾讯科技(深圳)有限公司 | Picture processing method, picture processing device and picture processing platform |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107800618A (en) * | 2017-11-08 | 2018-03-13 | 广东欧珀移动通信有限公司 | Picture recommendation method, device, terminal and computer-readable recording medium |
CN107800618B (en) * | 2017-11-08 | 2020-11-06 | Oppo广东移动通信有限公司 | Picture recommendation method and device, terminal and computer-readable storage medium |
CN113129210A (en) * | 2021-04-27 | 2021-07-16 | 维沃移动通信有限公司 | Image processing method, image processing device and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104731512B (en) | The method, apparatus and terminal that picture is shared | |
CN104808944B (en) | Touch operation inducing method and device | |
CN105098895B (en) | The device and method of charge control | |
CN104735255B (en) | Multi-screen display method and system | |
CN104967802B (en) | The method for recording and device of mobile terminal and its plurality of regions on screen | |
CN104679890B (en) | Picture method for pushing and device | |
CN104917233B (en) | Charging control method, device and system | |
CN104917891B (en) | A kind of mobile terminal and its flipping-over control method | |
CN107066290A (en) | A kind of method and apparatus for starting application according to associating policy | |
CN107087074A (en) | A kind of method, device and terminal for adjusting screen intensity | |
CN106791141A (en) | A kind of method of adjustment and mobile terminal of sound effect parameters of conversing | |
CN104866195B (en) | A kind of intelligent browsing method and intelligent browsing terminal | |
CN105183830B (en) | picture browsing method and device | |
CN106993084A (en) | The method, device and mobile terminal that a kind of control information is shown | |
CN106383707A (en) | Picture display method and system | |
CN107071161A (en) | The aggregation display method and mobile terminal of icon in a kind of status bar | |
CN104731484B (en) | The method and device that picture is checked | |
CN106055407A (en) | Process resource adjusting device and method | |
CN106998487A (en) | image processing method, device and mobile terminal | |
CN104636044B (en) | The method and mobile terminal of one-handed performance | |
CN106792921A (en) | The regulating power consumption device and method of mobile terminal | |
CN106843684A (en) | A kind of device and method, the mobile terminal of editing screen word | |
CN106534498A (en) | Control device and method of application folder and mobile terminal | |
CN106817145A (en) | A kind of mobile terminal and communication means | |
CN104731460B (en) | terminal control method and device |
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 |
Application publication date: 20170801 |
|
RJ01 | Rejection of invention patent application after publication |