Cover picture editing method, storage medium, and electronic device

CN115470429BActive Publication Date: 2026-07-24QINGDAO HAIER TECH +3
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
QINGDAO HAIER TECH
Filing Date
2022-07-29
Publication Date
2026-07-24

Smart Images

  • Figure CN115470429B_ABST
    Figure CN115470429B_ABST
Patent Text Reader

Abstract

The application discloses an editing method of a cover picture, a storage medium and an electronic device, and relates to the technical field of smart home / smart home, and the editing method of the cover picture comprises the following steps: in the process of uploading a cover picture, the picture format corresponding to the cover picture to be uploaded is detected; in the case that the picture format corresponding to the cover picture to be uploaded is a dynamic picture format, a target interface is called to upload a first target picture to a target database, and a first picture storage address of the first target picture in the target database is acquired, wherein the first target picture is a cover picture without display ratio adjustment, and the first target picture is edited according to the first picture storage address by using a target label. The application improves the editing efficiency of an operator for a cover picture, enables the cover picture to be displayed more intuitively and accurately, and solves the technical problem that a dynamic picture cannot be normally displayed when a cover picture is edited in the related art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communications, and more specifically, to a method for editing a cover image, a storage medium, and an electronic device. Background Technology

[0002] Currently, the pages corresponding to operational business require the addition of cover images for display. While the technology has evolved from only allowing static images to permit the addition of animated images as page covers, when adding animated images, each image is cropped, resulting in only a single frame being displayed statically during subsequent viewing. This prevents a true dynamic cover display. This is because uploading cover images requires processing by image processing components (e.g., image cropping components). During image processing, the images cannot be converted into animated versions, leading to static images being displayed during subsequent editing, failing to meet user needs. This results in a simplistic cover image editing process in operational business, hindering the display of animated images during the editing process. Summary of the Invention

[0003] This application provides a method and apparatus for editing cover images, a storage medium, and an electronic device to at least solve the technical problem in the related art where dynamic images cannot be displayed normally when editing cover images.

[0004] According to one embodiment of this application, a method for editing a cover image is provided, comprising: during the process of uploading a cover image, detecting the image format corresponding to the cover image to be uploaded, wherein the cover image is used to display the cover of a target page, and the target page is a pre-configured page for operational business; if it is detected that the image format corresponding to the cover image to be uploaded is a dynamic image format, calling a target interface to upload a first target image to a target database, and obtaining a first image storage address of the first target image in the target database, wherein the first target image is a cover image whose display ratio has not been adjusted; and editing the first target image using a target tag according to the first image storage address, wherein the target tag is used to retrieve and display the first target image from the target database when editing the first target image.

[0005] According to another embodiment of this application, a cover image editing device is also provided, comprising: a detection module, configured to detect the image format corresponding to the cover image to be uploaded during the process of uploading the cover image, wherein the cover image is used to display the cover of a target page, and the target page is a pre-configured operational business page; a calling module, configured to, when detecting that the image format corresponding to the cover image to be uploaded is a dynamic image format, call a target interface to upload a first target image to a target database, and obtain a first image storage address of the first target image in the target database, wherein the first target image is a cover image whose display ratio has not been adjusted; and an editing module, configured to edit the first target image using target tags according to the first image storage address, wherein the target tags are used to retrieve and display the first target image from the target database when editing the first target image.

[0006] According to another aspect of the embodiments of this application, a computer-readable storage medium is also provided, wherein a computer program is stored in the computer program, and the computer program is configured to execute the above-described cover image editing method when it is run.

[0007] According to another aspect of the embodiments of this application, an electronic device is also provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the above-described cover image editing method through the computer program.

[0008] In this embodiment, during the upload of a cover image, the image format of the cover image to be uploaded is detected. The cover image is used to display the cover on the target page, which is a pre-configured page for operational business. If the image format of the cover image to be uploaded is detected to be a dynamic image, the target interface is called to upload the first target image to the target database, and the first image storage address of the first target image in the target database is obtained. The first target image is a cover image whose display ratio has not been adjusted. The first target image is edited using target tags based on the first image storage address. The target tags are used to retrieve and display the first target image from the target database when editing the first target image. By pre-detecting the image format of the image to be uploaded, when the image format is detected to be a dynamic image, the interface is called to directly upload the image to the database, and the image address stored in the database is obtained. The corresponding tags are set. When it is necessary to edit the dynamic image, the image is directly retrieved and displayed through the tags, avoiding cropping of the dynamic image. This allows the dynamic image to be dynamically displayed on the editing interface, improving the editing efficiency of the cover image and solving the technical problem in related technologies where dynamic images cannot be displayed normally when editing the cover image. Attached Figure Description

[0009] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0010] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0011] Figure 1 This is a schematic diagram of the hardware environment for a cover image editing method according to an embodiment of this application;

[0012] Figure 2 This is a flowchart of a method for editing a cover image according to an embodiment of this application;

[0013] Figure 3 This is a product-side schematic diagram of a cover image editing method according to an embodiment of this application;

[0014] Figure 4 This is a timing diagram illustrating a method for editing a cover image according to an embodiment of this application;

[0015] Figure 5 This is a schematic diagram of the application framework of a cover image editing method according to an embodiment of this application;

[0016] Figure 6 This is a structural block diagram of a cover image editing device according to an embodiment of this application. Detailed Implementation

[0017] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0018] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0019] According to one aspect of the embodiments of this application, a method for editing a cover image is provided. This cover image editing method is widely applicable to whole-house intelligent digital control application scenarios such as smart homes, smart home ecosystems, and intelligencehouse ecosystems. Optionally, in this embodiment, the above-mentioned cover image editing method can be applied to, for example... Figure 1 The hardware environment shown consists of terminal device 102 and server 104. For example... Figure 1 As shown, server 104 is connected to terminal device 102 via a network and can be used to provide services (such as application services) to the terminal or clients installed on the terminal. A database can be set up on the server or independently of the server to provide data storage services for server 104. Cloud computing and / or edge computing services can be configured on the server or independently of the server to provide data processing services for server 104.

[0020] The aforementioned network may include, but is not limited to, at least one of the following: wired network, wireless network. The aforementioned wired network may include, but is not limited to, at least one of the following: wide area network, metropolitan area network, local area network. The aforementioned wireless network may include, but is not limited to, at least one of the following: Wi-Fi (Wireless Fidelity), Bluetooth. The terminal device 102 may not be limited to PC, mobile phone, tablet computer, smart air conditioner, smart range hood, smart refrigerator, smart oven, smart stove, smart washing machine, smart water heater, smart washing equipment, smart dishwasher, smart projector, smart TV, smart clothes rack, smart curtains, smart audio-visual equipment, smart socket, smart speaker, smart speaker box, smart fresh air equipment, smart kitchen and bathroom equipment, smart bathroom equipment, smart robot vacuum cleaner, smart window cleaning robot, smart mopping robot, smart air purifier, smart steam oven, smart microwave oven, smart water heater, smart air purifier, smart water dispenser, smart door lock, etc.

[0021] This embodiment provides a method for editing a cover image, applied in the aforementioned hardware environment. Figure 2 This is a flowchart of a method for editing a cover image according to an embodiment of this application, the process including the following steps:

[0022] Step S202: During the process of uploading the cover image, the image format corresponding to the cover image to be uploaded is detected. The cover image is used to display the cover on the target page, which is a pre-configured page for operational business.

[0023] Optionally, in this embodiment, the aforementioned cover image refers to an image that can serve as the cover of the target page corresponding to the operational business. The cover image may include, but is not limited to, a combination of one or more images, and is an image selected by the operational staff according to the actual needs of the operational business.

[0024] Optionally, in this embodiment, the target page mentioned above is the web page set by the operator when configuring the operation business, which may include, but is not limited to, HTML5 (HyperText Markup Language 5) pages, XML (Extensible Markup Language) pages, etc.

[0025] Optionally, in this embodiment, the cover image is the image displayed on the cover of the target page. Taking an HTML5 page as an example, when a user enters an HTML5 page, the first thing they see is the cover of the HTML5 page.

[0026] Optionally, in this embodiment, the image format may include, but is not limited to, animated images and static images. Specifically, it may include, but is not limited to, static images such as JPG, JPEG, PNG, and BMP, animated images such as GIF, and other types of images.

[0027] Step S204: If it is detected that the image format corresponding to the cover image to be uploaded is a dynamic image format, the target interface is called to upload the first target image to the target database, and the first image storage address of the first target image in the target database is obtained. The first target image is a cover image whose display ratio has not been adjusted.

[0028] Optionally, in this embodiment of the application, the target interface may include, but is not limited to, a function call interface for uploading images to a database. The above-mentioned call to the target interface to upload the first target image to the target database can be understood as calling the above-mentioned function interface to upload the first target image to a pre-configured database for storing images. The images in the database are configured with corresponding image addresses, and the images stored in the database can be accessed through the image addresses.

[0029] Optionally, in this embodiment of the application, the first image storage address is an image address associated with the first target image. By setting the first image storage address on the user interface, the first target image stored in the database can be directly retrieved and displayed when the target page is displayed.

[0030] Optionally, in this embodiment of the application, the cover image of the first target image without display ratio adjustment can be understood as follows: when the cover image to be uploaded is an animated image, the first target image is also an animated image. When the target page needs to be edited, the first target image is also displayed as an animated image on the target page.

[0031] Step S206: Edit the first target image using the target tag according to the storage address of the first image. The target tag is used to retrieve and display the first target image from the target database when editing the first target image.

[0032] Optionally, in this embodiment, the target tag may include, but is not limited to, the img tag in an HTML5 page. By setting the target tag on the target page, the first target image can be retrieved and displayed through the target tag when the target page is displayed.

[0033] This embodiment detects the image format of the cover image to be uploaded during the cover image upload process. The cover image is used to display the cover on the target page, which is a pre-configured operational business page. When the image format of the cover image to be uploaded is detected to be a dynamic image, the target interface is called to upload the first target image to the target database and obtain the first image storage address in the target database. The first target image is a cover image whose display ratio has not been adjusted. The first target image is edited using target tags based on the first image storage address. The target tags are used to retrieve and display the first target image from the target database when editing the first target image. By pre-detecting the image format of the image to be uploaded, when the image format is detected to be a dynamic image, the interface is called to directly upload the image to the database and obtain the image address stored in the database. The corresponding tags are set. When it is necessary to edit the dynamic image, the image is directly retrieved and displayed through the tags, avoiding the need to crop the dynamic image. This allows the dynamic image to be dynamically displayed on the editing interface, improving the editing efficiency of the cover image and solving the technical problem in related technologies where dynamic images cannot be displayed normally when editing the cover image.

[0034] In one exemplary embodiment, during the process of uploading a cover image, detecting the image format corresponding to the cover image to be uploaded includes:

[0035] In the operation business editing interface, obtain the target interaction operation to be performed on the target interaction object. The target interaction object is used to trigger the upload of the cover image of the target page, and the target interaction operation is used to add the cover image to be uploaded.

[0036] In response to the target interactive operation, determine the number of cover images to be uploaded;

[0037] If there is only one image, check the image format corresponding to the cover image to be uploaded;

[0038] If there are at least two images, the image format of at least two cover images to be uploaded shall be determined as static image format.

[0039] Optionally, in this embodiment of the application, the above-mentioned editing interface can be understood as the interface for staff of the operation business to edit the target page. The above-mentioned target interactive object may include, but is not limited to, interactive objects used to upload cover images, such as virtual buttons, menu bars, etc. The above-mentioned target interactive operation may include, but is not limited to, click, double-click, long press, release, gesture, voice, etc., for triggering the upload of cover images.

[0040] Figure 3This is a product-side schematic diagram illustrating the method for editing a cover image according to an embodiment of this application, such as... Figure 3 As shown, by performing an interaction operation on the interactive object 302 of the editing interface, the upload of the cover image of the target page is triggered. By performing an interaction operation on the interactive object 304 of the editing interface, the image to be uploaded is selected in the editing interface. By performing an interaction operation on the interactive object 306 of the editing interface, the image to be uploaded is determined. At this time, the number of cover images to be uploaded is determined. When the number of cover images to be uploaded is determined to be equal to 1, the image format corresponding to the cover image to be uploaded is detected. When the number of cover images to be uploaded is determined to be greater than 1, the image format corresponding to at least two cover images to be uploaded is determined to be a static image format. Taking 1 as an example, when performing an interaction operation on the interactive object 308 of the editing interface, the image format corresponding to image 4 is detected, and different subsequent operations are performed according to the different image formats corresponding to image 4.

[0041] In an exemplary embodiment, after detecting the image format corresponding to the cover image to be uploaded during the process of uploading the cover image, the above method further includes:

[0042] If the image format of the cover image to be uploaded is detected to be a static image format, the cover image to be uploaded is uploaded to the image processing component to generate a second target image. The image processing component is used to adjust the display ratio of the cover image to be uploaded, and the second target image is the cover image to be uploaded with the display ratio adjusted.

[0043] Call the target interface to upload the second target image to the target database, and obtain the storage address of the second target image in the target database;

[0044] Edit the second target image based on the storage address of the second image.

[0045] Optionally, in this embodiment, the static image format may include, but is not limited to, image formats such as JPG, JPEG, PNG, and BMP. The image processing component may include, but is not limited to, a component for cropping the display ratio of the image. By converting the static image into encoded information and assigning it to the image processing component, the display ratio of the image can be adjusted.

[0046] In one exemplary embodiment, the cover image to be uploaded is uploaded to the image processing component to generate a second target image, including:

[0047] The cover image to be uploaded is converted into target encoding information, where the encoding format of the target encoding information is an encoding format that the image processing component is allowed to process;

[0048] The target encoding information is uploaded to the image processing component. The display ratio parameter of the target encoding information is configured by the image processing component to generate a second target image. The display ratio parameter is used to determine the display ratio of the second target image when it is edited.

[0049] Optionally, in this embodiment, the target encoding information may include, but is not limited to, base64 encoding information. By converting the cover image to be uploaded into base64 information, it can be assigned to the image processing component to configure the display ratio parameter of the target encoding information. The display ratio parameter is a parameter used in base64 encoding to represent the display ratio of the image, such as 4:3, 16:9, etc.

[0050] In one exemplary embodiment, the cover image to be uploaded is uploaded to the image processing component to generate a second target image, including:

[0051] When there are at least two images, the at least two cover images to be uploaded are converted into first encoding information and second encoding information in sequence and uploaded to the image processing component. Among the at least two cover images to be uploaded, the first cover image to be uploaded is converted into first encoding information, and the cover image uploaded after the first cover image is converted into second encoding information.

[0052] Obtain the display ratio parameter configured for the first encoding information, and adjust the first encoding information according to the display ratio parameter to generate the first cover image, wherein the second target image includes the first cover image;

[0053] With the first cover image already uploaded, the second encoding information is automatically adjusted based on the first cover image to generate a second cover image. The second cover image has the same display ratio as the first cover image, and the second target image includes the second cover image.

[0054] Optionally, in this embodiment of the application, when the number of the above-mentioned images is at least two, it can be assumed that the above-mentioned images to be uploaded are all static image formats. In this case, the cover image to be uploaded first can be converted into the above-mentioned first encoding information and uploaded to the image processing component. After being uploaded to the image processing component, the display ratio parameter input by the staff is obtained to adjust the display ratio of the cover image to be uploaded first, so as to obtain the first cover image, and the first cover image is uploaded to the target database to obtain the corresponding image storage address in the target database.

[0055] Optionally, in this embodiment of the application, after uploading the first cover image to the target database, other cover images to be uploaded are started. Each of the other cover images to be uploaded is converted into corresponding second encoding information before being uploaded. That is, the second encoding information may include, but is not limited to, one or more, depending on the number of images.

[0056] It should be noted that after converting each of the other cover images to be uploaded into the corresponding second encoding information, the second encoding information needs to be adjusted one by one according to the display ratio parameters of the uploaded first cover image in the order of upload, so as to generate one or more of the above-mentioned second cover images for subsequent editing and display.

[0057] In one exemplary embodiment, automatically adjusting the second encoded information based on the first cover image to generate a second cover image includes:

[0058] If the first cover image has already been uploaded, load the first cover image based on its storage address;

[0059] If the first cover image has been loaded, obtain the loading information corresponding to the first cover image, including the display ratio of the first cover image;

[0060] The second encoding information is automatically adjusted based on the loaded information to generate a second cover image.

[0061] Optionally, in this embodiment of the application, if the first cover image has been uploaded, the first cover image can be loaded in the editing interface. Specifically, the first cover image is retrieved and loaded according to its image storage address.

[0062] It should be noted that the display ratio of the first cover image can also be obtained by calling a backend interface, but by loading the first cover image to obtain its display ratio, the process of requesting the interface to obtain the ratio can be eliminated, thereby avoiding reliance on the interface and reducing the frequency of interface usage.

[0063] In one exemplary embodiment, editing a first target image using a target tag based on the storage address of a first image includes:

[0064] Obtain the target display operation on the editing interface of the operation business, whereby the target display operation is used to indicate that the first target image is displayed on the editing interface;

[0065] In response to the target display operation, the first target image is retrieved from the target database using the target tag and the storage address of the first image;

[0066] Display the first target image on the cover of the target page, and edit the first target image.

[0067] Optionally, in this embodiment of the application, the above-mentioned target display operation is used to start editing the first target image. By executing the above-mentioned target display operation, the first target image can be loaded and displayed on the editing interface.

[0068] During the process of loading and displaying the first target image, in response to the target display operation, the first target image is retrieved from the target database using the target tag (corresponding to the aforementioned img tag) based on the first image storage address (url address), and then the first target image is displayed on the cover of the target page and edited.

[0069] The present application will be further explained below with reference to specific embodiments:

[0070] This application detects the image format when uploading the cover image. If it is a GIF, it directly uses the img tag to display the image and saves the URL of the GIF image. Before displaying the images in multi-image mode, it first loads the images using the image URL to obtain the image ratio. Thus, it can achieve unified display ratios for single GIF cover images and multi-image cover images without the need for backend interface support.

[0071] Figure 4 This is a timing diagram illustrating the method for editing a cover image according to an embodiment of this application, as shown below. Figure 4 As shown, the system includes an h5 (HTML5) settings page, an h5 cropping component (corresponding to the aforementioned image processing component), an h5-img tag (corresponding to the aforementioned target tag), and a server (including the aforementioned target database). The method for editing the cover image includes, but is not limited to, the following steps: S1, obtain the image to be uploaded on the h5 settings page and start the image upload process; S2, detect whether the image format is a GIF image (corresponding to the aforementioned animated image format); S3, if it is determined that the image to be uploaded is a GIF image, return a URL (corresponding to the aforementioned first image storage address) and use the image URL to set the h5-img tag; S4, use the returned URL through the h5-img tag on the h5 settings page to display the aforementioned GIF image; S5, if it is determined that the image to be uploaded is not a GIF image, upload the image to be uploaded to the h5 cropping component for display ratio adjustment; S6, after selecting the display ratio, upload the corresponding image to the database configured on the server; S7, return a URL (corresponding to the aforementioned second image storage address) to the h5 settings page.

[0072] It should be noted that during the image display / editing process, the above-mentioned cover image editing method includes, but is not limited to, the following steps: S8, the h5 settings page obtains settings information from the server and receives the settings information returned by the server; S9, the h5 settings page displays / edits the image; S10, checks whether it is a GIF image; S11, if it is determined that the image to be loaded and displayed is a GIF image, the image is displayed directly using the GIF image address; S12, if it is determined that the image to be loaded and displayed is not a GIF image, the URL is converted to base64 encoding and assigned to the h5 cropping component.

[0073] This application detects the image format during image upload and processes different image types differently. For image formats other than GIF, they are uploaded to the image cropping component as usual. After selecting different aspect ratios, an API is called to upload the image to the database and obtain the storage address (URL). During editing, since only the URL is available, it cannot be directly assigned to the image cropping component. Therefore, a base64 encoding conversion is performed first, and the image is then displayed correctly in the image cropping component. When uploading a GIF image, since GIF images do not require cropping, the API can be directly called to upload the image to the database, obtain the storage address, and use the `img` tag to directly display the GIF image using the obtained URL. During the setup process, by judging the image format, no base64 encoding conversion is needed, and the image can be directly displayed. Native tags are used to efficiently process GIF images to meet the needs of intuitive display of dynamic images.

[0074] Figure 5 This is a schematic diagram illustrating the application framework of the cover image editing method according to an embodiment of this application, such as... Figure 5 As shown, the H5 cover image settings page first performs an image upload operation. Then, by judging the image format, it determines which display method is more suitable for the page. Finally, all images are uploaded to the backend interface to obtain the URL address for subsequent settings, including but not limited to the following steps:

[0075] S1, Click on the image to upload;

[0076] S2, determine whether it is a single image upload or a three-image upload:

[0077] S2-1, If ​​it's a single image upload, continue to determine the image format:

[0078] S2-1-1 is for uploading GIF images. It directly calls the interface to request the image URL storage address and uses the img tag to display the GIF image.

[0079] S2-1-2 is for uploading images of other types besides GIFs. First, use the image editing component to set the image ratio, and then call the interface to request the image URL storage address.

[0080] S2-2, If three images are uploaded, determine which image is uploaded in which order:

[0081] S2-2-1 When uploading the first image, you can freely choose the display ratio. After selecting the display ratio, if you continue to upload the second or even the third image, it must be cropped and displayed according to the ratio set for the first image.

[0082] S3, click "OK" in the pop-up window to view the image. After clicking, save the obtained URL address and display it on the settings page for final submission.

[0083] This embodiment uses the judgment of the uploaded image format and different display methods to realize the display and cropping of GIF images and other images. In addition, due to the special nature of GIF image processing, converting to base64 or other formats and then converting to GIF is not ideal in terms of efficiency. Therefore, there is a technical need to avoid cropping. Thus, native tags are used for display. Furthermore, when uploading multiple images, the image ratio is obtained by image loading, eliminating the need to request the interface to obtain the ratio.

[0084] In other words, the H5 page directly uses native tags to handle the upload settings and related editing of GIFs. This not only meets the technical requirements but also eliminates the tedious steps of converting images to base64 and then back to images, improving display efficiency. In the three-image mode, the upload ratio of multiple images is unified by using image loading processing on the uploaded URL images to obtain the image ratio, thus achieving the technical requirements without relying on APIs.

[0085] To better understand the process of editing the cover image described above, the following description, in conjunction with optional embodiments, further illustrates the implementation flow of the cover image editing method, but is not intended to limit the technical solutions of the embodiments of this application.

[0086] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods of the various embodiments of this application.

[0087] Figure 6 This is a structural block diagram of a cover image editing device according to an embodiment of this application, such as... Figure 6 As shown, it includes:

[0088] The detection module 602 is used to detect the image format corresponding to the cover image to be uploaded during the process of uploading the cover image, wherein the cover image is used to display the cover on the target page, and the target page is a pre-configured page for operational business.

[0089] The module 604 is used to call the target interface to upload the first target image to the target database when it is detected that the image format corresponding to the cover image to be uploaded is a dynamic image format, and to obtain the first image storage address of the first target image in the target database, wherein the first target image is a cover image whose display ratio has not been adjusted.

[0090] The editing module 606 is used to edit the first target image according to the storage address of the first image using target tags, wherein the target tags are used to retrieve and display the first target image from the target database when editing the first target image.

[0091] In an exemplary embodiment, the detection module is configured to detect the image format corresponding to the cover image to be uploaded during the process of uploading a cover image in the following manner: obtaining a target interaction operation performed on a target interaction object in the editing interface of the operation business, wherein the target interaction object is used to trigger the upload of the cover image of the target page, and the target interaction operation is used to add the cover image to be uploaded; in response to the target interaction operation, determining the number of cover images to be uploaded; if the number of images is one, detecting the image format corresponding to the cover image to be uploaded; if the number of images is at least two, determining the image format corresponding to at least two of the cover images to be uploaded as a static image format.

[0092] In an exemplary embodiment, the device is further configured to: during the process of uploading a cover image, after detecting the image format corresponding to the cover image to be uploaded, if the image format of the cover image to be uploaded is the static image format, upload the cover image to be uploaded to an image processing component to generate a second target image, wherein the image processing component is used to adjust the display ratio of the cover image to be uploaded, and the second target image is the cover image to be uploaded with the display ratio adjusted; call the target interface to upload the second target image to the target database, and obtain the second image storage address of the second target image in the target database; edit the second target image according to the second image storage address.

[0093] In an exemplary embodiment, the device is configured to upload the cover image to be uploaded to an image processing component to generate a second target image by: converting the cover image to be uploaded into target encoding information, wherein the encoding format of the target encoding information is an encoding format allowed to be processed by the image processing component; uploading the target encoding information to the image processing component; configuring the display ratio parameter of the target encoding information by the image processing component to generate the second target image, wherein the display ratio parameter is used to determine the display ratio of the second target image when it is being edited.

[0094] In an exemplary embodiment, the device is configured to upload the cover image to be uploaded to an image processing component to generate a second target image in the following manner: when the number of images is at least two, at least two cover images to be uploaded are sequentially converted into first encoding information and second encoding information, and uploaded to the image processing component, wherein the cover image uploaded first among the at least two cover images to be uploaded is converted into the first encoding information, and the cover image uploaded after the first uploaded cover image is converted into the second encoding information; a display ratio parameter configured for the first encoding information is obtained, and the first encoding information is adjusted according to the display ratio parameter to generate a first cover image, wherein the second target image includes the first cover image; when the first cover image has been uploaded, the second encoding information is automatically adjusted according to the first cover image to generate a second cover image, wherein the second cover image has the same display ratio as the first cover image, and the second target image includes the second cover image.

[0095] In an exemplary embodiment, the device is configured to automatically adjust the second encoding information based on the first cover image to generate a second cover image in the following manner: if the first cover image has been uploaded, load the first cover image according to the first image storage address; if the first cover image has been loaded, obtain loading information corresponding to the first cover image, wherein the loading information includes the display ratio of the first cover image; and automatically adjust the second encoding information based on the loading information to generate a second cover image.

[0096] In an exemplary embodiment, the device is configured to edit the first target image based on the first image storage address using a target tag in the following manner: obtaining a target display operation on the editing interface of the operational business, wherein the target display operation is used to indicate that the first target image is displayed on the editing interface; in response to the target display operation, retrieving the first target image from the target database using the target tag based on the first image storage address; displaying the first target image on the cover of the target page, and editing the first target image.

[0097] Embodiments of this application also provide a storage medium including a stored program, wherein the program executes any of the methods described above when it is run.

[0098] Optionally, in this embodiment, the storage medium may be configured to store program code for performing the following steps:

[0099] S1, Obtain the first voice message, wherein the first voice message is used to query whether there is a device to be updated in the first group of devices, and the first group of devices are all connected to the target voice device used to collect the first voice message. The target voice device is configured to allow sending remote update requests to the device to be updated.

[0100] S2, determine the target device to be updated from the first group of devices based on the first voice message;

[0101] S3, send a target update request to the target device, wherein the target update request is used to update the target device from the current version to the target version.

[0102] Embodiments of this application also provide an electronic device including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.

[0103] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.

[0104] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:

[0105] S1, Obtain the first voice message, wherein the first voice message is used to query whether there is a device to be updated in the first group of devices, and the first group of devices are all connected to the target voice device used to collect the first voice message. The target voice device is configured to allow sending remote update requests to the device to be updated.

[0106] S2, determine the target device to be updated from the first group of devices based on the first voice message;

[0107] S3, send a target update request to the target device, wherein the target update request is used to update the target device from the current version to the target version.

[0108] Optionally, in this embodiment, the storage medium may include, but is not limited to, various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.

[0109] Optionally, specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementations, and will not be repeated here.

[0110] Obviously, those skilled in the art should understand that the modules or steps of this application described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. Optionally, they can be implemented using computer-executable program code, thereby storing them in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those presented here, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, this application is not limited to any particular combination of hardware and software.

[0111] The above description is only a preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.

Claims

1. A method for editing a cover image, characterized in that, include: During the process of uploading the cover image, the image format corresponding to the cover image to be uploaded is detected. The cover image is used to display the cover on the target page, which is a pre-configured page for operational business. If it is detected that the image format corresponding to the cover image to be uploaded is a dynamic image format, the target interface is called to upload the first target image to the target database, and the first image storage address of the first target image in the target database is obtained, wherein the first target image is a cover image whose display ratio has not been adjusted; The first target image is edited using a target tag based on the storage address of the first image, wherein the target tag is used to retrieve and display the first target image from the target database when editing the first target image; The method further includes: Determine the number of cover images to be uploaded; When the number of images is at least two, the image format corresponding to at least two of the cover images to be uploaded is determined to be a static image format; If the image format of the cover image to be uploaded is detected to be a static image format, the cover image to be uploaded is uploaded to the image processing component to generate a second target image. The image processing component is used to adjust the display ratio of the cover image to be uploaded, and the second target image is the cover image to be uploaded with the display ratio adjusted. The target interface is called to upload the second target image to the target database, and the second image storage address of the second target image in the target database is obtained. The second target image is edited according to the second image storage address.

2. The method according to claim 1, characterized in that, The process of uploading a cover image, including detecting the image format of the cover image to be uploaded, includes: In the editing interface of the operation business, a target interaction operation is obtained for the target interaction object to be executed, wherein the target interaction object is used to trigger the upload of the cover image of the target page, and the target interaction operation is used to add the cover image to be uploaded; In response to the target interaction operation, if it is determined that the number of the cover images to be uploaded is one, the image format corresponding to the cover image to be uploaded is detected.

3. The method according to claim 1, characterized in that, The step of uploading the cover image to be uploaded to the image processing component to generate the second target image includes: The cover image to be uploaded is converted into target encoding information, wherein the encoding format of the target encoding information is an encoding format that the image processing component is allowed to process; The target encoding information is uploaded to the image processing component, and the display ratio parameter of the target encoding information is configured by the image processing component to generate the second target image. The display ratio parameter is used to determine the display ratio of the second target image when it is being edited.

4. The method according to claim 1, characterized in that, The step of uploading the cover image to be uploaded to the image processing component to generate the second target image includes: When there are at least two images, the at least two cover images to be uploaded are sequentially converted into first encoding information and second encoding information, and uploaded to the image processing component. The cover image uploaded first among the at least two cover images to be uploaded is converted into the first encoding information, and the cover image uploaded after the first uploaded cover image is converted into the second encoding information. Obtain the display ratio parameter configured for the first encoding information, and adjust the first encoding information according to the display ratio parameter to generate a first cover image, wherein the second target image includes the first cover image; If the first cover image has been uploaded, the second encoding information is automatically adjusted based on the first cover image to generate a second cover image, wherein the second cover image has the same display ratio as the first cover image, and the second target image includes the second cover image.

5. The method according to claim 4, characterized in that, The step of automatically adjusting the second encoded information based on the first cover image to generate a second cover image includes: If the first cover image has already been uploaded, load the first cover image according to the storage address of the first image; If the first cover image has been loaded, obtain the loading information corresponding to the first cover image, wherein the loading information includes the display ratio of the first cover image; The second encoding information is automatically adjusted based on the loading information to generate a second cover image.

6. The method according to claim 1, characterized in that, The step of editing the first target image using the target tag according to the storage address of the first image includes: Obtain a target display operation on the editing interface of the operation business, wherein the target display operation is used to indicate that the first target image is displayed on the editing interface; In response to the target display operation, the first target image is retrieved from the target database using the target tag according to the first image storage address; The first target image is displayed on the cover of the target page, and the first target image is edited.

7. A cover image editing device, characterized in that, include: The detection module is used to detect the image format of the cover image to be uploaded during the process of uploading the cover image. The cover image is used to display the cover on the target page, which is a pre-configured page for operational business. The calling module is used to call the target interface to upload the first target image to the target database when it is detected that the image format corresponding to the cover image to be uploaded is a dynamic image format, and to obtain the first image storage address of the first target image in the target database, wherein the first target image is a cover image whose display ratio has not been adjusted; An editing module is used to edit the first target image based on the storage address of the first image using target tags, wherein the target tags are used to retrieve and display the first target image from the target database when editing the first target image; The aforementioned calling module is further configured to determine the number of cover images to be uploaded; if the number of images is at least two, determine the image format corresponding to the at least two cover images to be uploaded as a static image format; if the image format of the cover image to be uploaded is detected to be a static image format, upload the cover image to be uploaded to the image processing component to generate a second target image, wherein the image processing component is configured to adjust the display ratio of the cover image to be uploaded, and the second target image is the cover image to be uploaded with the display ratio adjusted; call the target interface to upload the second target image to the target database, and obtain the second image storage address of the second target image in the target database; edit the second target image according to the second image storage address.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein the program, when executed, performs the method of any one of claims 1 to 6.

9. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to execute the method of any one of claims 1 to 6 through the computer program.