CN109388726A - A kind of image display method, device, equipment and computer-readable medium - Google Patents

A kind of image display method, device, equipment and computer-readable medium Download PDF

Info

Publication number
CN109388726A
CN109388726A CN201710684726.5A CN201710684726A CN109388726A CN 109388726 A CN109388726 A CN 109388726A CN 201710684726 A CN201710684726 A CN 201710684726A CN 109388726 A CN109388726 A CN 109388726A
Authority
CN
China
Prior art keywords
picture
sub
pictures
memory
data
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
CN201710684726.5A
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.)
Che Bole (beijing) Mdt Infotech Ltd
Original Assignee
Che Bole (beijing) Mdt Infotech 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 Che Bole (beijing) Mdt Infotech Ltd filed Critical Che Bole (beijing) Mdt Infotech Ltd
Priority to CN201710684726.5A priority Critical patent/CN109388726A/en
Publication of CN109388726A publication Critical patent/CN109388726A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Controls And Circuits For Display Device (AREA)

Abstract

The present invention provides image display method, device, equipment and computer-readable medium, this method comprises: obtaining step, for obtaining picture to be shown;Judgment step, judges whether the ratio of the height and the width of the picture to be shown is greater than first threshold and obtains judging result;Step is shown, according to the judgment result displays picture.This method shows that user, which can choose, needs segment to be shown by carrying out segmentation to overlength picture, saves the power consumption of terminal device, reduces its EMS memory occupation, improve system performance.

Description

A kind of image display method, device, equipment and computer-readable medium
Technical field
The present invention relates to technical field of image processing, especially a kind of image display method, device, equipment and computer can Read medium.
Background technique
Currently, the type of mancarried electronic aid (such as mobile phone, IPAD) is many and easy to carry, the universal journey of electronic equipment Spend it is higher and higher, but since the battery capacity of portable electronic device, memory storage capacity are limited, when showing super large picture Power consumption is big, and primary used memory is excessive, leads to equipment operation slowly, or even crash, influences user experience.
There are also the methods for showing picture in the electronic device in the prior art, e.g., the carry out level specific pressure contracting to picture, While picture length is reduced, picture width also reduces, and causes picture is too small not see;Only Load Image middle section, cannot Show complete all pictorial informations;Failure can be loaded because mobile phone EMS memory is not enough when loading long picture, affect user Experience etc..
Summary of the invention
The present invention is directed to above-mentioned defect in the prior art, proposes following technical solution.
A kind of image display method, this method comprises:
Obtaining step, for obtaining picture to be shown;
Judgment step, judges whether the ratio of the height and the width of the picture to be shown is greater than first threshold and is sentenced Disconnected result;
Step is shown, according to the judgment result displays picture.
Further, the picture is obtained from server, webpage or other electronic equipments.
Further, the picture format is jpeg, tiff, raw or gif.
Further, the first threshold is 16:9.
Further, the concrete operations of the display step are as follows:
If the judging result is to directly display the picture less than or equal to 16:9;If the judging result Greater than 16:9, the picture show after being cut into N sections, N is the integer greater than 1.
Further, if the judging result be greater than 16:9 by the picture be cut into N sections it is laggard The concrete operations of row display are as follows:
Show a rectangle frame;
The picture is cut according to the ratio of the height and the width of the picture, cuts the height and width of rear each cross-talk picture The ratio of degree is 16:9, and marks the position of each cross-talk image in memory;
Slide is carried out at the top of the rectangle frame, and the data of the 1st sub-pictures are parsed from memory and is shown to described On at the top of rectangle frame;
1st sub-pictures described in upward sliding parse the data of the 2nd sub-pictures from memory and are shown to the 1st sub-pictures Below;
2nd sub-pictures described in upward sliding parse the data of the 3rd sub-pictures from memory and are shown to the 2nd sub-pictures Below;And the data of the 1st sub-pictures are discharged in memory;
Aforesaid operations are repeated, until N sub-pictures are shown.
The invention also provides a kind of image display apparatus, which includes:
Acquiring unit, for obtaining picture to be shown;
Judging unit, judges whether the ratio of the height and the width of the picture to be shown is greater than first threshold and is sentenced Disconnected result;
Display unit, according to the judgment result displays picture.
Further, the picture is obtained from server, webpage or other electronic equipments.
Further, the picture format is jpeg, tiff, raw or gif.
Further, the first threshold is 16:9.
Further, the concrete operations that the display unit executes are as follows:
If the judging result is to directly display the picture less than or equal to 16:9;If the judging result Greater than 16:9, the picture show after being cut into N sections, N is the integer greater than 1.
Further, if the judging result be greater than 16:9 by the picture be cut into N sections it is laggard The concrete operations of row display are as follows:
Show a rectangle frame;
The picture is cut according to the ratio of the height and the width of the picture, cuts the height and width of rear each cross-talk picture The ratio of degree is 16:9, and marks the position of each cross-talk image in memory;
Slide is carried out at the top of the rectangle frame, and the data of the 1st sub-pictures are parsed from memory and is shown to described On at the top of rectangle frame;
1st sub-pictures described in upward sliding parse the data of the 2nd sub-pictures from memory and are shown to the 1st sub-pictures Below;
2nd sub-pictures described in upward sliding parse the data of the 3rd sub-pictures from memory and are shown to the 2nd sub-pictures Below;And the data of the 1st sub-pictures are discharged in memory;
Aforesaid operations are repeated, until N sub-pictures are shown.
The invention also provides a kind of picture display device, the equipment includes processor, memory, the processor with The memory is connected by bus, and machine readable code is stored in the memory, and the processor executes in memory Machine readable code method that above-mentioned any one can be performed.
The invention also provides a kind of computer readable storage medium, computer program generation is stored on the storage medium Code, above-mentioned any method can be performed when the computer program code is computer-executed.
Technical effect of the invention are as follows: shown by carrying out segmentation to overlength picture, user can choose need to be to be shown Segment saves the power consumption of terminal device, reduces its EMS memory occupation, improves system performance.
Detailed description of the invention
Fig. 1 is a kind of flow chart of image display method of the invention.
Fig. 2 is a kind of structural schematic diagram of image display apparatus of the invention.
Fig. 3 is a kind of structural schematic diagram of picture display device of the invention.
Specific embodiment
1-3 is specifically described with reference to the accompanying drawing.
Fig. 1 shows a kind of image display method of the invention, this method comprises:
S11, obtaining step, for obtaining picture to be shown;
S12, judgment step, judge whether the ratio of the height and the width of the picture to be shown obtains greater than first threshold To judging result;
S13, display step, according to the judgment result displays picture.
The picture in step S11 be obtained from server, webpage or other electronic equipments, such as by bluetooth, Wifi etc. is obtained from other electronic equipments needs picture to be shown, as used the mutual blit piece of mobile phone to show between good friend.
The picture format obtained is jpeg, tiff, raw or gif, the jpeg format typically now used, the format File take up space when not parsing in memory it is smaller.It is no more than since general camera can shoot the photographic scale come 16:9, and the screen of general mobile phone is high, wide than being also 16:9, and therefore, the first threshold is set as 16:9.
The concrete operations of the display step S13 are as follows: if the judging result is directly to show less than or equal to 16:9 Show the picture;If the judging result is show after being cut into N sections by the picture, N is big greater than 16:9 In 1 integer.
Can also judge whether picture size to be shown is more than second threshold and judgement in the judgment step S12 Whether the picture size to be shown and the difference of electronic equipment memory headroom are less than third threshold value, then judge again described to aobvious Whether the ratio of the height and the width of the picture shown is greater than first threshold, can prevent too small picture and equipment can be in this way The picture shown completely does not have to be cut, and has saved the power consumption of electronic equipment.
More preferably embodiment is to judge that picture size to be shown has been more than second threshold, and judge described to be shown When picture size and the difference of electronic equipment memory headroom are less than third threshold value, if the judging result is will greater than 16:9 The picture shown after being cut into N sections, concrete operations are as follows:
Show a rectangle frame;
The picture is cut according to the ratio of the height and the width of the picture, cuts the height and width of rear each cross-talk picture The ratio of degree is 16:9, and marks the position of each cross-talk image in memory;
Slide is carried out at the top of the rectangle frame, and the data of the 1st sub-pictures are parsed from memory and is shown to described On at the top of rectangle frame;
1st sub-pictures described in upward sliding parse the data of the 2nd sub-pictures from memory and are shown to the 1st sub-pictures Below;
2nd sub-pictures described in upward sliding parse the data of the 3rd sub-pictures from memory and are shown to the 2nd sub-pictures Below;And the data of the 1st sub-pictures are discharged in memory;
Aforesaid operations are repeated, until N sub-pictures are shown.
One embodiment is that the jpeg file of whole picture is loaded into memory, and (jpeg file is pictorial information compression A kind of format afterwards, if to be shown on screen, it is necessary to be decompressed), it is assumed that the picture is high, wide than being 80:9, cuts Each picture depth-width ratio afterwards is 16:9, needs to be cut into 5 sub- picture fragments, the picture of the 80:9 is loaded directly into occupancy Depositing is 100m, and the maximum value of the mode committed memory to be Loaded Image using segmentation is 40m, and minimum value is 20m, is greatly reduced The expense of mobile phone EMS memory, the mobile phone that many old performances can be allowed not high check the big figure of list or picture and text mixing, allow application Experience it is more preferable, if user is not desired to see remaining image section, power consumption and interior can also be further saved without load It deposits.
Fig. 2 shows a kind of image display apparatus, which includes:
Acquiring unit 21, for obtaining picture to be shown;
Judging unit 22, judges whether the ratio of the height and the width of the picture to be shown obtains greater than first threshold Judging result;
Display unit 23, according to the judgment result displays picture.
Acquiring unit 21 be picture is obtained from server, webpage or other electronic equipments, such as by bluetooth, wifi etc. from Other electronic equipments, which obtain, needs picture to be shown, as used the mutual blit piece of mobile phone to show between good friend.
The picture format obtained is jpeg, tiff, raw or gif, the jpeg format typically now used, the format File take up space when not parsing in memory it is smaller.It is no more than since general camera can shoot the photographic scale come 16:9, and the screen of general mobile phone is high, wide than being also 16:9, and therefore, the first threshold is set as 16:9.
The concrete operations that display unit 23 executes are as follows: if the judging result is directly to show less than or equal to 16:9 Show the picture;If the judging result is show after being cut into N sections by the picture, N is big greater than 16:9 In 1 integer.
Can also judge whether picture size to be shown is more than second threshold and judgement in the judgment step S12 Whether the picture size to be shown and the difference of electronic equipment memory headroom are less than third threshold value, then judge again described to aobvious Whether the ratio of the height and the width of the picture shown is greater than first threshold, can prevent too small picture and equipment can be in this way The picture shown completely does not have to be cut, and has saved the power consumption of electronic equipment.
Judging unit 22 can also judge whether picture size to be shown is more than that second threshold and judgement are described to aobvious Whether the difference of the picture size and electronic equipment memory headroom shown is less than third threshold value, then judges the picture to be shown again The ratio of height and the width whether be greater than first threshold, can prevent too small picture and equipment from can show completely in this way Picture do not have to be cut, saved the power consumption of electronic equipment.
More preferably one embodiment is that judging unit 22 judges that picture size to be shown has been more than second threshold, and sentences When the picture size to be shown of breaking and the difference of electronic equipment memory headroom are less than third threshold value, if the judgement is tied Fruit is show after being cut into N sections by the picture greater than 16:9, concrete operations are as follows:
Show a rectangle frame;
The picture is cut according to the ratio of the height and the width of the picture, cuts the height and width of rear each cross-talk picture The ratio of degree is 16:9, and marks the position of each cross-talk image in memory;
Slide is carried out at the top of the rectangle frame, and the data of the 1st sub-pictures are parsed from memory and is shown to described On at the top of rectangle frame;
1st sub-pictures described in upward sliding parse the data of the 2nd sub-pictures from memory and are shown to the 1st sub-pictures Below;
2nd sub-pictures described in upward sliding parse the data of the 3rd sub-pictures from memory and are shown to the 2nd sub-pictures Below;And the data of the 1st sub-pictures are discharged in memory;
Aforesaid operations are repeated, until N sub-pictures are shown.
Fig. 3 shows that the invention also provides a kind of picture display devices, including processor 31, memory 32 and display screen 33, certain equipment can also be to be used including other component, such as other need of wifi module, bluetooth module, USB interface Interface is not shown herein.Processor 31 is connected with memory 32 and display screen 33 by bus respectively, can in memory 32 To store program performed by the equipment and data etc., processor 31 can execute the program in memory 32, execute corresponding Operation, the method as shown in above-mentioned Fig. 1.Equipment in the present invention can be server, host desktop, tablet computer, pen Remember this computer etc., but is not limited to these equipment.
The invention further relates to a kind of computer readable storage medium, computer program generation is stored on the storage medium The method in Fig. 1 can be performed when the computer program code is computer-executed for code.
Method of the present invention can be realized by computer program, and computer program can also be stored in storage On medium, processor reads computer program from storage medium, and executes corresponding method.
It should be noted last that: above embodiments only illustrate and not to limitation technical solution of the present invention, although reference Above-described embodiment describes the invention in detail, those skilled in the art should understand that: it still can be to this hair It is bright to be modified or replaced equivalently, it without departing from the spirit or scope of the invention, or any substitutions, should all It is included within the scope of the claims of the present invention.

Claims (14)

1. a kind of image display method, which is characterized in that this method comprises:
Obtaining step, for obtaining picture to be shown;
Judgment step, judges whether the ratio of the height and the width of the picture to be shown is greater than first threshold and obtains judgement knot Fruit;
Step is shown, according to the judgment result displays picture.
2. the method according to claim 1, which is characterized in that the picture is obtained from server, webpage or other electronic equipments It takes.
3. method according to claim 2, which is characterized in that the picture format is jpeg, tiff, raw or gif.
4. according to the method in claim 3, which is characterized in that the first threshold is 16:9.
5. method according to claim 4, which is characterized in that the concrete operations of the display step are as follows:
If the judging result is to directly display the picture less than or equal to 16:9;If the judging result is big In 16:9, the picture show after being cut into N sections, N is the integer greater than 1.
6. method according to claim 5, which is characterized in that if the judging result is greater than 16:9 by the picture Carry out the concrete operations shown after being cut into N sections are as follows:
Show a rectangle frame;
The picture is cut according to the ratio of the height and the width of the picture, cuts the height and the width of rear each cross-talk picture Than for 16:9, and the position of each cross-talk image is marked in memory;
Slide is carried out at the top of the rectangle frame, and the data of the 1st sub-pictures are parsed from memory and is shown to the rectangle On arch;
1st sub-pictures described in upward sliding from the data for parsing the 2nd sub-pictures in memory and are shown to below the 1st sub-pictures;
2nd sub-pictures described in upward sliding from the data for parsing the 3rd sub-pictures in memory and are shown to below the 2nd sub-pictures; And the data of the 1st sub-pictures are discharged in memory;
Aforesaid operations are repeated, until N sub-pictures are shown.
7. a kind of image display apparatus, which is characterized in that the device includes:
Acquiring unit, for obtaining picture to be shown;
Judging unit, judges whether the ratio of the height and the width of the picture to be shown is greater than first threshold and obtains judgement knot Fruit;
Display unit, according to the judgment result displays picture.
8. device according to claim 7, which is characterized in that the picture is obtained from server, webpage or other electronic equipments It takes.
9. device according to claim 8, which is characterized in that the picture format is jpeg, tiff, raw or gif.
10. device according to claim 9, which is characterized in that the first threshold is 16:9.
11. device according to claim 10, which is characterized in that the concrete operations that the display unit executes are as follows:
If the judging result is to directly display the picture less than or equal to 16:9;If the judging result is big In 16:9, the picture show after being cut into N sections, N is the integer greater than 1.
12. device according to claim 11, which is characterized in that if the judging result is greater than 16:9 by the figure Piece carries out the concrete operations shown after being cut into N sections are as follows:
Show a rectangle frame;
The picture is cut according to the ratio of the height and the width of the picture, cuts the height and the width of rear each cross-talk picture Than for 16:9, and the position of each cross-talk image is marked in memory;
Slide is carried out at the top of the rectangle frame, and the data of the 1st sub-pictures are parsed from memory and is shown to the rectangle On arch;
1st sub-pictures described in upward sliding from the data for parsing the 2nd sub-pictures in memory and are shown to below the 1st sub-pictures;
2nd sub-pictures described in upward sliding from the data for parsing the 3rd sub-pictures in memory and are shown to below the 2nd sub-pictures; And the data of the 1st sub-pictures are discharged in memory;
Aforesaid operations are repeated, until N sub-pictures are shown.
13. a kind of picture display device, which is characterized in that the equipment includes processor, memory, the processor with it is described Memory is connected by bus, and machine readable code is stored in the memory, and the processor executes the machine in memory The method that any one of claim 1-6 can be performed in device readable code.
14. a kind of computer readable storage medium, which is characterized in that it is stored with computer program code on the storage medium, Any method of claim 1-6 can be performed when the computer program code is computer-executed.
CN201710684726.5A 2017-08-11 2017-08-11 A kind of image display method, device, equipment and computer-readable medium Pending CN109388726A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710684726.5A CN109388726A (en) 2017-08-11 2017-08-11 A kind of image display method, device, equipment and computer-readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710684726.5A CN109388726A (en) 2017-08-11 2017-08-11 A kind of image display method, device, equipment and computer-readable medium

Publications (1)

Publication Number Publication Date
CN109388726A true CN109388726A (en) 2019-02-26

Family

ID=65414243

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710684726.5A Pending CN109388726A (en) 2017-08-11 2017-08-11 A kind of image display method, device, equipment and computer-readable medium

Country Status (1)

Country Link
CN (1) CN109388726A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110362188A (en) * 2019-07-17 2019-10-22 Oppo广东移动通信有限公司 Image processing method, device, mobile terminal and storage medium
CN110865859A (en) * 2019-10-29 2020-03-06 维沃移动通信有限公司 Picture display method and device, electronic equipment and medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014073521A1 (en) * 2012-11-09 2014-05-15 富士フイルム株式会社 Image display device, method, and program
CN106383707A (en) * 2016-09-07 2017-02-08 努比亚技术有限公司 Picture display method and system
CN106445353A (en) * 2016-11-14 2017-02-22 乐视控股(北京)有限公司 Display method and device of super-large pictures and electronic equipment
CN106547836A (en) * 2016-10-12 2017-03-29 惠州Tcl移动通信有限公司 A kind of large scale photo loading method and system
CN106649639A (en) * 2016-12-08 2017-05-10 珠海市魅族科技有限公司 Page display method and device
CN106886544A (en) * 2016-06-06 2017-06-23 阿里巴巴集团控股有限公司 A kind of data processing method and device
CN106933884A (en) * 2015-12-30 2017-07-07 五八同城信息技术有限公司 A kind of picture loading method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014073521A1 (en) * 2012-11-09 2014-05-15 富士フイルム株式会社 Image display device, method, and program
CN106933884A (en) * 2015-12-30 2017-07-07 五八同城信息技术有限公司 A kind of picture loading method and device
CN106886544A (en) * 2016-06-06 2017-06-23 阿里巴巴集团控股有限公司 A kind of data processing method and device
CN106383707A (en) * 2016-09-07 2017-02-08 努比亚技术有限公司 Picture display method and system
CN106547836A (en) * 2016-10-12 2017-03-29 惠州Tcl移动通信有限公司 A kind of large scale photo loading method and system
CN106445353A (en) * 2016-11-14 2017-02-22 乐视控股(北京)有限公司 Display method and device of super-large pictures and electronic equipment
CN106649639A (en) * 2016-12-08 2017-05-10 珠海市魅族科技有限公司 Page display method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110362188A (en) * 2019-07-17 2019-10-22 Oppo广东移动通信有限公司 Image processing method, device, mobile terminal and storage medium
CN110362188B (en) * 2019-07-17 2020-08-25 Oppo广东移动通信有限公司 Picture processing method and device, mobile terminal and storage medium
CN110865859A (en) * 2019-10-29 2020-03-06 维沃移动通信有限公司 Picture display method and device, electronic equipment and medium
CN110865859B (en) * 2019-10-29 2021-10-22 维沃移动通信有限公司 Picture display method and device, electronic equipment and medium

Similar Documents

Publication Publication Date Title
US10834424B2 (en) Method and device for compressing image, and electronic device
CN110446062B (en) Receiving processing method for big data file transmission, electronic device and storage medium
US11893767B2 (en) Text recognition method and apparatus
CN103366341A (en) Method and device for adaptive-resolution display of image
WO2017166760A1 (en) Method, apparatus, mobile terminal, and electronic device for reviewing image file
CN112055244B (en) Image acquisition method and device, server and electronic equipment
CN110930467A (en) Image processing method, electronic device and readable storage medium
CN104104995A (en) Image display method and device
CN102437894B (en) Method, device and equipment for compressing information to be sent
CN109388726A (en) A kind of image display method, device, equipment and computer-readable medium
CN109685714B (en) Picture compression method, device, equipment and computer readable storage medium
CN113839998A (en) Image data transmission method, device, equipment, storage medium and program product
CN108664486B (en) Webpage texture memory management method and device
CN105469433B (en) Picture compression method and equipment thereof
US20230024148A1 (en) Data processing methods and systems, and electronic devices
US20120106855A1 (en) Form image managing system and method
CN102831624A (en) Method and device for compressing image
US20150177924A1 (en) Image processing apparatus and image processing method
CN113157226A (en) Remote data display method, device, equipment and machine-readable storage medium
US8369637B2 (en) Image processing apparatus, image processing method, and program
CN111198858A (en) File processing method and device, computer storage medium and terminal
CN115965616B (en) Iris image processing method and device and electronic equipment
CN106951226B (en) Method and system for displaying characters in thumbnail
CN111597773B (en) Compression processing method, compression processing device, computer storage medium and terminal
CN104239221B (en) reader memory optimizing system and method

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: 20190226