CN112783382B - Method, device, terminal and storage medium for setting document icons - Google Patents

Method, device, terminal and storage medium for setting document icons Download PDF

Info

Publication number
CN112783382B
CN112783382B CN202010382679.0A CN202010382679A CN112783382B CN 112783382 B CN112783382 B CN 112783382B CN 202010382679 A CN202010382679 A CN 202010382679A CN 112783382 B CN112783382 B CN 112783382B
Authority
CN
China
Prior art keywords
target
icon
document
user
target image
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.)
Active
Application number
CN202010382679.0A
Other languages
Chinese (zh)
Other versions
CN112783382A (en
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.)
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Original Assignee
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software 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 Beijing Kingsoft Office Software Inc, Zhuhai Kingsoft Office Software Co Ltd filed Critical Beijing Kingsoft Office Software Inc
Priority to CN202010382679.0A priority Critical patent/CN112783382B/en
Publication of CN112783382A publication Critical patent/CN112783382A/en
Application granted granted Critical
Publication of CN112783382B publication Critical patent/CN112783382B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons

Landscapes

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

Abstract

The embodiment of the invention provides a method, a device, a terminal and a storage medium for setting document icons, wherein the method is applied to the terminal and comprises the following steps: when an icon setting instruction for a target document sent by a user is received, displaying thumbnails of a plurality of candidate images; when a selection instruction sent by a user is received, determining the thumbnail of the selected candidate image from the thumbnails of the plurality of candidate images as a target thumbnail; and setting the target image corresponding to the target thumbnail as an icon of the target document. By applying the embodiment of the invention, when the user forgets the name of the target document, the target document can be quickly searched through the icon of the target document.

Description

Method, device, terminal and storage medium for setting document icons
Technical Field
The present invention relates to the field of image processing technologies, and in particular, to a method, an apparatus, a terminal, and a storage medium for setting a document icon.
Background
Currently, in the process of editing a document such as a text document, a spreadsheet, a presentation, etc. by office software, document icons of documents of the same format type are usually the same icons preset by office software. For example, as shown in FIG. 1, documents 101-108 are documents of the same format type, and the icons of documents 101-108 are the same icon.
When the user forgets the name of the target document to be checked, and a plurality of documents with the same format type as the target document are stored in the terminal, the user can only open each document with the same format type as the target document one by one and check the specific content of each document, so that the target document to be checked can be searched from the document, and the target document is difficult to be quickly searched.
Disclosure of Invention
The embodiment of the invention aims to provide a method, a device, a terminal and a storage medium for setting document icons, so that a user can conveniently and quickly search documents. The specific scheme is as follows:
in a first aspect, an embodiment of the present invention provides a method for setting a document icon, which is applied to a terminal, where the method includes:
when an icon setting instruction for a target document sent by a user is received, displaying thumbnails of a plurality of candidate images;
when a selection instruction sent by a user is received, determining the thumbnail of the selected candidate image from the thumbnails of the plurality of candidate images as a target thumbnail;
and setting a target image corresponding to the target thumbnail as an icon of the target document.
Optionally, the target document is an online document stored in a server;
After the step of setting the target image corresponding to the target thumbnail as the icon of the target document, the method further includes:
sending the icon of the target document to the server so that the server stores the icon of the target document and generates a target URL of the icon of the target document;
receiving and storing the target URL sent by the server;
when a display instruction of a document list interface sent by a user is received, accessing the target URL to obtain an icon of the target document, wherein the document list interface is an interface comprising the icon of the target document;
and displaying the icon of the target document at a preset position in the document list interface.
Optionally, before the step of setting the target image corresponding to the target thumbnail as the icon of the target document, the method further includes:
cutting the target image corresponding to the target thumbnail according to a preset cutting size to obtain a cut target image;
the step of setting the target image corresponding to the target thumbnail as the icon of the target document comprises the following steps:
and setting the cut target image as an icon of the target document.
Optionally, the step of clipping the target image corresponding to the target thumbnail according to a preset clipping size to obtain a clipped target image includes:
generating a cutting frame with a preset cutting size, and displaying the cutting frame on the target image;
when a dragging instruction of a target image corresponding to the target thumbnail sent by a user is received, moving the target image according to the dragging instruction;
and when receiving a cutting determining instruction sent by a user, taking the current image area in the cutting frame as a cut target image.
Optionally, before the step of taking the current image area in the cropping frame as the cropped target image when the cropping instruction sent by the user is received, the method further includes:
and when a scaling instruction of a user on the target image is received, scaling the target image according to the scaling instruction.
In a second aspect, an embodiment of the present invention provides a device for setting a document icon, which is applied to a terminal, and the device includes:
the candidate image display module is used for displaying thumbnails of a plurality of candidate images when receiving an icon setting instruction for a target document sent by a user;
A target image selection module, configured to determine, when a selection instruction sent by a user is received, a thumbnail of a selected candidate image from the thumbnails of the plurality of candidate images, as a target thumbnail;
and the icon setting module is used for setting the target image corresponding to the target thumbnail as the icon of the target document.
Optionally, the target document is an online document stored in a server;
the apparatus further comprises:
a sending module, configured to send, after setting a target image corresponding to the target thumbnail as an icon of the target document, the icon of the target document to the server, so that the server saves the icon of the target document, and generates a target URL of the icon of the target document;
the storage module is used for receiving and storing the target URL sent by the server;
the icon acquisition module is used for accessing the target URL when receiving a display instruction of a document list interface sent by a user, and acquiring an icon of the target document, wherein the document list interface is an interface comprising the icon of the target document;
and the display module is used for displaying the icon of the target document at a preset position in the document list interface.
Optionally, the apparatus further includes:
the clipping module is used for clipping the target image corresponding to the target thumbnail according to a preset clipping size before setting the target image corresponding to the target thumbnail as the icon of the target document, so as to obtain a clipped target image;
the icon setting module includes:
and the icon setting sub-module is used for setting the cut target image as the icon of the target document.
Optionally, the clipping module includes:
the cutting frame generation sub-module is used for generating a cutting frame with a preset cutting size and displaying the cutting frame on the target image;
the dragging sub-module is used for moving the target image according to a dragging instruction when receiving the dragging instruction of the target image corresponding to the target thumbnail sent by a user;
and the cutting sub-module is used for taking the current image area in the cutting frame as a cut target image when receiving a cutting determining instruction sent by a user.
Optionally, the apparatus further includes:
and the scaling sub-module is used for scaling the target image according to the scaling instruction when receiving the scaling instruction of the user on the target image before taking the current image area in the clipping frame as the clipped target image when receiving the determined clipping instruction sent by the user.
In a third aspect, an embodiment of the present invention provides a terminal, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing any of the above method steps for setting the document icons when executing the programs stored in the memory.
In a fourth aspect, an embodiment of the present invention provides a computer readable storage medium, in which a computer program is stored, the computer program implementing any one of the above-described method steps for setting a document icon when executed by a processor.
In the scheme provided by the embodiment of the invention, the terminal can display the thumbnail of a plurality of candidate images when receiving the icon setting instruction for the target document sent by the user; when a selection instruction sent by a user is received, determining the thumbnail of the selected candidate image from the thumbnails of the plurality of candidate images as a target thumbnail; and setting the target image corresponding to the target thumbnail as an icon of the target document. The terminal can set the target image selected by the user as the icon of the target document, so that the icon of the target document is different from the icons of other documents with the same format type as the target document, and when the user forgets the name of the target document, the target document can be quickly searched through the icon of the target document.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic illustration of icons of multiple documents of the same format type;
FIG. 2 is a flowchart of a method for setting document icons according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a save interface according to an embodiment of the present invention;
FIG. 4 is a schematic illustration of a thumbnail view of a plurality of alternative images in the embodiment of FIG. 2;
FIG. 5 is a specific flowchart of a display manner of icons of a target document based on the embodiment shown in FIG. 2;
FIG. 6 is a schematic illustration of a file list interface in the embodiment of FIG. 5;
FIG. 7 is a specific flowchart of a clipping method for the target image based on the embodiment shown in FIG. 2;
FIG. 8 is a schematic structural view of a document icon setting device according to an embodiment of the present invention;
FIG. 9 is a schematic diagram showing a specific structure of a clipping module according to the embodiment shown in FIG. 8;
fig. 10 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In order to facilitate a user to quickly search for a document, the embodiment of the invention provides a method, a device, a terminal and a computer-readable storage medium for setting a document icon.
The following first describes a document icon setting method provided by the embodiment of the present invention. The method for setting the document icon provided by the embodiment of the invention can be applied to any terminal needing to set the document icon, for example, the terminal can be a computer, a mobile phone, a tablet computer and the like, and is not particularly limited. For convenience of description, hereinafter, referred to as a terminal.
As shown in fig. 2, a method for setting a document icon is applied to a terminal, and the method includes:
s201, when an icon setting instruction for a target document sent by a user is received, thumbnail images of a plurality of candidate images are displayed;
s202, when a selection instruction sent by a user is received, determining the thumbnail of the selected candidate image from the thumbnails of the plurality of candidate images as a target thumbnail;
and S203, setting a target image corresponding to the target thumbnail as an icon of the target document.
In the scheme provided by the embodiment of the invention, the terminal can display the thumbnail of a plurality of alternative images when receiving the icon setting instruction for the target document sent by the user; when a selection instruction sent by a user is received, determining the thumbnail of the selected candidate image from the thumbnails of the plurality of candidate images as a target thumbnail; and setting the target image corresponding to the target thumbnail as an icon of the target document. The terminal can set the target image selected by the user as the icon of the target document, so that the icon of the target document is different from the icons of other documents with the same format type as the target document, and when the user forgets the name of the target document, the target document can be quickly searched through the icon of the target document.
When the user wants to set the icon of the target document, an icon setting instruction for the target document may be issued. Thus, in the above-described step S201, when the terminal receives an icon setting instruction for a target document issued by the user, thumbnails of a plurality of candidate images can be displayed. The terminal may provide a user interface through which a user may issue an icon setting instruction, the user interface may be a button or the like, and the user may issue the icon setting instruction by clicking the button.
In one embodiment, when the user saves the target document, the terminal may display a user interface on the save interface, through which the user may issue an icon setting instruction, where saving may include saving the target document in the current storage path, or saving the target document in another storage path.
For example, as shown in fig. 3, the save interface includes a document name input box 301, a document format selection button 302, a save path selection box 303, and an icon setting button 304, and the user can input the document name, select the document format, and save path through the document name input box 301, the document format selection button 302, and the save path selection box 303, respectively, and can issue an icon setting instruction by clicking the icon setting button 304.
When the terminal receives an icon setting instruction for the target document sent by the user, the thumbnails of the multiple candidate images can be displayed, so that the user can view the thumbnails of the multiple candidate images and select from the thumbnails of the multiple candidate images. The candidate image may be an image locally stored in the terminal, for example, may be an image stored in a default gallery; the alternative image may also be an online image or the like stored in a server in communication with the terminal.
For example, as shown in fig. 4, when the terminal receives an icon setting instruction for a target document issued by a user, thumbnail images 401 to 406 of the candidate images may be displayed, and the user may select one thumbnail image desired to be set as the target document icon from the plurality of thumbnail images after viewing the thumbnail images 401 to 406.
After the user views the thumbnails of the plurality of candidate images displayed by the terminal, the user may issue a selection instruction to select, among the thumbnails of the plurality of candidate images, a thumbnail of a candidate image that the user wants to set as an icon of the target document. Thus, in the above-described step S202, when the terminal receives the selection instruction issued by the user, the thumbnail of the selected candidate image may be determined as the target thumbnail from among the thumbnails of the plurality of candidate images. The target thumbnail is a thumbnail of an alternative image of an icon that the user wants to set as the target document.
For example, the selection instruction issued by the user may be to click on the thumbnail of the candidate image, and when the user clicks on the thumbnail of a certain candidate image, the terminal may determine that the thumbnail of the candidate image is the target thumbnail; for another example, the selection instruction issued by the user may be a thumbnail of a long-press candidate image, and when the user long-presses the thumbnail of a certain candidate image, the terminal may determine that the thumbnail of the candidate image is the target thumbnail.
After determining the target thumbnail selected by the user, the terminal may determine that the user wants to set the candidate image corresponding to the target thumbnail as an icon of the target document. In this way, the terminal can set the target image corresponding to the target thumbnail as the icon of the target document, that is, execute step S203 described above.
Since the target image selected by the user is different from the icon preset by the terminal for the target document, the icon of the target document is also different from the icons of other documents of the same format type as the target document. Thus, when the user forgets the name of the target document, the target document can be quickly found through the icon of the target document.
As an implementation of the embodiment of the present invention, the target document may be an online document stored in a server.
In this case, as shown in fig. 5, after the step of setting the target image corresponding to the target thumbnail as the icon of the target document, the method may further include:
s501, sending the icon of the target document to the server so that the server stores the icon of the target document and generates a target URL of the icon of the target document;
when the target document is an online document stored in the server, it is necessary to store the icon of the target document in the server in synchronization. Accordingly, the terminal may transmit the icon of the target document to the server after setting the target image as the icon of the target document.
After receiving the icon of the target document, the server may save the icon of the target document and generate a URL (Uniform Resource Locator ) of the icon of the target document. The URL is generated according to a storage path of the icon of the target document in the server, and the URL of the icon of the target document may indicate a storage location of the icon of the target document. The server may then send the target URL, i.e. the URL of the icon of the target document, to the terminal.
S502, receiving and storing the target URL sent by the server;
After receiving the target URL sent by the server, the terminal may save the target URL to the local. Thus, when the terminal needs to display the icon of the target document, the terminal can acquire the icon of the target document by accessing the target URL, and further display the icon of the target document for the user to view.
S503, when a display instruction of a document list interface sent by a user is received, accessing the target URL and obtaining an icon of the target document;
when the user wants to view the target document, a display instruction of a document list interface, which is an interface including an icon of the target document, may be issued. When receiving a display instruction of a document list interface sent by a user, the terminal can access a target URL to acquire an icon of a target document.
For example, the terminal may provide an open button for opening a document list, when the user wants to view a target document, a display instruction of the document list interface may be issued by clicking the open button, the terminal may display the document list interface as shown in fig. 6 after receiving the display instruction, the document list interface may display a document list, the document list may include a plurality of pieces of document information, each piece of document information may include information such as an icon, a document name, an editing time, a source, etc. of the document, function buttons may be displayed above and below the document list interface, and corresponding various functions may be performed by clicking operations.
S504, displaying the icon of the target document at a preset position in the document list interface.
After acquiring the icon of the target document, the terminal may display the icon of the target document at a preset position in the document list interface. The preset position may be a position of left side, right side, etc. of the document name of the target document. The specific position may be determined according to a form of a document list interface, and may be consistent with a rule of display positions of icons of other documents, for example, the preset position may be leftmost of each piece of document information.
For example, as shown in the document list interface of fig. 6, the terminal may display an icon 602 of the target document at a position where a rectangular frame area 601 of the document list interface is located, wherein the position framed by the rectangular frame area 601 is a preset position.
In one embodiment, when the terminal that receives the display instruction of the document list interface sent by the user is not the same terminal as the terminal that sets the icon of the target document, after receiving the display instruction of the document list interface, the terminal may obtain the URL of the target document and the icon thereof from the server, further access the URL of the target document and the target URL of the icon, obtain the target document and the icon thereof, and then display the icon of the target document at a preset position in the document list interface. When the user opens the target document, the terminal can display the content of the target document for the user to view.
In the solution provided by the embodiment of the present invention, when the target document is an online document stored in the server, the terminal may send the icon of the target document to the server after setting the target image corresponding to the target thumbnail as the icon of the target document, so that the server stores the icon of the target document, and generates the target URL of the icon of the target document, thereby receiving and storing the target URL sent by the server. When the terminal receives a display instruction of the document list interface sent by a user, the terminal can access the target URL, acquire the icon of the target document, and then display the icon of the target document at a preset position in the document list interface. Thus, when the target document is an online document stored in the server, the terminal can acquire and store the target URL, and when the user views the document list interface, the terminal can acquire the icon of the target document through the target URL and display the icon of the target document at a preset position in the document list interface, so that the user can conveniently find the target document.
As an implementation manner of the embodiment of the present invention, before the step of setting the target image corresponding to the target thumbnail as the icon of the target document, the method may further include:
And cutting the target image corresponding to the target thumbnail according to a preset cutting size to obtain a cut target image.
The size of the target image may not meet the size requirements of the document icon. In order to enable the size of the target image to meet the size requirement of the document icon, after determining the target thumbnail selected by the user, the terminal can cut the target image corresponding to the target thumbnail according to the preset cutting size to obtain a cut target image.
The preset cutting size is a preset size meeting the size requirement of the document icon. For example, the size of the target image corresponding to the target thumbnail is 5cm×6cm, and when the preset clipping size is 3cm×3cm, the terminal may clip the target image according to the preset clipping size, so as to obtain the size of the clipped target image as 3cm×3cm.
Accordingly, the step of setting the target image corresponding to the target thumbnail as the icon of the target document may include:
and setting the cut target image as an icon of the target document.
After obtaining the cropped target image, the terminal may set the cropped target image as an icon of the target document. Therefore, the size of the cut target image also meets the size requirement of the document icon, and the icon of the target document can be ensured to be successfully set.
In the scheme provided by the embodiment of the invention, the terminal can cut the target image corresponding to the target thumbnail according to the preset cutting size to obtain the cut target image, and then the cut target image is set as the icon of the target document. Therefore, the size of the cut target image also meets the size requirement of the document icon, and the icon of the target document can be ensured to be successfully set.
As shown in fig. 7, the step of clipping the target image corresponding to the target thumbnail according to the preset clipping size to obtain a clipped target image may include:
s701, generating a cutting frame with a preset cutting size, and displaying the cutting frame on the target image;
in order to facilitate the user to determine the region in the target image that is desired to be cut, the terminal may generate a cutting frame of a preset cutting size and display the cutting frame on the target image. The shape of the cutting frame may be square, triangle, circle, etc., which is not particularly limited herein.
In one embodiment, in order to facilitate the user to view the image area in the cutting frame, the terminal may reduce the brightness of the image area of the target image outside the cutting frame, so that the image area of the target image in the cutting frame and the image area outside the cutting frame may present an obvious contrast, and the user may conveniently view the image area in the cutting frame.
S702, when a dragging instruction of a target image corresponding to the target thumbnail sent by a user is received, moving the target image according to the dragging instruction;
the location of the terminal-generated crop box generally defaults to a location in the center region of the target image. The user may want to have some portion of the non-central region in the target image as an icon of the target document, e.g., some portion of the non-central region may be an upper left corner, lower left corner, upper right corner, lower right corner, etc. of the target image. At this time, the user can send out a drag instruction to the target image, and when the terminal receives the drag instruction, the position of the cutting frame can be kept still, and the terminal can move the target image according to the direction indicated by the drag instruction. In this way, the user can select an image area within the crop box by dragging the target image.
For example, the drag instruction may be to hold the target image and move the target image in a certain direction, the position of the crop frame generated by the terminal is at the position of the center region of the target image, and when the region that the user wants to crop is the upper right corner region of the target image, the user may hold the target image and move the target image in the lower left corner direction of the target image. Since the position of the crop box remains unchanged, the crop box will be located in the upper right corner region of the target image after the target image moves in the lower left corner direction of the target image.
In one embodiment, the position of the target image may be kept still, the user may issue a drag instruction for the crop box, and when the terminal receives the drag instruction for the crop box issued by the user, the terminal may move the crop box according to the direction indicated by the drag instruction, so that the position of the crop box may be moved to the position where the image area that the user wants to crop is located.
For example, the drag instruction for the crop box may be to press the crop box and move the crop box in a certain direction, where the position of the crop box generated by the terminal is in the center area of the target image, when the area to be cropped by the user is the upper right corner area of the target image, the user may press the crop box and move the crop box in the upper right corner direction of the target image, and since the position of the target image is kept still, after the crop box moves in the upper right corner direction of the target image, the crop box will be located in the upper right corner area of the target image.
S703, when receiving a cutting determining instruction sent by a user, taking a current image area in the cutting frame as a cut target image.
When the user selects an image area to be cut by moving the target image, a cut determining instruction may be issued, for example, the terminal may display a cut determining button, and the user may issue a cut determining instruction by clicking the button. When the terminal receives the determining cutting instruction, the current image area in the cutting frame can be determined to be the image which the user wants to cut, and the terminal can take the current image area in the cutting frame as the cut target image.
Therefore, in the scheme provided by the embodiment of the invention, the terminal can generate and display the cutting frame with the preset cutting size, when receiving the dragging instruction of the target image corresponding to the target thumbnail sent by the user, the terminal can drag the target image according to the dragging instruction, and when receiving the cutting instruction determined by the user, the terminal can take the current image area in the cutting frame as the cut target image. Thus, the user can crop the image area of the icon which is desired to be set as the target document, and further can set the cropped target image as the icon of the target document, and the user experience can be improved.
As an implementation manner of the embodiment of the present invention, before the step of taking the current image area in the cropping frame as the cropped target image when the cropping determining instruction sent by the user is received, the method may further include:
and when a zoom instruction of a user on the target image is received, zooming the target image according to the zoom instruction.
Since the size of the crop box is generally fixed, when the size of the image area that the user wants to crop is different from the size of the crop box, it is necessary to enlarge or reduce the image area within the crop box. In this case, the user may issue a zoom instruction to the target image, for example, when the screen of the terminal is a touch screen, the user may hold the target image with two fingers, and then may issue a zoom instruction by opening or closing the two fingers.
When the terminal receives the scaling instruction, the terminal can scale the target image according to the scaling instruction. Because the size of the cutting frame is fixed, when the target image is reduced, the content included in the image area in the cutting frame is increased; when the target image is enlarged, the content included in the image area within the crop box is reduced. Therefore, the terminal can adjust the content of the image area in the cutting frame through scaling the target image, and user experience can be improved.
Therefore, in the scheme provided by the embodiment of the invention, the terminal can zoom the target image according to the zoom instruction when receiving the zoom instruction of the user on the target image. Therefore, the terminal can reduce or enlarge the target image according to the zoom instruction sent by the user, and the content of the image area in the cutting frame can be adjusted by zooming the target image, so that the user experience can be improved.
Corresponding to the method for setting the document icons, the embodiment of the invention also provides a device for setting the document icons. The following describes a document icon setting device provided by the embodiment of the invention.
As shown in fig. 8, a setting device of document icons is applied to a terminal, the device comprising:
An alternative image display module 801 for displaying thumbnail images of a plurality of alternative images when an icon setting instruction for a target document issued by a user is received;
a target image selection module 802, configured to determine, when a selection instruction issued by a user is received, a thumbnail of a selected candidate image from among thumbnails of the plurality of candidate images, as a target thumbnail;
an icon setting module 803 is configured to set a target image corresponding to the target thumbnail as an icon of the target document.
In the scheme provided by the embodiment of the invention, the terminal can display the thumbnail of a plurality of alternative images when receiving the icon setting instruction for the target document sent by the user; when a selection instruction sent by a user is received, determining the thumbnail of the selected candidate image from the thumbnails of the plurality of candidate images as a target thumbnail; and setting the target image corresponding to the target thumbnail as an icon of the target document. The terminal can set the target image selected by the user as the icon of the target document, so that the icon of the target document is different from the icons of other documents with the same format type as the target document, and when the user forgets the name of the target document, the target document can be quickly searched through the icon of the target document.
As one implementation of the embodiment of the present invention, the target document is an online document stored in a server;
the apparatus may further include:
a transmitting module (not shown in fig. 8) for transmitting the icon of the target document to the server after setting the target image corresponding to the target thumbnail as the icon of the target document, so that the server saves the icon of the target document and generates a target URL of the icon of the target document;
a saving module (not shown in fig. 8) for receiving and saving the target URL transmitted by the server;
an icon obtaining module (not shown in fig. 8) for accessing the target URL to obtain an icon of the target document when receiving a display instruction of a document list interface issued by a user;
the document list interface is an interface comprising icons of the target documents.
A display module (not shown in fig. 8) for displaying the icon of the target document at a preset position in the document list interface.
As an implementation manner of the embodiment of the present invention, the apparatus may further include:
a cropping module (not shown in fig. 8) configured to crop, according to a preset cropping size, a target image corresponding to the target thumbnail before setting the target image corresponding to the target thumbnail as an icon of the target document, so as to obtain a cropped target image;
The icon setting module 803 may include:
an icon setting sub-module (not shown in fig. 8) for setting the cropped target image as an icon of the target document.
As shown in fig. 9, the clipping module may include:
a crop frame generation sub-module 901, configured to generate a crop frame with a preset crop size, and display the crop frame on the target image;
a drag sub-module 902, configured to, when receiving a drag instruction sent by a user to a target image corresponding to the target thumbnail, move the target image according to the drag instruction;
the cropping sub-module 903 is configured to, when receiving a cropping determining instruction sent by a user, take a current image area in the cropping frame as a cropped target image.
As an implementation manner of the embodiment of the present invention, the foregoing apparatus may further include:
a scaling sub-module (not shown in fig. 9) for, when receiving a determined cropping instruction issued by a user, taking a current image area in the cropping frame as a cropped target image, and when receiving a scaling instruction of the user to the target image, scaling the target image according to the scaling instruction.
The embodiment of the invention also provides a terminal, as shown in fig. 10, comprising a processor 1001, a communication interface 1002, a memory 1003 and a communication bus 1004, wherein the processor 1001, the communication interface 1002 and the memory 1003 complete communication with each other through the communication bus 1004,
a memory 1003 for storing a computer program;
the processor 1001 is configured to execute a program stored in the memory 1003, and implement the following steps:
when an icon setting instruction for a target document sent by a user is received, displaying thumbnails of a plurality of candidate images;
when a selection instruction sent by a user is received, determining the thumbnail of the selected candidate image from the thumbnails of the plurality of candidate images as a target thumbnail;
and setting a target image corresponding to the target thumbnail as an icon of the target document.
In the scheme provided by the embodiment of the invention, the terminal can display the thumbnail of a plurality of alternative images when receiving the icon setting instruction for the target document sent by the user; when a selection instruction sent by a user is received, determining the thumbnail of the selected candidate image from the thumbnails of the plurality of candidate images as a target thumbnail; and setting the target image corresponding to the target thumbnail as an icon of the target document. The terminal can set the target image selected by the user as the icon of the target document, so that the icon of the target document is different from the icons of other documents with the same format type as the target document, and when the user forgets the name of the target document, the target document can be quickly searched through the icon of the target document.
The communication bus mentioned by the above terminals may be a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the terminal and other devices.
The Memory may include random access Memory (Random Access Memory, RAM) or may include Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but also digital signal processors (Digital Signal Processing, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
The target document may be an online document stored in a server;
after the step of setting the target image corresponding to the target thumbnail as the icon of the target document, the method may further include:
sending the icon of the target document to the server so that the server stores the icon of the target document and generates a target URL of the icon of the target document;
receiving and storing the target URL sent by the server;
when a display instruction of a document list interface sent by a user is received, accessing the target URL to obtain an icon of the target document, wherein the document list interface is an interface comprising the icon of the target document;
and displaying the icon of the target document at a preset position in the document list interface.
Before the step of setting the target image corresponding to the target thumbnail as the icon of the target document, the method may further include:
cutting the target image corresponding to the target thumbnail according to a preset cutting size to obtain a cut target image;
the step of setting the target image corresponding to the target thumbnail as the icon of the target document may include:
And setting the cut target image as an icon of the target document.
The step of clipping the target image corresponding to the target thumbnail according to the preset clipping size to obtain a clipped target image may include:
generating a cutting frame with a preset cutting size, and displaying the cutting frame on the target image;
when a dragging instruction of a target image corresponding to the target thumbnail sent by a user is received, dragging the target image according to the dragging instruction;
and when receiving a cutting determining instruction sent by a user, taking the current image area in the cutting frame as a cut target image.
Before the step of taking the current image area in the clipping frame as the clipped target image when receiving the clipping determining instruction sent by the user, the method may further include:
and when a scaling instruction of a user on the target image is received, scaling the target image according to the scaling instruction.
In yet another embodiment of the present invention, there is also provided a computer-readable storage medium having stored therein a computer program which, when executed by a processor, performs the steps of:
When an icon setting instruction for a target document sent by a user is received, displaying thumbnails of a plurality of candidate images;
when a selection instruction sent by a user is received, determining the thumbnail of the selected candidate image from the thumbnails of the plurality of candidate images as a target thumbnail;
and setting a target image corresponding to the target thumbnail as an icon of the target document.
It can be seen that in the solution provided in the embodiment of the present invention, when the computer program stored in the computer readable storage medium is executed by the processor, thumbnail images of a plurality of candidate images may be displayed when an icon setting instruction for a target document issued by a user is received; when a selection instruction sent by a user is received, determining the thumbnail of the selected candidate image from the thumbnails of the plurality of candidate images as a target thumbnail; and setting the target image corresponding to the target thumbnail as an icon of the target document. The terminal can set the target image selected by the user as the icon of the target document, so that the icon of the target document is different from the icons of other documents with the same format type as the target document, and when the user forgets the name of the target document, the target document can be quickly searched through the icon of the target document.
The target document may be an online document stored in a server;
after the step of setting the target image corresponding to the target thumbnail as the icon of the target document, the method may further include:
sending the icon of the target document to the server so that the server stores the icon of the target document and generates a target URL of the icon of the target document;
receiving and storing the target URL sent by the server;
when a display instruction of a document list interface sent by a user is received, accessing the target URL to obtain an icon of the target document, wherein the document list interface is an interface comprising the icon of the target document;
and displaying the icon of the target document at a preset position in the document list interface.
Before the step of setting the target image corresponding to the target thumbnail as the icon of the target document, the method may further include:
cutting the target image corresponding to the target thumbnail according to a preset cutting size to obtain a cut target image;
the step of setting the target image corresponding to the target thumbnail as the icon of the target document may include:
And setting the cut target image as an icon of the target document.
The step of clipping the target image corresponding to the target thumbnail according to the preset clipping size to obtain a clipped target image may include:
generating a cutting frame with a preset cutting size, and displaying the cutting frame on the target image;
when a dragging instruction of a target image corresponding to the target thumbnail sent by a user is received, dragging the target image according to the dragging instruction;
and when receiving a cutting determining instruction sent by a user, taking the current image area in the cutting frame as a cut target image.
Before the step of taking the current image area in the clipping frame as the clipped target image when receiving the clipping determining instruction sent by the user, the method may further include:
and when a scaling instruction of a user on the target image is received, scaling the target image according to the scaling instruction.
In yet another embodiment of the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the steps of:
When an icon setting instruction for a target document sent by a user is received, displaying thumbnails of a plurality of candidate images;
when a selection instruction sent by a user is received, determining the thumbnail of the selected candidate image from the thumbnails of the plurality of candidate images as a target thumbnail;
and setting a target image corresponding to the target thumbnail as an icon of the target document.
In the scheme provided by the embodiment of the invention, when the computer program product runs on a computer, the thumbnail images of a plurality of candidate images can be displayed when the icon setting instruction for the target document sent by a user is received; when a selection instruction sent by a user is received, determining the thumbnail of the selected candidate image from the thumbnails of the plurality of candidate images as a target thumbnail; and setting the target image corresponding to the target thumbnail as an icon of the target document. The terminal can set the target image selected by the user as the icon of the target document, so that the icon of the target document is different from the icons of other documents with the same format type as the target document, and when the user forgets the name of the target document, the target document can be quickly searched through the icon of the target document.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present invention, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, optical fiber, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), etc.
The target document may be an online document stored in a server;
after the step of setting the target image corresponding to the target thumbnail as the icon of the target document, the method may further include:
sending the icon of the target document to the server so that the server stores the icon of the target document and generates a target URL of the icon of the target document;
receiving and storing the target URL sent by the server;
when a display instruction of a document list interface sent by a user is received, accessing the target URL to obtain an icon of the target document, wherein the document list interface is an interface comprising the icon of the target document;
and displaying the icon of the target document at a preset position in the document list interface.
Before the step of setting the target image corresponding to the target thumbnail as the icon of the target document, the method may further include:
cutting the target image corresponding to the target thumbnail according to a preset cutting size to obtain a cut target image;
the step of setting the target image corresponding to the target thumbnail as the icon of the target document may include:
And setting the cut target image as an icon of the target document.
The step of clipping the target image corresponding to the target thumbnail according to the preset clipping size to obtain a clipped target image may include:
generating a cutting frame with a preset cutting size, and displaying the cutting frame on the target image;
when a dragging instruction of a target image corresponding to the target thumbnail sent by a user is received, dragging the target image according to the dragging instruction;
and when receiving a cutting determining instruction sent by a user, taking the current image area in the cutting frame as a cut target image.
Before the step of taking the current image area in the clipping frame as the clipped target image when receiving the clipping determining instruction sent by the user, the method may further include:
and when a scaling instruction of a user on the target image is received, scaling the target image according to the scaling instruction.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, 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. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments.
The foregoing description is only of the preferred embodiments of the present invention and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims (12)

1. A method for setting a document icon, which is applied to a terminal, the method comprising:
when an icon setting instruction for a target document sent by a user is received, displaying thumbnails of a plurality of candidate images;
when a selection instruction sent by a user is received, determining the thumbnail of the selected candidate image from the thumbnails of the plurality of candidate images as a target thumbnail;
and setting a target image corresponding to the target thumbnail as an icon of the target document, wherein the icon of the target document is different from the icons of other documents with the same format type as the target document on the terminal.
2. The method of claim 1, wherein the target document is an online document stored in a server;
After the step of setting the target image corresponding to the target thumbnail as the icon of the target document, the method further includes:
sending the icon of the target document to the server so that the server stores the icon of the target document and generates a target URL of the icon of the target document;
receiving and storing the target URL sent by the server;
when a display instruction of a document list interface sent by a user is received, accessing the target URL to obtain an icon of the target document, wherein the document list interface is an interface comprising the icon of the target document;
and displaying the icon of the target document at a preset position in the document list interface.
3. The method of claim 1, wherein prior to the step of setting the target image corresponding to the target thumbnail as an icon of the target document, the method further comprises:
cutting the target image corresponding to the target thumbnail according to a preset cutting size to obtain a cut target image;
the step of setting the target image corresponding to the target thumbnail as the icon of the target document comprises the following steps:
And setting the cut target image as an icon of the target document.
4. The method of claim 3, wherein the step of cropping the target image corresponding to the target thumbnail according to a preset cropping size to obtain a cropped target image comprises:
generating a cutting frame with a preset cutting size, and displaying the cutting frame on the target image;
when a dragging instruction of a target image corresponding to the target thumbnail sent by a user is received, moving the target image according to the dragging instruction;
and when receiving a cutting determining instruction sent by a user, taking the current image area in the cutting frame as a cut target image.
5. The method of claim 4, wherein the step of taking a current image area within the crop box as a cropped target image upon receiving a user-issued determined cropping instruction, the method further comprises:
and when a scaling instruction of a user on the target image is received, scaling the target image according to the scaling instruction.
6. A document icon setting apparatus, which is applied to a terminal, the apparatus comprising:
The candidate image display module is used for displaying thumbnails of a plurality of candidate images when receiving an icon setting instruction for a target document sent by a user;
a target image selection module, configured to determine, when a selection instruction sent by a user is received, a thumbnail of a selected candidate image from the thumbnails of the plurality of candidate images, as a target thumbnail;
and the icon setting module is used for setting the target image corresponding to the target thumbnail as the icon of the target document, wherein the icon of the target document is different from the icons of other documents with the same format type as the target document on the terminal.
7. The apparatus of claim 6, wherein the target document is an online document stored in a server;
the apparatus further comprises:
a sending module, configured to send, after setting a target image corresponding to the target thumbnail as an icon of the target document, the icon of the target document to the server, so that the server saves the icon of the target document, and generates a target URL of the icon of the target document;
the storage module is used for receiving and storing the target URL sent by the server;
The icon acquisition module is used for accessing the target URL when receiving a display instruction of a document list interface sent by a user, and acquiring an icon of the target document, wherein the document list interface is an interface comprising the icon of the target document;
and the display module is used for displaying the icon of the target document at a preset position in the document list interface.
8. The apparatus of claim 6, wherein the apparatus further comprises:
the clipping module is used for clipping the target image corresponding to the target thumbnail according to a preset clipping size before setting the target image corresponding to the target thumbnail as the icon of the target document, so as to obtain a clipped target image;
the icon setting module includes:
and the icon setting sub-module is used for setting the cut target image as the icon of the target document.
9. The apparatus of claim 8, wherein the clipping module comprises:
the cutting frame generation sub-module is used for generating a cutting frame with a preset cutting size and displaying the cutting frame on the target image;
the dragging sub-module is used for moving the target image according to a dragging instruction when receiving the dragging instruction of the target image corresponding to the target thumbnail sent by a user;
And the cutting sub-module is used for taking the current image area in the cutting frame as a cut target image when receiving a cutting determining instruction sent by a user.
10. The apparatus of claim 9, wherein the apparatus further comprises:
and the scaling sub-module is used for scaling the target image according to the scaling instruction when receiving the scaling instruction of the user on the target image before taking the current image area in the cutting frame as the cut target image when receiving the cutting instruction sent by the user.
11. The terminal is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
a processor for carrying out the method steps of any one of claims 1-5 when executing a program stored on a memory.
12. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored therein a computer program which, when executed by a processor, implements the method steps of any of claims 1-5.
CN202010382679.0A 2020-05-08 2020-05-08 Method, device, terminal and storage medium for setting document icons Active CN112783382B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010382679.0A CN112783382B (en) 2020-05-08 2020-05-08 Method, device, terminal and storage medium for setting document icons

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010382679.0A CN112783382B (en) 2020-05-08 2020-05-08 Method, device, terminal and storage medium for setting document icons

Publications (2)

Publication Number Publication Date
CN112783382A CN112783382A (en) 2021-05-11
CN112783382B true CN112783382B (en) 2023-05-26

Family

ID=75749123

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010382679.0A Active CN112783382B (en) 2020-05-08 2020-05-08 Method, device, terminal and storage medium for setting document icons

Country Status (1)

Country Link
CN (1) CN112783382B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113253904A (en) * 2021-05-17 2021-08-13 维沃移动通信有限公司 Display method, display device and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008146277A (en) * 2006-12-08 2008-06-26 Fuji Xerox Co Ltd File information display device and file information display program
CN105204736A (en) * 2015-09-16 2015-12-30 成都中科创达软件有限公司 Application software icon replacing method and application software icon replacing system
CN105511888A (en) * 2015-12-31 2016-04-20 魅族科技(中国)有限公司 Method and terminal for presenting file icon
CN106547923A (en) * 2016-12-08 2017-03-29 珠海市魅族科技有限公司 A kind of document display method and equipment
CN107562307A (en) * 2017-08-10 2018-01-09 深圳传音通讯有限公司 Change the method and device of desktop icons
CN110377204A (en) * 2019-06-30 2019-10-25 华为技术有限公司 A kind of method and electronic equipment generating user's head portrait

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008146277A (en) * 2006-12-08 2008-06-26 Fuji Xerox Co Ltd File information display device and file information display program
CN105204736A (en) * 2015-09-16 2015-12-30 成都中科创达软件有限公司 Application software icon replacing method and application software icon replacing system
CN105511888A (en) * 2015-12-31 2016-04-20 魅族科技(中国)有限公司 Method and terminal for presenting file icon
CN106547923A (en) * 2016-12-08 2017-03-29 珠海市魅族科技有限公司 A kind of document display method and equipment
CN107562307A (en) * 2017-08-10 2018-01-09 深圳传音通讯有限公司 Change the method and device of desktop icons
CN110377204A (en) * 2019-06-30 2019-10-25 华为技术有限公司 A kind of method and electronic equipment generating user's head portrait

Also Published As

Publication number Publication date
CN112783382A (en) 2021-05-11

Similar Documents

Publication Publication Date Title
US10732922B2 (en) Manipulating shared screen content
KR102079816B1 (en) Method and apparatus for providing contents curation service in electronic device
US20140289597A1 (en) Method and device for displaying preview screen of hyperlink
CN110688829B (en) Table generation method, apparatus, device and storage medium
US20140237357A1 (en) Two-dimensional document navigation
CN105745612A (en) Resizing technique for display content
CN113076499B (en) Page interaction method, device, equipment, medium and program product
CN112083866A (en) Expression image generation method and device
CN113849092A (en) Content sharing method and device and electronic equipment
CN111414727A (en) Method and device for editing header and footer of PDF (Portable document Format) document and electronic equipment
CN110968314A (en) Page generation method and device
CN105912191A (en) Method and device for realizing interaction between applications of terminal equipment
US10931610B2 (en) Method, device, user terminal and electronic device for sharing online image
CN105446625A (en) Picture pasting method and apparatus based on browser
CN112783382B (en) Method, device, terminal and storage medium for setting document icons
CN111310086A (en) Page jump method and device and electronic equipment
JP5774037B2 (en) Information processing apparatus, server apparatus, method, and program
CN110928611A (en) Text processing method, terminal and computer readable storage medium
CN108572980B (en) Webpage split-screen display method and device
CN107229637A (en) A kind of webpage collection method and device
CN112306336A (en) Document content display method and device
CN115686289A (en) Method, device, equipment and storage medium for user interaction
CN107025051B (en) Information embedding method and device and client equipment
CN114518821A (en) Application icon management method and device and electronic equipment
CN114742013A (en) Online document display method and device and electronic equipment

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
GR01 Patent grant
GR01 Patent grant