CN112579239A - Picture display method, device, server and computer readable storage medium - Google Patents

Picture display method, device, server and computer readable storage medium Download PDF

Info

Publication number
CN112579239A
CN112579239A CN202011524646.1A CN202011524646A CN112579239A CN 112579239 A CN112579239 A CN 112579239A CN 202011524646 A CN202011524646 A CN 202011524646A CN 112579239 A CN112579239 A CN 112579239A
Authority
CN
China
Prior art keywords
picture
pictures
terminal
page
display
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
CN202011524646.1A
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.)
Hunan New Cloudnet Technology Co ltd
Original Assignee
Hunan New Cloudnet 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 Hunan New Cloudnet Technology Co ltd filed Critical Hunan New Cloudnet Technology Co ltd
Priority to CN202011524646.1A priority Critical patent/CN112579239A/en
Publication of CN112579239A publication Critical patent/CN112579239A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application provides a picture display method, a picture display device, a server and a computer readable storage medium, wherein the method comprises the following steps: receiving a first instruction sent by a terminal, wherein the terminal displays a first display page, and the first instruction is used for indicating an initial picture in a server and the first display page; responding to the first instruction, adjusting the picture attributes of the initial picture to obtain at least two pictures to be selected, wherein the picture attributes of different pictures to be selected in the at least two pictures to be selected are different; determining a first picture matched with a first display page in at least two pictures to be selected; and sending the first picture to the terminal, and controlling the terminal to display the first picture in the first display page. According to the method and the device, the first picture is automatically matched and determined to be used for displaying according to the first display page indicated by the first instruction, the operation times of a user are effectively reduced, and the operation convenience of the terminal is improved.

Description

Picture display method, device, server and computer readable storage medium
Technical Field
The present application relates to the field of image processing technologies, and in particular, to an image display method, an image display apparatus, a server, and a computer-readable storage medium.
Background
With the great popularization and application of terminals, the functional requirements on the terminals are increasing. The user needs to display pictures with different sizes or different contents through the terminal under different application scenes. For example, the user needs to show the head portrait of a small-sized picture when communicating in time, and needs to show a large-sized picture when the personal page attribute is shown. When the user needs to display the pictures with the corresponding sizes or contents in different scenes based on the input of the user at the terminal, the user is required to perform related operations, the pictures are processed according to the operations, and then the processed pictures are displayed, so that the operation is complex and time-consuming.
Therefore, in the process of setting and displaying pictures with different sizes or contents on different pages, the terminal has the problem of low operation convenience.
Disclosure of Invention
The application aims to provide a picture display method, a picture display device, a server and a computer readable storage medium, and aims to solve the technical problem that in the prior art, the terminal operation convenience is low.
In a first aspect, the present application provides a picture display method applied to a server, where the method includes:
receiving a first instruction sent by a terminal, wherein the terminal displays a first display page, and the first instruction is used for indicating an initial picture in the server and the first display page;
responding to the first instruction, adjusting the picture attributes of the initial picture to obtain at least two pictures to be selected, wherein the picture attributes of different pictures to be selected in the at least two pictures to be selected are different;
determining a first picture matched with the first display page in the at least two pictures to be selected;
and sending the first picture to the terminal, and controlling the terminal to display the first picture in the first display page.
Further, the determining a first picture matched with the first display page in the at least two pictures to be selected includes:
acquiring the page attribute of the first display page;
and determining the picture to be selected with the picture attribute matched with the page attribute of the first display page as a first picture in the at least two pictures to be selected.
Further, in a case that the picture attribute includes content and size, the obtaining a page attribute of the first display page includes:
acquiring the page content of the first display page and the size of a picture setting area;
determining the picture to be selected, of the at least two pictures to be selected, whose picture attribute matches the page attribute of the first display page as a first picture, including:
determining a picture to be selected with the size matched with the size of the picture setting area from the at least two pictures to be selected as the first picture; or
Determining a picture to be selected with content matched with the page content from the at least two pictures to be selected as the first picture; or
And determining at least one primary selection picture with the size matched with the size of the picture setting area from the at least two pictures to be selected, and determining a candidate picture with the content matched with the page content from the at least one primary selection picture as a first picture.
Further, in a case that the first display page is a timely communication page associated with a target contact, and the page content includes identity information of the target contact, determining, from the at least one initially selected picture, that a candidate picture whose content matches the page content is a first picture includes:
and determining a candidate picture of the face image comprising the identity information as a first picture from the at least one initially selected picture.
Further, after the sending the first picture to the terminal, the method further includes:
under the condition that a second instruction is received, responding to the second instruction, and determining a second picture in the at least two pictures to be selected, wherein the picture attributes of the second picture are different from those of the first picture;
generating a third picture based on the second picture, wherein the third picture is the same size as the first picture;
and sending the third picture to the terminal, and controlling the terminal to update and display the third picture in the first display page.
Further, the generating a third picture based on the second picture comprises:
sending the second picture to the terminal;
receiving a third instruction sent by the terminal, wherein the third instruction is used for indicating a first position and presetting a magnification, and the first position is as follows: under the condition that the terminal displays the second picture in a magnifying mode according to the preset magnification, the position of the finger of the user in the magnified second picture is pointed;
responding to the third instruction, and amplifying the second picture according to the preset amplification factor;
taking the first position as a center, intercepting an image according to a first size in the second amplified image, and zooming the intercepted image to generate a third image, wherein the ratio of the first size to the size of the first image is the preset magnification; and the ratio of the intercepted image to the third picture is the preset magnification.
Further, the generating at least two pictures to be selected based on the initial picture includes:
and performing cutting processing and/or scaling processing on the initial picture to generate the at least two pictures to be selected.
In a second aspect, the present application further provides an image processing apparatus, including:
the terminal comprises a receiving module and a display module, wherein the receiving module is used for receiving a first instruction sent by the terminal, the terminal displays a first display page, and the first instruction is used for indicating an initial picture in the server and the first display page;
the processing module is used for responding to the first instruction and adjusting the picture attributes of the initial picture to obtain at least two pictures to be selected, wherein the picture attributes of different pictures to be selected in the at least two pictures to be selected are different;
the determining module is used for determining a first picture matched with the first display page in the at least two pictures to be selected;
and the transmission module is used for sending the first picture to the terminal and controlling the terminal to display the first picture in the first display page.
In a third aspect, the present application further provides a server comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the method according to any one of the claims of the first aspect when executing the computer program.
In a fourth aspect, the present application further provides a computer-readable storage medium comprising: a computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, carries out the method of any one of the claims in the first aspect.
It is understood that the beneficial effects of the second to fourth aspects can be seen from the description of the first aspect, and are not described herein again.
Compared with the prior art, the application has the beneficial effects that:
under the condition that a first instruction for indicating an initial picture in a server and a first display page of a terminal is received, the server responds to the first instruction, generates at least two pictures to be selected with different picture attributes based on the initial picture, determines a first picture matched with the first display page in the at least two pictures to be selected, and sends the first picture to the terminal, so that the terminal can display the first picture in the first display page. Therefore, according to the embodiment of the application, the server can automatically generate at least two pictures to be selected based on the initial picture, make a selection on the at least two pictures to be selected and determine the first picture of the first display page for displaying on the terminal, so that the operation of a user can be effectively reduced in the process of setting pictures with different sizes or contents on different pages for displaying, and the operation convenience of the terminal is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic flowchart of a picture display method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a picture display method according to a second embodiment of the present application;
fig. 3 is a schematic flowchart of a picture display method according to a third embodiment of the present application;
fig. 4 is a schematic flowchart of a picture display method according to a fourth embodiment of the present application;
fig. 5 is a schematic flowchart of a picture display method according to a fifth embodiment of the present application;
fig. 6 is a schematic flowchart of a picture display method according to a sixth embodiment of the present application;
fig. 7 is a schematic flowchart of a picture display method according to a seventh embodiment of the present application;
FIG. 8 is a schematic diagram of a picture display device according to an embodiment of the present application;
fig. 9 is a schematic hardware structure diagram of a server according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to any and all possible combinations of one or more of the listed items that match and include such combinations.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
In order to explain the technical means of the present application, the following description will be given by way of specific examples.
Example one
Referring to fig. 1, a schematic flow chart of a picture display method provided in an embodiment of the present application is shown, where the method includes:
step S11, receiving a first instruction sent by the terminal, wherein the terminal displays a first display page, and the first instruction is used for indicating an initial picture in the server and the first display page;
in the embodiment of the application, a server receives a first instruction sent by a terminal, the first instruction can be triggered by at least one operation performed by a user on the terminal, and the first instruction is used for indicating an initial picture in the server and a first display page of the terminal.
The initial picture may be a picture collected and stored in advance by the server, or a picture selected by the user at the terminal and uploaded to the server.
In addition, the first instruction is mainly used for indicating attribute information of the first display page, including a link of the first display page, content or a screenshot of the first display page, so as to identify the type of the first display page. The first display page may be a user's instant messaging page, a user's live broadcast page, a user's personal information presentation page, and the like.
For example, after receiving the operation information of the user, the terminal opens a personal information display page, acquires an initial picture uploaded by the user according to the prompt of the personal information display page, and sends the initial picture to the server.
Step S12, responding to the first instruction, adjusting the picture attributes of the initial picture to obtain at least two pictures to be selected, wherein the picture attributes of different pictures to be selected in the at least two pictures to be selected are different;
in the embodiment of the application, the server processes the initial picture according to the instruction of the first instruction to generate at least two pictures to be selected, wherein the picture attributes of the pictures to be selected in the at least two pictures to be selected are different. The pictures may be different in size, different in content, or different in both size and content. The server can store at least two pictures to be selected.
Step S13, determining a first picture matched with a first display page in at least two pictures to be selected;
in the embodiment of the application, the server determines a picture to be selected matched with the first display page as the first picture in at least two pictures to be selected based on the picture display requirement of the first display page.
For example, when the first display page is the personal information presentation page, a large-size half-body photograph or a whole-body photograph may be selected as the first picture from the pictures to be selected.
And step S14, sending the first picture to the terminal, and controlling the terminal to display the first picture in the first display page.
In the embodiment of the application, the server determines the first picture and then sends the first picture to the terminal, and the terminal receives the first picture and displays the first picture on the first display page.
According to the method and the device, the server can automatically generate at least two pictures to be selected based on the initial picture, select the at least two pictures to be selected and determine the first picture for displaying on the first display page of the terminal, so that the operation of a user can be effectively reduced in the process of setting pictures with different sizes or contents on different pages for displaying, and the operation convenience of the terminal is improved.
The image display method of the terminal corresponds to the image display method of the server, and comprises the following steps:
under the condition that a first operation of a user is received, generating a first instruction, wherein the first instruction is used for indicating an initial picture in a server and a first display page of a terminal;
sending a first instruction to a server;
the receiving server processes the initial picture based on the first instruction to generate at least two pictures to be selected, and determines a first picture matched with the first display page from the at least two pictures to be selected;
and displaying the first picture in a first display page.
Example two
Referring to fig. 2, a schematic flow chart of a picture display method provided in the second embodiment of the present application is shown, where the method includes:
step S21, receiving a first instruction sent by the terminal, wherein the terminal displays a first display page, and the first instruction is used for indicating an initial picture in the server and the first display page;
step S22, responding to the first instruction, adjusting the picture attributes of the initial picture to obtain at least two pictures to be selected, wherein the picture attributes of different pictures to be selected in the at least two pictures to be selected are different;
step S23, acquiring the page attribute of the first display page;
step S24, determining a picture to be selected, of the at least two pictures to be selected, of which the picture attribute is matched with the page attribute of the first display page as a first picture;
and step S25, sending the first picture to the terminal, and controlling the terminal to display the first picture in the first display page.
Step S21 is the same as step S11, step S22 is the same as step S12, and step S25 is the same as step S14, which are not repeated herein. The difference from the first embodiment is that steps S23 and S24 are detailed as follows:
in step S23, the server obtains page attributes of the first display page, where the page attributes may include information of display areas of the pictures in the first display page and other information displayed on the first display page. The server may automatically acquire the page attribute when the terminal opens the first display page, or may receive the page attribute sent to the server by the terminal based on the user operation.
In step S24, the server analyzes and matches the image attributes of at least two pictures to be selected with the page attributes of the first display page, and selects one picture to be selected to determine the picture to be the first picture. The server can match according to a preset relationship correspondence table of the scene and the picture, or calculate according to the similarity of the picture attribute and the page attribute, and finally determine the first picture, so that the user is prevented from operating in a complicated and time-consuming manner, and the portability of the terminal is improved.
For example, a relation correspondence table of scenes and pictures is preset in the server, and when the first display page is a personal information display page, the matched pictures are large-size full-body pictures; when the first display page is a live broadcast page, the matched picture is a half-length picture with a medium size; when the first display page is the instant messaging page, the matched picture is a small-size head portrait. The specific size may be determined according to the picture setting area in the first display page.
EXAMPLE III
Referring to fig. 3, which is a schematic flow chart of a picture display method provided in a third embodiment of the present application, in the embodiment of the present application, when a picture attribute includes content and size, the method includes:
step S31, receiving a first instruction sent by the terminal, wherein the terminal displays a first display page, and the first instruction is used for indicating an initial picture in the server and the first display page;
step S32, responding to the first instruction, and generating at least two pictures to be selected based on the initial picture, wherein the picture attributes of different pictures to be selected in the at least two pictures to be selected are different;
step S33, acquiring the page content of the first display page and the size of the picture setting area;
step S34, determining a picture to be selected with the size matched with the size of the picture setting area from at least two pictures to be selected as a first picture;
step S35, determining a picture to be selected with content matched with the page content as a first picture from at least two pictures to be selected;
step S36, determining at least one primary selection picture with the size matched with the size of the picture setting area from at least two pictures to be selected, and determining a candidate picture with the content matched with the page content from the at least one primary selection picture as a first picture;
and step S37, sending the first picture to the terminal, and controlling the terminal to display the first picture in the first display page.
Step S31 is the same as step S21, step S32 is the same as step S22, and step S37 is the same as step S25, which are not repeated herein. The difference from the second embodiment is that step S33, step S34, step 35 and step 36 are detailed as follows:
in step S33, acquiring the page attribute of the first display page includes acquiring the page content and the size of the picture setting area. The page content includes text data described in the first display page and displayed image information, and the size of the picture setting region includes the size of a region for displaying the first picture in the first display page.
In step S34, a to-be-selected picture having a size matching the size of the picture setting area of the first display page is selected as a first picture from the at least two to-be-selected pictures, and the first picture is displayed on the first display page.
In step S35, a to-be-selected picture whose content matches the page content of the first display page is selected as a first picture from the at least two to-be-selected pictures, and the first picture is displayed in the first display page.
In step S36, according to the size of the picture setting area in the first display page, the server selects at least one initially selected picture with a size that matches the size from the stored at least two pictures to be selected.
For example, when the first display page is a personal information display page, and a large-size picture is required according to the size of the picture setting area, all pictures to be selected meeting the large-size requirement are selected from at least two pictures to be selected as initial selection pictures. The specific size requirement of the large-size picture is set according to the actual situation.
And after all the primarily selected pictures meeting the size requirement are selected, determining the required content according to the page content in the first display page. And selecting a primary selection picture which accords with the content from the at least one primary selection picture as a first picture.
For example, when the first display page is the personal information display page, by identifying the content of the page, if the "personal display" information is identified, the initially selected picture corresponding to the matching content being the whole body photograph is taken as the first picture, and therefore, the first picture is finally determined to be the large-size whole body photograph. Through double confirmation of the size and the page content, the accuracy of displaying the first picture is ensured, and the portability of the terminal is further improved.
Example four
Referring to fig. 4, which is a flowchart illustrating a picture display method provided in the fourth embodiment of the present application, in the embodiment of the present application, when a first display page is a timely communication page associated with a target contact, and a page content includes identity information of the target contact, the method includes:
step S41, receiving a first instruction sent by the terminal, wherein the terminal displays a first display page, and the first instruction is used for indicating an initial picture in the server and the first display page;
step S42, responding to the first instruction, and generating at least two pictures to be selected based on the initial picture, wherein the picture attributes of different pictures to be selected in the at least two pictures to be selected are different;
step S43, acquiring the page content of the first display page and the size of the picture setting area;
step S44, determining a picture to be selected with the size matched with the size of the picture setting area from at least two pictures to be selected as a first picture;
step S45, determining a picture to be selected with content matched with the page content as a first picture from at least two pictures to be selected;
step S46, determining at least one primary selection picture with the size matched with the size of the picture setting area from at least two pictures to be selected, and determining a candidate picture of the face image including the identity information as a first picture from the at least one primary selection picture;
and step S47, sending the first picture to the terminal, and controlling the terminal to display the first picture in the first display page.
Step S41 is the same as step S31, step S42 is the same as step S32, step S43 is the same as step S33, step S44 is the same as step S34, step S45 is the same as step S35, and step S47 is the same as step S37, which is not repeated herein. The difference from the third embodiment is that step S46 is detailed as follows:
in step S46, the first displayed page is a timely communication page associated with a target contact, and the content of the page includes identity information of the target contact, where the target contact is a certain terminal, and the identity information of the target contact is identity information of a user using the terminal.
For example, in the previous step S45, after all small-sized pictures are selected from at least two pictures to be selected as the first selected pictures according to that the first displayed page is the instant messaging page associated with the target contact, the server acquires the identity information of the user using the terminal, and then selects the face image of the user as the first picture from the first selected pictures.
Wherein, the specific size demand of small-size picture sets up according to actual conditions. After the identity information of the user is identified, the face image is automatically matched, the pertinence is strong, the accuracy is high, and the portability of the terminal is further improved.
EXAMPLE five
Referring to fig. 5, a schematic flow chart of a picture display method provided in the fifth embodiment of the present application is shown, where the method includes:
step S51, receiving a first instruction sent by the terminal, wherein the terminal displays a first display page, and the first instruction is used for indicating an initial picture in the server and the first display page;
step S52, responding to the first instruction, adjusting the picture attributes of the initial picture to obtain at least two pictures to be selected, wherein the picture attributes of different pictures to be selected in the at least two pictures to be selected are different;
step S53, determining a first picture matched with a first display page in at least two pictures to be selected;
step S54, sending a first picture to the terminal, and controlling the terminal to display the first picture in a first display page;
step S55, under the condition that a second instruction is received, responding to the second instruction, and determining a second picture in at least two pictures to be selected, wherein the picture attributes of the second picture are different from those of the first picture;
step S56, generating a third picture based on the second picture, wherein the third picture has the same size as the first picture;
and step S57, sending the third picture to the terminal, and controlling the terminal to update and display the third picture in the first display page.
Step S51 is the same as step S11, step S52 is the same as step S12, step S53 is the same as step S13, and step S54 is the same as step S14, which are not repeated herein. The difference from the first embodiment is that steps S55 to S57 are detailed as follows:
in step S55, when the user is not satisfied with the content of the first picture displayed on the first display page, the terminal generates a second command and transmits the second command to the server when receiving a second operation by the user. And at the moment, the server receives a second instruction sent by the terminal, and in response to the second instruction, reselects a picture to be selected, which is different from the first picture, from at least two pictures to be selected as a second picture.
For example, when the first display page is the personal information display page, the first picture is a full-length photograph, and the user is dissatisfied with the full-length photograph displayed in the first picture, the server may select one half-length photograph from at least two candidate photographs as the second picture.
In one example, the user may not disagree with the content, but the image is located unsatisfactorily, for example, when the first display page is the personal information presentation page, the first picture is a full-body photograph, the user considers that the image of the full-body photograph is shifted to the left or right, or the image is considered to be too upward or downward, and the server may also select another full-body photograph from the at least two candidate pictures as the second picture in response to the second instruction.
In step S56, the server generates a third picture with the same size as the first picture after the predetermined zoom factor processing based on the re-determined second picture.
For example, the first picture is a large-size whole body picture, the second picture is a middle-size half body picture, the middle-size picture does not coincide with the picture setting region of the first display page, and the middle-size picture is enlarged to generate a large-size half body picture as the third picture.
In step S57, the server sends the processed third picture to the terminal, and the terminal receives the third picture sent by the server, updates the first picture in the first display page with the third picture, and finally displays the third picture in the first display page. The display picture is supported to be changed, the user can change the display picture according to personal habits, and the applicability is wider.
EXAMPLE six
Referring to fig. 6, a schematic flow chart of a picture display method provided in a sixth embodiment of the present application is shown, where the method includes:
step S61, receiving a first instruction sent by the terminal, wherein the terminal displays a first display page, and the first instruction is used for indicating an initial picture in the server and the first display page;
step S62, responding to the first instruction, adjusting the picture attributes of the initial picture to obtain at least two pictures to be selected, wherein the picture attributes of different pictures to be selected in the at least two pictures to be selected are different;
step S63, determining a first picture matched with a first display page in at least two pictures to be selected;
step S64, sending a first picture to the terminal, and controlling the terminal to display the first picture in a first display page;
step S65, under the condition that a second instruction is received, responding to the second instruction, and determining a second picture in at least two pictures to be selected, wherein the picture attributes of the second picture are different from those of the first picture;
step S66, sending a second picture to the terminal;
step S67, receiving a third instruction sent by the terminal, where the third instruction is used to indicate a first position and preset magnification, where the first position is: under the condition that the terminal displays the second picture in a magnifying mode with the preset magnification, the position of the finger of the user in the magnified second picture is pointed;
step S68, responding to a third instruction, and amplifying the second picture according to a preset amplification factor;
step S69, taking the first position as a center, cutting an image in the second enlarged picture according to a first size, and zooming the cut image to generate a third picture, wherein the ratio of the first size to the first picture is a preset magnification; the ratio of the intercepted image to the third picture is a preset magnification;
and step S70, sending the third picture to the terminal, and controlling the terminal to update and display the third picture in the first display page.
Step S61 is the same as step S51, step S62 is the same as step S52, step S63 is the same as step S53, step S64 is the same as step S54, step S65 is the same as step S55, and step S70 is the same as step S57, which are not repeated herein. The difference from the fifth embodiment is that steps S66 to S69 are detailed as follows:
in step S66, the server sends a second picture different from the first picture, which is selected from the at least two pictures to be selected, to the terminal. And the terminal receives the second picture sent by the server.
In step S67, when the terminal receives the third operation by the user, the terminal generates a third command and transmits the third command to the server. The third instruction indicates the first position and the preset magnification.
For example, after the terminal receives the second picture, based on a third operation of the user, the second picture is displayed on the terminal after being magnified by a preset magnification, and the first position is a position where the finger of the user aims in the magnified second picture. And the server receives a third instruction sent by the terminal.
In step S68, the server, in response to the third instruction, enlarges the second picture at the preset enlargement factor indicated by the third instruction. For example, the second picture is displayed on the terminal after being enlarged twice, and meanwhile, the second picture in the server is also enlarged twice.
In step S69, the server cuts out an image according to a first size in the enlarged second picture with the first position as a center, wherein a ratio of the first size to a size of the first picture is a preset magnification; and zooming the intercepted image to generate a third image, wherein the ratio of the intercepted image to the third image is a preset magnification factor.
For example, the second picture after being enlarged twice is subjected to image capturing processing with the position of the finger of the user in the enlarged second picture as the center, and then the captured image is zoomed corresponding to the size of the first picture to generate a third picture with the same size as the first picture, and the third picture is used for replacing the first picture subsequently.
In the embodiment of the application, the user can select the position of the picture to be captured according to self-operation, and finally generate and replace the displayed third picture, so that different requirements of different users can be met, and the applicability is further expanded.
EXAMPLE seven
Referring to fig. 7, a schematic flow chart of a picture display method provided in a seventh embodiment of the present application is shown, where in the embodiment of the present application, the method includes:
step S71, receiving a first instruction sent by the terminal, wherein the terminal displays a first display page, and the first instruction is used for indicating an initial picture in the server and the first display page;
step S72, in response to the first instruction, performing cutting processing and/or zooming processing on the initial picture to generate at least two pictures to be selected, wherein the picture attributes of different pictures to be selected in the at least two pictures to be selected are different, and the picture attributes comprise at least one of size and content;
step S73, determining a first picture matched with a first display page in at least two pictures to be selected;
and step S74, sending the first picture to the terminal, and controlling the terminal to display the first picture in the first display page.
Step S71 is the same as step S11, step S73 is the same as step S13, and step S74 is the same as step S14, which are not repeated herein. The difference from the first embodiment is that step S72 is detailed as follows:
in an example of the embodiment of the present application, in step S72, a cutting process is performed on the initial picture. And the server responds to the first instruction, cuts the initial picture according to preset cutting areas, the number of the preset cutting areas is at least two, the sizes of the different preset cutting areas are different, and cuts the initial picture according to different sizes to generate at least two pictures to be selected, which have different sizes and different contents. In a possible embodiment, at least two pictures to be selected with the same size and different contents can be cut on the initial picture by using the preset cutting area with the same size.
In an example of the embodiment of the present application, in step S72, the scaling process is performed on the initial picture. And the server responds to the first instruction, zooms the initial pictures according to preset zoom multiples, wherein the preset zoom multiples are at least two, zooms the initial pictures according to different preset zoom multiples, and generates at least two pictures to be selected which have different sizes and the same content.
In an example of the embodiment of the present application, in step S72, a cutting process and a scaling process are performed on an initial picture. And the server responds to the first instruction, cuts the initial picture according to the preset cutting area to obtain a picture with required content, and zooms the cut picture according to different preset zoom multiples to obtain at least two pictures to be selected with different sizes.
In the embodiment of the application, different processing can be performed on the initial picture according to actual requirements to generate different pictures to be selected, so that the requirements of a user can be met, the user is prevented from operating again, and the convenience of the terminal is effectively improved.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Fig. 8 shows a block diagram of a picture processing apparatus 8 provided in the embodiment of the present application, which corresponds to the picture processing method in the above embodiment, and only shows the relevant parts in the embodiment of the present application for convenience of description.
Referring to fig. 8, the picture processing apparatus 8 includes:
the receiving module 81 is configured to receive a first instruction sent by a terminal, where the terminal displays a first display page, and the first instruction is used to indicate an initial picture in the server and the first display page;
the processing module 82 is configured to adjust the picture attributes of the initial picture in response to the first instruction to obtain at least two pictures to be selected, where the picture attributes of different pictures to be selected in the at least two pictures to be selected are different;
the determining module 83 is configured to determine a first picture matched with the first display page in the at least two pictures to be selected;
and the transmission module 84 is configured to send the first picture to the terminal, and control the terminal to display the first picture in the first display page.
Further, the determining module 83 includes:
the acquiring unit is used for acquiring the page attribute of the first display page;
and the determining unit is used for determining the picture to be selected with the picture attribute matched with the page attribute of the first display page as the first picture in at least two pictures to be selected.
Optionally, in the case that the picture attribute includes content and size:
the acquisition unit is specifically used for acquiring the page content of the first display page and the size of the picture setting area;
the determining unit is specifically used for determining at least one initially selected picture with the size matched with the size in the at least two pictures to be selected; and determining a primary selected picture with the content matched with the page content as a first picture in the at least one primary selected picture.
Optionally, when the first display page is a timely communication page matched with the target contact, and the page content includes the identity information of the target contact:
the determining unit is specifically used for determining at least one initially selected picture with the size matched with the size in the at least two pictures to be selected; and determining a primary selected picture of which the content comprises a face image matched with the identity information as a first picture in at least one primary selected picture.
It should be noted that, for the information interaction, execution process, and other contents between the above-mentioned devices/units, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, and specific reference may be made to the part of the embodiment of the method, which is not described herein again.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules, so as to perform all or part of the functions described above. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Referring to fig. 9, an embodiment of the present application further provides a server 9, including: at least one processor 90, a memory 91 and a computer program 92 stored in the memory 91 and executable on the at least one processor 90, such as a first object boundary or a second object boundary determining program, an end transformation program, etc. The steps in any of the various method embodiments described above are implemented when the computer program 92 is executed by the processor 90. Such as S11, S12, and S13 shown in fig. 1.
Illustratively, the computer program 92 may be partitioned into one or more modules/units, which are stored in the memory 91 and executed by the processor 90 to accomplish the present application. One or more of the modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 92 in the server 9. For example, the computer program 92 may be divided into a receiving module 81, a processing module 82, a determining module 83, and a transmitting module 84 (module in the virtual device), and each module has the following specific functions:
the receiving module 81 is configured to receive a first instruction sent by a terminal, where the terminal displays a first display page, and the first instruction is used to indicate an initial picture in the server and the first display page;
the processing module 82 is configured to adjust the picture attributes of the initial picture in response to the first instruction to obtain at least two pictures to be selected, where the picture attributes of different pictures to be selected in the at least two pictures to be selected are different;
the determining module 83 is configured to determine a first picture matched with the first display page in the at least two pictures to be selected;
and the transmission module 84 is configured to send the first picture to the terminal, and control the terminal to display the first picture in the first display page.
The processor 90 may include one or more of a central processing unit (cpu), an Application Processor (AP), a baseband processor, and the like. The processor 90 may be a neural hub and a command center of a wireless router. The processor 90 may generate operation control signals according to the instruction operation code and the timing signals, so as to complete the control of instruction fetching and instruction execution. The memory 91 may be used to store computer executable program code, which includes instructions. The processor 90 executes various functional applications of the network device and data processing by executing instructions stored in the memory 91. The memory 91 may include a program storage area and a data storage area, such as data storing a sound signal to be played, and the like. The memory 91 may be, for example, a double data rate synchronous dynamic random access memory DDR or a Flash memory Flash.
The present application further provides a computer-readable storage medium, in which a computer program is stored, and when being executed by the processor 90, the computer program 92 implements the steps in the above-mentioned method embodiments.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the method of the embodiments described above can be implemented by a computer program 92 to instruct related hardware to implement the steps of the methods described above, and the computer program 92 can be stored in a computer readable storage medium, and when being executed by the processor 90, the computer program 92 can implement the steps of the methods of the embodiments described above. Where the computer program 92 includes computer program 92 code, the computer program 92 code may be in source code form, object code form, an executable file or some intermediate form, and the like. The computer readable medium may include at least: any entity or device capable of carrying computer program 92 code to a photographing apparatus/server, a recording medium, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), an electrical carrier wave signal, a telecommunications signal, and a software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and patent practice.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
The above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A picture display method is applied to a server, and the method comprises the following steps:
receiving a first instruction sent by a terminal, wherein the terminal displays a first display page, and the first instruction is used for indicating an initial picture in the server and the first display page;
responding to the first instruction, adjusting the picture attributes of the initial picture to obtain at least two pictures to be selected, wherein the picture attributes of different pictures to be selected in the at least two pictures to be selected are different;
determining a first picture matched with the first display page in the at least two pictures to be selected;
and sending the first picture to the terminal, and controlling the terminal to display the first picture in the first display page.
2. The method according to claim 1, wherein the determining a first picture matching the first display page among the at least two pictures to be selected comprises:
acquiring the page attribute of the first display page;
and determining the picture to be selected with the picture attribute matched with the page attribute of the first display page as a first picture in the at least two pictures to be selected.
3. The method according to claim 2, wherein in the case that the picture attribute includes content and size, the obtaining the page attribute of the first display page includes:
acquiring the page content of the first display page and the size of a picture setting area;
determining the picture to be selected, of the at least two pictures to be selected, whose picture attribute matches the page attribute of the first display page as a first picture, including:
determining a picture to be selected with the size matched with the size of the picture setting area from the at least two pictures to be selected as the first picture; or
Determining a picture to be selected with content matched with the page content from the at least two pictures to be selected as the first picture; or
And determining at least one primary selection picture with the size matched with the size of the picture setting area from the at least two pictures to be selected, and determining a candidate picture with the content matched with the page content from the at least one primary selection picture as a first picture.
4. The method of claim 3, wherein in the case that the first displayed page is a messaging page associated with a target contact and the page content includes identity information of the target contact, the determining, from the at least one initially selected picture, that a candidate picture whose content matches the page content is a first picture comprises:
and determining a candidate picture of the face image comprising the identity information as a first picture from the at least one initially selected picture.
5. The method according to claim 1, wherein after the sending the first picture to the terminal, further comprising:
under the condition that a second instruction is received, responding to the second instruction, and determining a second picture in the at least two pictures to be selected, wherein the picture attributes of the second picture are different from those of the first picture;
generating a third picture based on the second picture, wherein the third picture is the same size as the first picture;
and sending the third picture to the terminal, and controlling the terminal to update and display the third picture in the first display page.
6. The method of claim 5, wherein generating a third picture based on the second picture comprises:
sending the second picture to the terminal;
receiving a third instruction sent by the terminal, wherein the third instruction is used for indicating a first position and presetting a magnification, and the first position is as follows: under the condition that the terminal displays the second picture in a magnifying mode according to the preset magnification, the position of the finger of the user in the magnified second picture is pointed;
responding to the third instruction, and amplifying the second picture according to the preset amplification factor;
taking the first position as a center, intercepting an image according to a first size in the second amplified image, and zooming the intercepted image to generate a third image, wherein the ratio of the first size to the size of the first image is the preset magnification; and the ratio of the intercepted image to the third picture is the preset magnification.
7. The picture display method according to claim 1, wherein the generating at least two pictures to be selected based on the initial picture comprises:
and performing cutting processing and/or scaling processing on the initial picture to generate the at least two pictures to be selected.
8. A picture processing apparatus, comprising:
the terminal comprises a receiving module and a display module, wherein the receiving module is used for receiving a first instruction sent by the terminal, the terminal displays a first display page, and the first instruction is used for indicating an initial picture in the server and the first display page;
the processing module is used for responding to the first instruction and adjusting the picture attributes of the initial picture to obtain at least two pictures to be selected, wherein the picture attributes of different pictures to be selected in the at least two pictures to be selected are different;
the determining module is used for determining a first picture matched with the first display page in the at least two pictures to be selected;
and the transmission module is used for sending the first picture to the terminal and controlling the terminal to display the first picture in the first display page.
9. A server comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
CN202011524646.1A 2020-12-22 2020-12-22 Picture display method, device, server and computer readable storage medium Pending CN112579239A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011524646.1A CN112579239A (en) 2020-12-22 2020-12-22 Picture display method, device, server and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011524646.1A CN112579239A (en) 2020-12-22 2020-12-22 Picture display method, device, server and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN112579239A true CN112579239A (en) 2021-03-30

Family

ID=75136617

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011524646.1A Pending CN112579239A (en) 2020-12-22 2020-12-22 Picture display method, device, server and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112579239A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101789961A (en) * 2009-12-31 2010-07-28 优视科技有限公司 Picture scaling system used for terminal of mobile communication equipment and application method thereof
CN102436484A (en) * 2011-10-28 2012-05-02 优视科技有限公司 Processing method and processing system for webpage picture amplification
CN203882590U (en) * 2013-12-18 2014-10-15 株式会社东芝 Image processing equipment and image display equipment
CN104579908A (en) * 2013-10-21 2015-04-29 腾讯科技(深圳)有限公司 Method and device for displaying images
CN105183308A (en) * 2015-07-27 2015-12-23 努比亚技术有限公司 Picture display method and apparatus
CN106383707A (en) * 2016-09-07 2017-02-08 努比亚技术有限公司 Picture display method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101789961A (en) * 2009-12-31 2010-07-28 优视科技有限公司 Picture scaling system used for terminal of mobile communication equipment and application method thereof
CN102436484A (en) * 2011-10-28 2012-05-02 优视科技有限公司 Processing method and processing system for webpage picture amplification
CN104579908A (en) * 2013-10-21 2015-04-29 腾讯科技(深圳)有限公司 Method and device for displaying images
CN203882590U (en) * 2013-12-18 2014-10-15 株式会社东芝 Image processing equipment and image display equipment
CN105183308A (en) * 2015-07-27 2015-12-23 努比亚技术有限公司 Picture display method and apparatus
CN106383707A (en) * 2016-09-07 2017-02-08 努比亚技术有限公司 Picture display method and system

Similar Documents

Publication Publication Date Title
JP4990994B2 (en) Short film generating apparatus, short film generating method, program, and recording medium
CN107123084B (en) Optimizing image cropping
KR101874895B1 (en) Method for providing augmented reality and terminal supporting the same
EP2874054B1 (en) Application text adjusting method, device, and terminal
US8228414B2 (en) Real-size preview system in terminal having digital camera function and control method thereof
WO2022161260A1 (en) Focusing method and apparatus, electronic device, and medium
CN114025098B (en) Image display method, device, electronic equipment and computer readable storage medium
JP2019057891A (en) Information processing apparatus, imaging apparatus, information processing method, and program
CN115454365A (en) Picture processing method and device, electronic equipment and medium
CN104333699A (en) Method and device for synthesizing user-defined photographing region
CN111445557B (en) Automatic generation method and device for bank website business card
JP5886662B2 (en) Image display device
CN112579239A (en) Picture display method, device, server and computer readable storage medium
JP6924544B2 (en) Cartoon data display system, method and program
CN114390205B (en) Shooting method and device and electronic equipment
KR101738896B1 (en) Fitting virtual system using pattern copy and method therefor
Zhang et al. Image retargeting with multifocus fisheye transformation
KR20120035321A (en) System and method for playing contents of augmented reality
CN113822899A (en) Image processing method, image processing device, computer equipment and storage medium
JP2010257266A (en) Content output system, server device, device, method, and program for outputting content, and recording medium storing the content output program
CN112887695A (en) Panorama sharing processing method, system and terminal
JP2008090526A (en) Conference information storage device, system, conference information display device, and program
JP2003271282A (en) Display instruction device, display system, display instruction program, terminal, and program
RU2743956C1 (en) Method for creating vertically oriented video
CN115588063A (en) Picture obtaining 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: 20210330

RJ01 Rejection of invention patent application after publication