CN111381748A - Image display method, device, equipment and storage medium - Google Patents

Image display method, device, equipment and storage medium Download PDF

Info

Publication number
CN111381748A
CN111381748A CN201811627730.9A CN201811627730A CN111381748A CN 111381748 A CN111381748 A CN 111381748A CN 201811627730 A CN201811627730 A CN 201811627730A CN 111381748 A CN111381748 A CN 111381748A
Authority
CN
China
Prior art keywords
image
image display
resolution
display area
reduced
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
CN201811627730.9A
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.)
Guangzhou Baiguoyuan Information Technology Co Ltd
Original Assignee
Guangzhou Baiguoyuan Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Baiguoyuan Information Technology Co Ltd filed Critical Guangzhou Baiguoyuan Information Technology Co Ltd
Priority to CN201811627730.9A priority Critical patent/CN111381748A/en
Publication of CN111381748A publication Critical patent/CN111381748A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0485Scrolling or panning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/40Scaling the whole image or part thereof
    • G06T3/4092Image resolution transcoding, e.g. client/server architecture

Abstract

The invention discloses an image display method, an image display device, image display equipment and a storage medium. Wherein, the method comprises the following steps: acquiring operation information on a screen; acquiring a corresponding image according to the image display area on the operated screen; and if the resolution of the image is greater than the resolution threshold corresponding to the image display area, displaying a reduced image in the image display area, wherein the resolution of the reduced image is less than or equal to the resolution threshold corresponding to the image display area. According to the technical scheme provided by the embodiment of the invention, the resolution threshold value corresponding to the image display area is determined, and the image with the resolution larger than the resolution threshold value is displayed in the image display area after being reduced, so that the resolution of the reduced image meets the requirement of the resolution threshold value, the pixel information contained in the displayed image in the operation process is reduced, the operation memory occupied by image display is reduced, and the image display efficiency and the operation performance of the application program are improved.

Description

Image display method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of internet, in particular to an image display method, device, equipment and storage medium.
Background
With the rapid development of mobile networks, a large number of applications are installed in a mobile device according to user requirements, and at this time, when a user faces a plurality of applications of the same type, an application with better installation performance is selected. Therefore, during the running process of the application program, the situation that the use of the application program is influenced by the abnormal crash needs to be reduced as much as possible.
At present, the operation memory of the existing monitoring application program usually searches for and repairs the cause of the crash when the application program crashes abnormally in the operation process, and the abnormal crash phenomenon cannot be directly avoided while the application program is operated.
Disclosure of Invention
The embodiment of the invention provides an image display method, an image display device, image display equipment and a storage medium, which can reduce the phenomenon of application program collapse caused by overlarge image resolution ratio in the running process and improve the image display efficiency.
In a first aspect, an embodiment of the present invention provides an image display method, where the method includes:
acquiring operation information on a screen;
acquiring a corresponding image according to the image display area on the operated screen;
and if the resolution of the image is greater than the resolution threshold corresponding to the image display area, displaying the reduced image in the image display area, wherein the resolution of the reduced image is less than or equal to the resolution threshold corresponding to the image display area.
Further, before the image display area displays the reduced image, the method further includes:
and reducing the resolution of the image according to the resolution threshold corresponding to the image display area.
Further, before the image display area displays the reduced image, the method further includes:
popping up an exception notification indicating that there is an image with an exception.
Further, after popping up the exception notification, the method further comprises:
and acquiring a trigger operation on the abnormal notification, and displaying a corresponding abnormal alarm page, wherein the abnormal alarm page comprises an image of which the resolution is greater than a resolution threshold corresponding to the image display area.
Further, after displaying the corresponding abnormal alarm page, before reducing the resolution of the image according to the resolution threshold corresponding to the image display area, the method further includes:
receiving an image viewing instruction, wherein the image viewing instruction comprises a corresponding image identifier;
popping up attribute information of a corresponding image according to the image identifier;
further, reducing the resolution of the image according to the resolution threshold corresponding to the image display area includes:
and reducing the resolution of the image according to the attribute information and the corresponding resolution threshold value.
Further, the image display method further includes:
and if the resolution of the image is less than or equal to the resolution threshold corresponding to the image display area, displaying the image in the image display area.
In a second aspect, an embodiment of the present invention provides an image display apparatus, including:
the operation acquisition module is used for acquiring operation information on a screen;
the image acquisition module is used for acquiring a corresponding image according to the image display area on the operated screen;
and the image display module is used for displaying the reduced image in the image display area if the resolution of the image is greater than the resolution threshold corresponding to the image display area, wherein the resolution of the reduced image is less than or equal to the resolution threshold corresponding to the image display area.
Further, the image display device further includes:
and the resolution reducing module is used for reducing the resolution of the image according to the resolution threshold value corresponding to the image display area before the image display area displays the reduced image.
Further, the image display device further includes:
a notification pop-up module configured to pop up an abnormality notification indicating that there is an abnormal image before the reduced image is displayed in the image display area.
Further, the image display device further includes:
and the page display module is used for acquiring the trigger operation on the abnormal notification and displaying a corresponding abnormal alarm page, wherein the abnormal alarm page comprises an image of which the resolution is greater than the resolution threshold corresponding to the image display area.
Further, the image display device further includes:
the viewing instruction receiving module is used for receiving an image viewing instruction after the corresponding abnormal alarm page is displayed and before the resolution of the image is reduced according to the resolution threshold value corresponding to the image display area, wherein the image viewing instruction comprises a corresponding image identifier;
and the attribute information popup module is used for popping up attribute information of the corresponding image according to the image identifier.
Further, the resolution reduction module is further specifically configured to:
and reducing the resolution of the image according to the attribute information and the corresponding resolution threshold value.
Further, the image display module is further configured to:
and if the resolution of the image is less than or equal to the resolution threshold corresponding to the image display area, displaying the image in the image display area.
In a third aspect, an embodiment of the present invention provides an apparatus, where the apparatus includes:
one or more processors;
storage means for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the image display method according to any embodiment of the present invention.
In a fourth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the image display method according to any embodiment of the present invention.
According to the image display method, the image display device, the image display equipment and the storage medium, the resolution threshold value which needs to be met by the corresponding image is determined through the image display area on the operated screen, the image with the resolution ratio larger than the resolution ratio threshold value is reduced and then is displayed in the image display area, so that the resolution ratio of the reduced image meets the requirement of the resolution ratio threshold value, pixel information contained in the displayed image in the running process is reduced, the running memory occupied by image display is reduced, the problem that the application program is easy to collapse due to the fact that the memory is excessively occupied in the running process is solved, and the image display efficiency and the running performance of the application program are improved.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments made with reference to the following drawings:
fig. 1 is a flowchart of an image display method according to an embodiment of the present invention;
fig. 2A is a flowchart of an image display method according to a second embodiment of the present invention;
fig. 2B is a schematic diagram of an image display process according to a second embodiment of the present invention;
fig. 3A is a flowchart of an image display method according to a third embodiment of the present invention;
fig. 3B is a schematic diagram of an exception notification bar in the method according to the third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an image display device according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of an apparatus according to a fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures. In addition, the embodiments and features of the embodiments in the present invention may be combined with each other without conflict.
At present, the collapse rate of an application program after the application program is operated online is a critical index for measuring the performance of the application program, and at this time, in order to improve the operation performance of the application program, an abnormal collapse phenomenon of the application program needs to be reduced as much as possible, and the operating memory overflow is a main cause of the collapse of the application program, and the operating memory overflow is mainly caused by that the operating memory occupied by image display in the application program is too large. Therefore, the embodiment of the present invention mainly aims at the memory occupied by the displayed image in the application program causing the memory overflow, and determines the resolution threshold value that the corresponding image needs to meet through the image display area on the screen after the sliding operation, that is, the memory occupied size that the image should meet when displaying, so that the image larger than the resolution threshold value is reduced and then displayed in the image display area, thereby reducing the pixel information contained in the displayed image in the operation process, reducing the operation memory occupied by the image display, and further improving the image display efficiency and the operation performance of the application program.
Example one
Fig. 1 is a flowchart of an image display method according to an embodiment of the present invention, which can be applied to any application program with image display requirements. The technical scheme of the embodiment of the invention is suitable for reducing the running crash of the application program caused by memory overflow in the running process. The image display method provided by this embodiment may be executed by the image display apparatus provided by the embodiment of the present invention, the apparatus may be implemented by software and/or hardware, and the apparatus is integrated into a device for executing the method, where the device may be an intelligent terminal such as a smart phone, a tablet computer, and a notebook computer, which is configured with an application program having an image display function.
Specifically, referring to fig. 1, the method may include the steps of:
s110, acquiring operation information on the screen.
The method and the device mainly reduce the phenomenon of collapse of the application program by reducing the memory occupation amount of the image display in the running process of the application program, wherein the screen refers to a screen of the terminal device configured by the application program; the sliding operation information is an image request that a user executes a certain sliding operation in a display interface of an application program so that the application program needs to display a new image at a set position currently, and is used for indicating that the application program needs to acquire the new image for displaying. Specifically, the sliding operation information may include a sliding distance and a sliding direction corresponding to the current sliding operation, and a set position area capable of displaying corresponding image information displayed on the screen by the application before the sliding operation.
Specifically, in the running process of the application program, when optimizing the running memory occupied by the image display, the application program first needs to acquire the image to be displayed correspondingly, at this time, the application program is instructed to acquire the corresponding image to be displayed by executing a certain sliding operation or clicking operation in the display screen of the application program through the user, at this time, the application program can acquire the operation information generated by the user executing the corresponding operation on the screen, and if the sliding operation is executed, the specific sliding distance, the sliding direction of the sliding and the set position area capable of displaying the corresponding image information, which is displayed on the screen before the sliding operation, can be obtained.
And S120, acquiring a corresponding image according to the image display area on the operated screen.
The image display area is a display frame which is preset during development of the application program and can display corresponding images, and different image display areas correspond to images with different contents, such as various video picture display areas which can display different video information in a display interface of a video player.
Optionally, after the operation information on the screen is obtained, the embodiment may determine, according to each image display area displaying the corresponding image information displayed on the screen before the operation and the operation information corresponding to the operation, such as the sliding distance and the sliding direction, the image display area displaying the corresponding image information on the screen after the operation, and obtain, according to the image display area on the screen after the operation, the image corresponding to each image display area from the background server, so as to perform corresponding display.
Wherein, the image in the embodiment is a bitmap image; specifically, a Bitmap (Bitmap) is an image composed of a plurality of pixels and containing overall display information of each pixel; pixels are the smallest units of information in a bitmap, each pixel having a particular location and color value; information of each pixel in the image, such as the position of the pixel on the screen, the color of the pixel, and the like, is recorded in the bitmap in the order from left to right, top to bottom.
Optionally, in this embodiment, the corresponding image may be obtained by sending an image downloading request to the background server. For example, in this embodiment, when obtaining information of a sliding operation performed by a user on a screen, it may be determined that the application program currently needs to acquire a corresponding image for an image display area that newly appears on the screen after the sliding operation to display, at this time, the image download request is instruction information for instructing a background server to feed back the corresponding image for the image display area on the screen after the sliding operation, and the image download request may include an area identifier of each image display area on the screen after the sliding operation, where the area identifier is flag information that can uniquely indicate identity information of a certain image display area in the application program. When the sliding operation information on the screen is acquired, according to each image display area which is displayed on the screen before the sliding operation and used for displaying the corresponding image information, and the sliding distance and the sliding direction corresponding to the sliding operation, each image display area which is displayed on the screen after the sliding operation and currently needs to display the corresponding image information is determined, and according to the image display area on the screen after the sliding operation, a corresponding image downloading request is generated, wherein the image downloading request comprises an area identifier of each image display area on the screen after the sliding operation, and simultaneously, the image downloading request corresponding to the sliding operation is sent to the background server, and the background server determines a matched image for each image display area according to the area identifier of each image display area and feeds the matched image back to the application program; at this time, the application program can acquire the corresponding image determined by the background server for the image display area on the screen after the sliding operation according to the image downloading request, and then correspondingly display in each image display area.
And S130, if the resolution of the image is greater than the resolution threshold corresponding to the image display area, displaying the reduced image in the image display area.
And the resolution of the reduced image is less than or equal to the resolution threshold corresponding to the image display area. Specifically, when the images are displayed on the screen, a certain running memory of the application program is occupied, corresponding pixel information is recorded for each pixel included in each image, and at the moment, the running memory occupied by the images is determined by the size of the pixel information included in the images, so that in order to prevent the application program from collapsing in the running process, corresponding memory occupation thresholds can be set for each image display area respectively, so that the memory occupation of each image can be lower than the corresponding memory occupation threshold when the images are displayed, and the situation that the application program collapses due to the memory occupation of the image display is reduced. Specifically, in the embodiment, the memory occupation during image display mainly comes from the size of the pixel information included in the image, and the size of the pixel information of the image is represented by the size of the resolution of the image, and the higher the resolution of the image is, the more pixels in the unit length of the image are described, the larger the pixel information is included at this time, so that the memory occupation size is correspondingly represented by the resolution in the embodiment. At this time, in this embodiment, a corresponding resolution threshold is set for each image display area in the application program to indicate an upper limit value of a resolution that can be achieved by an image allowed to be displayed in the image display area, so that memory usage of image display in the running process of the application program is correspondingly reduced, and a phenomenon that the application program collapses during running is reduced.
Specifically, in order to determine whether an image displayed in an image display area satisfies a resolution threshold set in the image display area, in this embodiment, when a corresponding image is acquired according to the image display area on the screen after the sliding operation, the resolution of each acquired image needs to be determined first, and at this time, if the resolution of a certain image is greater than the resolution threshold set in the image display area corresponding to the certain image, it indicates that the resolution of the image is larger and the pixels included are more, so that the operating memory occupied by the pixel information of the image in the operating process of the application program is larger, which is likely to cause the application program to crash, therefore, the resolution of the image needs to be reduced correspondingly according to the resolution threshold corresponding to the image display area, that is, the pixels included in the image are reduced, so that the corresponding pixel information is reduced correspondingly, until the resolution of the reduced image is less than or equal to the resolution threshold corresponding to the image display area, the reduced image is displayed in the image display area, that is, the image finally displayed in the image display area can meet the resolution threshold set in the image display area, so that the memory occupation during image display is reduced, and the phenomenon that the application program is collapsed during operation is reduced.
According to the technical scheme provided by the embodiment, the resolution threshold value which needs to be met by the corresponding image is determined through the image display area on the operated screen, and the image with the resolution ratio larger than the resolution threshold value is reduced and then displayed in the image display area, so that the resolution ratio of the reduced image meets the requirement of the resolution threshold value, the pixel information contained in the displayed image in the running process is reduced, the running memory occupied by image display is reduced, the problem that the application program is easy to collapse due to the fact that the memory is excessively occupied in the running process is solved, and the image display efficiency and the running performance of the application program are improved.
Example two
Fig. 2A is a flowchart of an image display method according to a second embodiment of the present invention, and fig. 2B is a schematic diagram of an image display process according to the second embodiment of the present invention. The embodiment is optimized on the basis of the embodiment. Specifically, as shown in fig. 2B, the present embodiment explains in detail a specific display process of an image that needs to be displayed in a corresponding image display area and is acquired by an application program during the running process.
Optionally, as shown in fig. 2A, the present embodiment may include the following steps:
s210, acquiring operation information on the screen.
And S220, acquiring a corresponding image according to the image display area on the operated screen.
S230, judging whether the resolution of the image is greater than a resolution threshold corresponding to the image display area, if not, executing S240; if yes, go to step S250.
Specifically, in order to prevent the application program from collapsing due to the fact that the memory occupied by the image display is too large in the running process of the application program, the memory occupied by the image display is mainly from the size of pixel information included in the image, the size of the pixel information of the image is mainly represented by the size of the resolution of the image, the higher the resolution of the image is, the more pixels in the unit length of the image are indicated, and the larger the pixel information included at the moment is, therefore, when the corresponding image is acquired, it is first necessary to determine whether the resolution of the image meets the preset upper limit of the resolution of the image display area in which the image is located, that is, determine whether the resolution of the image is greater than the resolution threshold corresponding to the image display area, and different operations are correspondingly executed under different conditions.
S240, the image is displayed in the image display area.
Optionally, when the resolution of the image is less than or equal to the resolution threshold corresponding to the image display area, it is described that the memory occupation of the image acquired at this time meets the memory occupation upper limit set for the corresponding image display area in the running process of the application program, and at this time, the image does not need to be processed at all, and can be directly displayed in the corresponding image display area.
S250, the resolution of the image is reduced according to the resolution threshold corresponding to the image display region.
Optionally, when the resolution of the image is greater than the resolution threshold corresponding to the image display area, it is described that the resolution of the image obtained at this time is greater, and the number of pixels included is greater, so that the operating memory occupied by the pixel information of the image in the operating process of the application program is greater, and the application program is likely to be crashed. Specifically, in this embodiment, the resolution of the acquired image may be reduced by controlling the local server or the backend server.
In the present embodiment, when the image display in the application program is operated, two cases may be included: displaying images of the application program after the application program runs on the line and displaying the images in a development and test stage; after the application program runs on the line, if the resolution of the acquired image is greater than the resolution threshold of the image display area, the background server can be controlled to directly reduce the resolution of the image according to the resolution threshold of the image display area, so that the reduced image can be displayed in the image display area subsequently; when the application program performs performance testing in a development testing stage, if the resolution of the acquired image is greater than the resolution threshold of the image display area, the resolution abnormal information of the image can be stored and forwarded to a corresponding developer, the developer controls the background server to reduce the resolution of the image, or directly controls the local computer to reduce the resolution of the image according to the resolution abnormal information of the image, so that the resolution of the reduced image is less than or equal to the resolution threshold corresponding to the image display area, the memory occupation of image display in the application program running process is correspondingly reduced, and the phenomenon that the application program collapses in running is reduced.
In addition, in this embodiment, when obtaining the reduced image, the reduced image may be stored in a corresponding position in the backend server, so that when sliding to the image display area next time and needing to display the image again, the reduced image may be directly obtained without performing resolution comparison and reduction again, thereby improving the image display efficiency. Specifically, in the embodiment, the resolution of the image that may be displayed in each image display area may be tested in the development and test stage of the application program, the resolution of the image that is greater than the resolution threshold corresponding to the image display area is correspondingly reduced, and the reduced image is stored in the background server, so that when the subsequent application program runs on line, the reduced image may be directly obtained to be displayed, resolution comparison and reduction are not required again, and thus, the image display efficiency is improved.
And S260, displaying the reduced image in the image display area, wherein the resolution of the reduced image is less than or equal to the resolution threshold corresponding to the image display area.
Optionally, after the local computer or the background server is controlled to reduce the resolution of the image larger than the resolution threshold corresponding to the image display area, pixels included in the image are correspondingly reduced, so that corresponding pixel information is correspondingly reduced, at this time, the resolution of the reduced image is smaller than or equal to the resolution threshold corresponding to the image display area, which meets the upper limit value of the resolution that the image allowed to be displayed in the image display area can reach, and the reduced image is displayed in the image display area, so that the image finally displayed in the image display area can meet the resolution threshold set in the image display area, thereby reducing memory occupation during image display and reducing the phenomenon that the application program collapses during operation.
According to the technical scheme provided by the embodiment, the resolution threshold corresponding to the image display area on the screen after operation is determined, and the resolution of the image larger than the resolution threshold corresponding to the image display area is correspondingly reduced, so that the finally displayed image corresponding to the image display area can meet the requirement of the resolution threshold set in the image display area, the pixel information contained in the displayed image in the operation process is reduced, the operation memory occupied by image display is reduced, and the image display efficiency and the operation performance of the application program are improved.
EXAMPLE III
Fig. 3A is a flowchart of an image display method according to a third embodiment of the present invention. The embodiment is optimized on the basis of the embodiment. In the present embodiment, when the image display in the application program is operated, two cases may be included: the image display after the application program is operated on the line and the image display in the development and test stage. Specifically, in this embodiment, mainly for the application program in the development and test stage, a corresponding exception notification bar and an exception alarm page may be popped up in the interface, and a tester performs a corresponding repair operation on an exception image according to the exception image information in the popped-up interface, so that after a subsequent application program is actually operated online, an image meeting a resolution threshold corresponding to a corresponding image display area can be directly displayed, and an exception crash phenomenon caused by an overflow of an operating memory of the application program is reduced.
Optionally, as shown in fig. 3A, the present embodiment may include the following steps:
s310, acquiring operation information on the screen.
And S320, acquiring a corresponding image according to the image display area on the operated screen.
S330, if the resolution of the image is larger than the resolution threshold corresponding to the image display area, popping up an abnormal notice.
Wherein the anomaly notification indicates the presence of an anomalous image. Specifically, the embodiment is mainly directed to a display alarm of an abnormal image, which is larger than a resolution threshold corresponding to an image display area in the image display of the application program in the development and test stage, where the abnormal notification is used to prompt a tester to obtain an abnormal image in the application program in the current operation, and the abnormal notification is embodied by a head portrait of a risk detector as shown in fig. 3B.
Specifically, in the embodiment, it is determined that the resolution of the acquired image is greater than the resolution threshold corresponding to the image display area in the development and test stage of the application program, an exception notification may be popped up above the display interface of the application program, and the exception notification indicates that the tester has an exception image in the current running process, that is, an image with a resolution greater than the resolution threshold corresponding to the image display area exists, so as to prompt the tester to modify the resolution of the exception image, so as to meet the requirement of the resolution threshold corresponding to the image display area.
S340, acquiring the trigger operation on the abnormal notification,
specifically, in this embodiment, after the exception notification pops up, the tester may check information corresponding to the existing exception image by clicking the exception notification bar, and the application program may obtain the trigger operation of the tester on the exception notification of the application program display screen, so as to subsequently display the corresponding exception alarm page.
And S350, displaying a corresponding abnormal alarm page.
The abnormal alarm page comprises an image with the resolution ratio larger than a resolution ratio threshold value corresponding to the image display area.
Specifically, in this embodiment, after the exception notification is popped up, the application program may obtain a trigger operation that a tester acts on the exception notification of the application program display screen, and may display a corresponding exception alarm page in a display interface of the application program according to the trigger operation, where the exception alarm page includes display information of an image that is detected by the application program during the running process and has a resolution greater than a resolution threshold corresponding to the image display area, and the display information includes a storage location and a display location of each exception image, and at this time, the local computer or the backend server may be controlled to reduce the resolution of the image according to the resolution threshold corresponding to the image display area.
And S360, receiving an image viewing instruction.
Wherein the image viewing instruction comprises a corresponding image identifier. Specifically, since the abnormal alarm page includes a plurality of detected images with resolutions greater than the resolution threshold corresponding to the image display area, if a tester needs to check specific information of an abnormal image, the tester can select the corresponding abnormal image from the abnormal alarm page to generate an image checking instruction of the abnormal image, where the image checking instruction includes an image identifier of the selected abnormal image, so as to display detailed information of the corresponding abnormal image according to the image identifier in the following.
And S370, popping up attribute information of the corresponding image according to the image identification.
Specifically, when the image identifier included in the image viewing instruction acted by the tester is determined, the embodiment may determine the corresponding image according to the image identifier, search the attribute information of the image, pop up the image in the page, and display the image to the corresponding tester. Specifically, the attribute information of the image may include area information of an image display area corresponding to the image, a storage path and an original address of the image, and a resolution size of the image. In this embodiment, after the attribute information of the corresponding image is popped up to the tester, the tester can visually see the detailed information of the abnormal image existing in the test, so as to modify the resolution of the abnormal image in the following.
S380, the resolution of the image is reduced according to the attribute information and the corresponding resolution threshold value.
Specifically, after the attribute information of the corresponding image is obtained, in this embodiment, the local computer or the background server may be controlled to correspondingly reduce the resolution of the image according to the image position information in the attribute information and the resolution threshold of the corresponding image display area, so that the memory usage of the image display in the running process of the application program is correspondingly reduced, and the phenomenon of collapse of the application program during running is reduced.
S390 displays a reduced image in the image display area, where the resolution of the reduced image is equal to or less than a resolution threshold corresponding to the image display area.
According to the technical scheme provided by the embodiment, the abnormal image is detected according to the resolution threshold corresponding to the image display area in the development and test stage of the application program, the resolution of the abnormal image is correspondingly reduced, the reduced image is stored in the background server, and the application program can directly acquire the reduced image for display when running on line, so that the frequency of modifying the resolution of the image again on line is reduced, the running memory occupied by image display is reduced, and the image display efficiency and the running performance of the application program are improved.
Example four
Fig. 4 is a schematic structural diagram of an image display device according to a fourth embodiment of the present invention, specifically, as shown in fig. 4, the image display device may include:
an operation acquisition module 410, configured to acquire operation information on a screen;
an image obtaining module 420, configured to obtain a corresponding image according to an image display area on the screen after the operation;
and an image display module 430, configured to display a reduced image in the image display area if the resolution of the image is greater than the resolution threshold corresponding to the image display area, where the resolution of the reduced image is less than or equal to the resolution threshold corresponding to the image display area.
According to the technical scheme provided by the embodiment, the resolution threshold value which needs to be met by the corresponding image is determined through the image display area on the operated screen, and the image with the resolution ratio larger than the resolution threshold value is reduced and then displayed in the image display area, so that the resolution ratio of the reduced image meets the requirement of the resolution threshold value, the pixel information contained in the displayed image in the running process is reduced, the running memory occupied by image display is reduced, the problem that the application program is easy to collapse due to the fact that the memory is excessively occupied in the running process is solved, and the image display efficiency and the running performance of the application program are improved.
Further, the image display device may further include:
and the resolution reducing module is used for reducing the resolution of the image according to the resolution threshold value corresponding to the image display area before the image display area displays the reduced image.
Further, the image display device may further include:
and a notification pop-up module for popping up an abnormal notification indicating that there is an abnormal image before the reduced image is displayed in the image display area.
Further, the image display device may further include:
and the page display module is used for acquiring the trigger operation on the abnormal notification and displaying the corresponding abnormal alarm page, wherein the abnormal alarm page comprises an image of which the resolution is greater than the resolution threshold corresponding to the image display area.
Further, the image display device may further include:
the viewing instruction receiving module is used for receiving an image viewing instruction after the corresponding abnormal alarm page is displayed and before the resolution of the image is reduced according to the resolution threshold value corresponding to the image display area, wherein the image viewing instruction comprises a corresponding image identifier;
the attribute information popup module is used for popping up attribute information of a corresponding image according to the image identifier;
further, the resolution reduction module is further specifically configured to:
and reducing the resolution of the image according to the attribute information and the corresponding resolution threshold.
Further, the image display module 430 may be further configured to:
and if the resolution of the image is less than or equal to the resolution threshold corresponding to the image display area, displaying the image in the image display area.
The image display device provided by the embodiment can be applied to the image display method provided by any embodiment, and has corresponding functions and beneficial effects.
EXAMPLE five
Fig. 5 is a schematic structural diagram of an apparatus according to a fifth embodiment of the present invention, as shown in fig. 5, the apparatus includes a processor 50, a storage device 51, a communication device 52, an input device 53, and an output device 54; the number of processors 50 in the device may be one or more, and one processor 50 is taken as an example in fig. 5; the processor 50, the storage means 51, the communication means 52, the input means 53 and the output means 54 in the device may be connected by a bus or other means, as exemplified by the bus connection in fig. 5.
The storage device 51 is a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the image display method according to any embodiment of the present invention. The processor 50 executes various functional applications of the apparatus and data processing by executing software programs, instructions, and modules stored in the storage device 51, that is, implements the above-described image display method.
The storage device 51 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the storage 51 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the storage 51 may further include memory located remotely from the processor 50, which may be connected to the device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The communication means 52 may be used to enable a network connection or a mobile data connection between the devices.
The input device 53 may be used to receive input numeric or character information and generate key signal inputs relating to user settings and function control of the apparatus.
The output device 54 may include a display device such as a display screen.
The device provided by the embodiment can be used for executing the image display method provided by any embodiment, and has corresponding functions and beneficial effects.
EXAMPLE six
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, can implement the image display method in any of the embodiments. The method specifically comprises the following steps:
acquiring operation information on a screen;
acquiring a corresponding image according to the image display area on the operated screen;
and if the resolution of the image is greater than the resolution threshold corresponding to the image display area, displaying a reduced image in the image display area, wherein the resolution of the reduced image is less than or equal to the resolution threshold corresponding to the image display area.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the operations of the method described above, and may also perform related operations in the image display method provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the image display apparatus, the included units and modules are only divided according to the functional logic, but are not limited to the above division as long as the corresponding functions can be realized; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. An image display method, comprising:
acquiring operation information on a screen;
acquiring a corresponding image according to the image display area on the operated screen;
and if the resolution of the image is greater than the resolution threshold corresponding to the image display area, displaying the reduced image in the image display area, wherein the resolution of the reduced image is less than or equal to the resolution threshold corresponding to the image display area.
2. The method according to claim 1, further comprising, before the image display region displays the reduced image:
and reducing the resolution of the image according to the resolution threshold corresponding to the image display area.
3. The method according to claim 1 or 2, wherein before the image display region displays the reduced image, further comprising:
popping up an exception notification indicating that there is an image with an exception.
4. The method of claim 3, after popping the exception notification, further comprising:
and acquiring a trigger operation on the abnormal notification, and displaying a corresponding abnormal alarm page, wherein the abnormal alarm page comprises an image of which the resolution is greater than a resolution threshold corresponding to the image display area.
5. The method of claim 4, after displaying the corresponding abnormal alarm page, before reducing the resolution of the image according to the resolution threshold corresponding to the image display area, further comprising:
receiving an image viewing instruction, wherein the image viewing instruction comprises a corresponding image identifier;
and popping up attribute information of the corresponding image according to the image identifier.
6. The method of claim 5, wherein reducing the resolution of the image according to the resolution threshold corresponding to the image display region comprises:
and reducing the resolution of the image according to the attribute information and the corresponding resolution threshold value.
7. The method of claim 1, further comprising:
and if the resolution of the image is less than or equal to the resolution threshold corresponding to the image display area, displaying the image in the image display area.
8. An image display apparatus, comprising:
the operation acquisition module is used for acquiring operation information on a screen;
the image acquisition module is used for acquiring a corresponding image according to the image display area on the operated screen;
and the image display module is used for displaying the reduced image in the image display area if the resolution of the image is greater than the resolution threshold corresponding to the image display area, wherein the resolution of the reduced image is less than or equal to the resolution threshold corresponding to the image display area.
9. An apparatus, characterized in that the apparatus comprises:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the image display method of any one of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the image display method according to any one of claims 1 to 7.
CN201811627730.9A 2018-12-28 2018-12-28 Image display method, device, equipment and storage medium Pending CN111381748A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811627730.9A CN111381748A (en) 2018-12-28 2018-12-28 Image display method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811627730.9A CN111381748A (en) 2018-12-28 2018-12-28 Image display method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111381748A true CN111381748A (en) 2020-07-07

Family

ID=71217747

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811627730.9A Pending CN111381748A (en) 2018-12-28 2018-12-28 Image display method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111381748A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113055615A (en) * 2021-02-01 2021-06-29 广州朗国电子科技有限公司 Conference all-in-one machine, screen segmentation display method and storage device
CN113986168A (en) * 2021-10-14 2022-01-28 深圳Tcl新技术有限公司 Image display method, device, equipment and readable storage medium
WO2022051931A1 (en) * 2020-09-09 2022-03-17 Boe Technology Group Co., Ltd. Ar/vr image display method, ar/vr image display apparatus, and computer-program product

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201550211U (en) * 2009-09-29 2010-08-11 天津三星电子显示器有限公司 TV set without limitation of resolution
CN102543045A (en) * 2010-12-24 2012-07-04 纬创资通股份有限公司 Method and related device for displaying picture
CN105718043A (en) * 2014-12-18 2016-06-29 三星电子株式会社 Method And Apparatus For Controlling An Electronic Device
CN106204621A (en) * 2016-07-22 2016-12-07 北京航空航天大学 The accurate extracting method of high-definition picture object that a kind of self adaptation is divided and ruled
CN107168614A (en) * 2012-03-06 2017-09-15 苹果公司 Application for checking image

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201550211U (en) * 2009-09-29 2010-08-11 天津三星电子显示器有限公司 TV set without limitation of resolution
CN102543045A (en) * 2010-12-24 2012-07-04 纬创资通股份有限公司 Method and related device for displaying picture
CN107168614A (en) * 2012-03-06 2017-09-15 苹果公司 Application for checking image
CN105718043A (en) * 2014-12-18 2016-06-29 三星电子株式会社 Method And Apparatus For Controlling An Electronic Device
CN106204621A (en) * 2016-07-22 2016-12-07 北京航空航天大学 The accurate extracting method of high-definition picture object that a kind of self adaptation is divided and ruled

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022051931A1 (en) * 2020-09-09 2022-03-17 Boe Technology Group Co., Ltd. Ar/vr image display method, ar/vr image display apparatus, and computer-program product
CN113055615A (en) * 2021-02-01 2021-06-29 广州朗国电子科技有限公司 Conference all-in-one machine, screen segmentation display method and storage device
CN113986168A (en) * 2021-10-14 2022-01-28 深圳Tcl新技术有限公司 Image display method, device, equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN111381748A (en) Image display method, device, equipment and storage medium
CN113190781B (en) Page layout method, device, equipment and storage medium
CN109684008B (en) Card rendering method, device, terminal and computer readable storage medium
CN112055244B (en) Image acquisition method and device, server and electronic equipment
CN108509272B (en) Method and device for copying GPU (graphics processing Unit) video memory texture to system memory and electronic equipment
CN112395038B (en) Method and device for adjusting characters during desktop sharing
US10691390B2 (en) Method and device for video rendering
CN112579187A (en) Optimization method and device for cold start of application program
CN114996103A (en) Page abnormity detection method and device, electronic equipment and storage medium
CN111061448A (en) Log information display method and device, electronic equipment and storage medium
CN104503674A (en) Screenshot picture generating method
CN110569097B (en) Information display method and device
CN105338289A (en) Static interference processing method and apparatus
CN109195021B (en) Screenshot sharing method and device
CN111767203A (en) Application test-based bullet frame processing method and system
CN106708605B (en) Method and device for detecting resource leakage
CN113127260B (en) Display exception handling method, device, equipment and medium
CN111127310B (en) Image processing method and device, electronic equipment and storage medium
CN110990747A (en) Image generation method, device, equipment and storage medium
CN112433778A (en) Mobile equipment page display method and device, electronic equipment and storage medium
CN112306838A (en) Page layout compatibility testing method, device and equipment and readable storage medium
US11070716B2 (en) Image sensor system, image sensor, data generation method of image sensor in image sensor system, and non-transitory computer-readable recording medium
US20180081951A1 (en) Information generation system, a method and a non-transitory computer readable medium thereof
US20220261193A1 (en) Information processing apparatus, method, and non-transitory computer-executable medium
CN116737016B (en) Control method and device for touch data scanning, computer equipment and storage medium

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