An online album editing method, system, electronic device and storage medium

By naming and status recognition of materials in the online album, the problem of online material loading failure was solved, enabling the selection and editing of online materials and improving the user experience.

CN115292253BActive Publication Date: 2026-01-27CHINA PING AN LIFE INSURANCE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210951693.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-09
Publication Date
2026-01-27
Estimated Expiration
2042-08-09

AI Technical Summary

Technical Problem

In existing technologies, online photo albums cannot effectively identify and process online materials that failed to load, resulting in a poor user experience.

Method used

Download online materials to a preset directory and name them. Use success and failure indicators to distinguish the loading status, generate a list of material objects, and process them in the editing module according to the loading results. Successful materials are edited, while failed materials are displayed as placeholder images.

Benefits of technology

It enables the selection and editing of online materials, identifies materials that failed to load, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115292253B_ABST
    Figure CN115292253B_ABST
Patent Text Reader

Abstract

The application provides an online album editing method and system, electronic equipment and storage medium, and belongs to the technical field of Internet. The method comprises the following steps: obtaining a plurality of target materials to be edited; downloading the plurality of target materials to a preset directory, and naming each target material; generating a material object list according to the plurality of target materials in the directory, wherein the material object list represents attribute values of the plurality of target materials, and the attribute values comprise a download result judgment value; outputting the material object list to an editing module for editing processing, wherein the editing processing comprises the following steps: in response to an editing operation of a user, editing a target material with a successful download according to the download result judgment value, and displaying a placeholder for a target material with a failed download; and saving and returning the material object list after editing is completed. The application can realize online selection and editing of online materials, and can identify and display online materials that are not successfully loaded, thereby improving user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of Internet technology, and in particular to an online photo album editing method, system, electronic device, and storage medium. Background Technology

[0002] The photo album feature is an important functional module in the application, involving the selection and editing (cropping, compression, etc.) of materials (images / videos). In practice, most material selection can be done using the functions provided by the system's photo album, but further editing requires customized development.

[0003] Currently, the most discussed topic in the industry is local photo albums, where the materials are located on the device. Many such albums exist on GitHub (a hosting platform for open-source and private software projects), offering comprehensive functionality. However, for online photo albums, where the materials reside on a server, solutions in the industry are scarce. Even powerful third-party album providers like PictureSelector only offer previews of online materials. To implement selection and other functions, users must first manually pull the online materials to their local device and then treat it as a local album. Furthermore, this solution cannot recognize materials that failed to load (potentially due to network issues, file errors, etc.). Summary of the Invention

[0004] The main objective of this application is to provide an online photo album editing method, system, electronic device, and storage medium that enables online selection and editing of online materials, and can identify and display online materials that have not been successfully loaded, thereby improving the user experience.

[0005] To achieve the above objectives, a first aspect of this application proposes an online photo album editing method, the method comprising:

[0006] Acquire multiple target materials to be edited;

[0007] Download multiple target materials to a preset directory and name each target material. The name of a successfully downloaded target material contains a preset success identifier, and the name of a target material that fails to be downloaded contains a preset failure identifier.

[0008] A list of material objects is generated based on multiple target materials in the directory. The list of material objects is used to represent the attribute values ​​of multiple target materials. The attribute values ​​include a download result judgment value, which is determined based on the success identifier and the failure identifier.

[0009] The list of material objects is output to the editing module for editing. The editing process includes: in response to the user's editing operation, editing the target material that was successfully downloaded according to the download result judgment value, and displaying a placeholder image for the target material that failed to download.

[0010] Save and return the list of material objects after editing.

[0011] In some embodiments, acquiring multiple target materials to be edited includes:

[0012] Access the online photo album, which includes multiple online materials displayed in a grid format;

[0013] In response to a user's selection action, multiple target materials to be edited are selected from a plurality of online materials.

[0014] In some embodiments, naming each of the target materials includes:

[0015] The downloaded target material is named in a preset first format, so that the name of the downloaded target material contains a preset success identifier and sequence number;

[0016] The target material that fails to download is named in a preset second format, so that the name of the target material that fails to download contains a preset failure identifier and sequence number;

[0017] The sequence number indicates the order in which the target material was selected by the user.

[0018] In some embodiments, generating a list of material objects based on a plurality of target materials in the directory includes:

[0019] Scan the multiple target materials in the directory and generate multiple media objects one by one, each of the media objects being used to represent the attribute value of the corresponding target material;

[0020] The media objects are numbered in the specified order to generate the list of media objects.

[0021] In some embodiments, outputting the list of material objects to the editing module for editing includes:

[0022] Output the list of material objects to the editing module;

[0023] Multiple target materials in the material object list are edited sequentially according to their ordered numbers.

[0024] In some embodiments, the step of editing the successfully downloaded target material and displaying a placeholder image for the unsuccessfully downloaded target material based on the download result judgment value includes:

[0025] When the target material's name contains a success identifier, the download result judgment value corresponding to the target material is determined to be the first key value, and the target material is edited according to the first key value;

[0026] When the target material's name contains a failure identifier, the download result judgment value corresponding to the target material is determined to be the second key value, and a placeholder image is displayed for the target material based on the second key value.

[0027] In some embodiments, the attribute value further includes a material resource locator and a material location; saving and returning the list of material objects after editing includes:

[0028] Obtain the target material after editing based on the material resource locator;

[0029] The location of the target material after editing is determined according to the user's editing order;

[0030] The target material or placeholder image after editing is displayed based on the location of the material.

[0031] To achieve the above objectives, a second aspect of this application proposes an online photo album editing system, the system comprising:

[0032] The target material acquisition module is used to acquire multiple target materials to be edited;

[0033] The material download module is used to download multiple target materials to a preset directory and name each target material. The name of the target material that is successfully downloaded contains a preset success identifier, and the name of the target material that fails to be downloaded contains a preset failure identifier.

[0034] The material object list generation module is used to generate a material object list based on multiple target materials in the directory. The material object list is used to represent the attribute values ​​of the multiple target materials. The attribute values ​​include a download result judgment value, which is determined based on the success identifier and the failure identifier.

[0035] The editing module is used to edit the list of material objects. The editing process includes: responding to the user's editing operation, editing the target material that was successfully downloaded according to the download result judgment value, and displaying a placeholder image for the target material that failed to download.

[0036] The results return module is used to save and return a list of the material objects after editing is completed.

[0037] To achieve the above objectives, a third aspect of this application provides an electronic device, comprising:

[0038] At least one memory;

[0039] At least one processor;

[0040] At least one computer program;

[0041] The at least one computer program is stored in the at least one memory, and the at least one processor executes the at least one computer program to implement the online photo album editing method described in the first aspect above.

[0042] To achieve the above objectives, a fourth aspect of the present application provides a storage medium, which is a computer-readable storage medium storing a computer program for causing a computer to execute the online photo album editing method described in the first aspect.

[0043] This application proposes an online photo album editing method, system, electronic device, and storage medium. To select and edit online materials in an online photo album, multiple target materials to be edited are obtained. To identify successfully loaded and unloaded target materials, multiple target materials are downloaded to a preset directory, and each target material is named, containing a preset success or failure identifier. A list of material objects is generated based on the multiple target materials in the directory, obtaining attribute values ​​for the multiple target materials, including a download result judgment value determined by the success and failure identifiers. For editing multiple target materials, the list of material objects is output to the editing module. The user can then edit successfully downloaded target materials based on the download result judgment value, while unloaded target materials are displayed as placeholder images. Saving and returning the edited material object list yields the processed multiple target materials. This application, by using different names for successfully loaded and unloaded target materials, enables online selection and editing of online materials and can identify and display unloaded online materials, improving the user experience. Attached Figure Description

[0044] Figure 1 This is a flowchart illustrating an online photo album editing method provided in an embodiment of this application;

[0045] Figure 2 yes Figure 1 A flowchart of step S100 in an embodiment of this application;

[0046] Figure 3 yes Figure 1 A flowchart of step S200 in an embodiment of this application;

[0047] Figure 4 yes Figure 1 A flowchart of step S300 in an embodiment of this application;

[0048] Figure 5 yes Figure 1 A flowchart of step S400 in an embodiment of this application;

[0049] Figure 6 yes Figure 1 A flowchart of step S400 in another embodiment of this application;

[0050] Figure 7 yes Figure 1 A flowchart of step S500 in an embodiment of this application;

[0051] Figure 8 This is a schematic diagram of the structure of the online photo album editing system provided in the embodiments of this application;

[0052] Figure 9 This is a schematic diagram of the hardware structure of the electronic device provided in the embodiments of this application. Detailed Implementation

[0053] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0054] It should be noted that although functional modules are divided in the device schematic diagram and a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first," "second," etc., in the specification, claims, and the aforementioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.

[0055] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.

[0056] First, let's analyze some of the terms used in this application:

[0057] Android is a free and open-source operating system based on the Linux kernel. It is primarily used in mobile devices such as smartphones and tablets.

[0058] Third-party image frameworks (such as Glide, Picasso, etc.): An image loading framework that can be used for image loading.

[0059] A Uniform Resource Locator (URL) is a concise representation of the location and access method of a resource available on the Internet. It is the address of a standard resource on the Internet. Every file on the Internet has a unique URL, which contains information indicating the file's location and how the browser should handle it.

[0060] The photo album function is a crucial module in any application, involving the selection and editing (cropping, compression, etc.) of materials (images / videos). In practice, most applications can utilize the features provided by the system's photo album for material selection. However, further editing requires custom development. Currently, the most discussed approach in the industry is the local photo album, where materials are stored locally on the device. Many such albums exist on GitHub (a hosting platform for open-source and private software projects), offering comprehensive functionality. However, for online photo albums, where materials reside on a server, industry solutions are scarce. Even powerful third-party album providers like PictureSelector only offer online material previews. To implement selection and other functions, users must first manually download the online materials to their local device and treat it as a local album. Furthermore, this solution cannot recognize materials that failed to load (potentially due to network issues, file errors, etc.).

[0061] Based on this, embodiments of this application provide an online photo album editing method, system, electronic device, and storage medium, which enables online selection and editing of online materials, and can identify and display online materials that have not been successfully loaded, thereby improving the user experience.

[0062] The online photo album editing method, system, electronic device, and storage medium provided in this application are specifically described through the following embodiments. First, an online photo album editing method in this application embodiment is described.

[0063] This application embodiment can acquire and process relevant data based on Android technology. Android is a free and open-source operating system based on the Linux kernel, primarily used in mobile terminals such as smartphones and tablets.

[0064] This application provides an online photo album editing method, relating to the field of internet technology. This online photo album editing method can be applied to a terminal, a server, or software running on either a terminal or a server. In some embodiments, the terminal can be a smartphone, tablet, television, digital camera, game console, smartwatch, laptop, desktop computer, etc.; the server can be configured as an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms; the software can be an application implementing the online photo album editing method, but is not limited to the above forms.

[0065] This application can be used in a wide variety of general-purpose or special-purpose computer system environments or configurations. Examples include: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, and distributed computing environments including any of the above systems or devices. This application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform specific tasks or implement specific abstract data types. This application can also be practiced in distributed computing environments where tasks are performed by remote processing devices connected via a communication network. In distributed computing environments, program modules can reside in local and remote computer storage media, including storage devices.

[0066] Please see Figure 1 , Figure 1 This is an optional flowchart of an online photo album editing method provided in an embodiment of this application. Figure 1 The method may specifically include, but is not limited to, steps S100 to S500.

[0067] Step S100: Obtain multiple target materials to be edited;

[0068] Step S200: Download multiple target materials to a preset directory and name each target material. The names of successfully downloaded target materials contain a preset success identifier, and the names of unsuccessfully downloaded target materials contain a preset failure identifier.

[0069] Step S300: Generate a list of material objects based on multiple target materials in the catalog. The list of material objects is used to represent the attribute values ​​of multiple target materials. The attribute values ​​include download result judgment values, which are determined based on success and failure indicators.

[0070] Step S400: Output the list of material objects to the editing module for editing processing. The editing processing includes: responding to the user's editing operation, editing the target materials that were successfully downloaded based on the download result judgment value, and displaying placeholder images for the target materials that failed to download.

[0071] Step S500: Save and return the list of material objects after editing.

[0072] In steps S100 to S500 of some embodiments, multiple target materials to be edited are obtained in order to select and edit online materials in an online photo album. To identify successfully loaded and unloaded target materials, multiple target materials are downloaded to a preset directory, and each target material is named, containing a preset success or failure identifier. A list of material objects is generated based on the multiple target materials in the directory, obtaining attribute values ​​for the multiple target materials, including a download result judgment value determined based on the success and failure identifiers. To edit the multiple target materials, the list of material objects is output to the editing module, allowing the user to edit successfully downloaded target materials based on the download result judgment value, while unloaded target materials are displayed as placeholder images. Saving and returning the edited list of material objects yields the processed multiple target materials. This application, by using different names for successfully loaded and unloaded target materials, enables online selection and editing of online materials and can identify and display unloaded online materials, improving the user experience.

[0073] In step S100 of some embodiments, multiple target materials are selected from multiple online materials displayed in the online album. The position and order of the selected target materials can be freely chosen by the user, and it is not necessary to select all of them. Target materials that do not require editing can be left unselected to avoid wasting loading time and storage space.

[0074] In step S200 of some embodiments, the selected target material is downloaded to a specified directory using a third-party image framework (such as Glide, Picasso, etc.). Since both loading online materials and downloading target materials use the same third-party image framework, the online materials displayed after loading will be reused (only images are reused, videos are not), avoiding repeated loading of the same resource. Download failures are generally caused by: the online material not existing on the server, or network or file errors.

[0075] The naming of target materials includes the selected sequence number, the resource locator (URL), and the file extension. The URL is an encoded Uniform Resource Locator (URL). A URL is a concise representation of the location and access method of a resource available on the internet; it's the address of a standard resource on the internet. Every file on the internet has a unique URL, containing information indicating the file's location and how the browser should handle it. Encoding the URL of the target material prevents special characters from appearing in the name and causing it to be unrecognizable. The file extension indicates success or failure. Successful files can have their extensions set to something like jpg, png, or mp4. If the file extension is jpg or png, the target material is an image; if it's mp4, it's a video. Failure can be indicated by a custom file extension, distinguishing between image and video types. Specific file extensions are not limited here.

[0076] In step S300 of some embodiments, the attribute values ​​of the target material include a download result judgment value, a material resource locator, and the material location. The download result judgment value is determined based on the success and failure identifiers in the name of each target material in the directory. If the name of the target material contains a success identifier but no failure identifier, the download result judgment value is 1; if the name of the target material contains a failure identifier but no success identifier, the download result judgment value is 0. Regardless of whether the target material was successfully downloaded or failed to download, the result is displayed in different forms in the material object list, and the relevant information of the unsuccessfully loaded target material is not directly discarded.

[0077] It should be noted that the assignment rules for the download result judgment value can be changed, as long as they can represent the two states, and should not be regarded as a limitation of this application.

[0078] In step S400 of some embodiments, the list of material objects is output to the editing module. In response to the user's editing operation, multiple target materials in the list of material objects can be edited. The target materials that are successfully downloaded can be edited in the editing module, while the target materials that fail to download are displayed as placeholder images. This allows the user to know that among the multiple target materials selected, there are target materials that have failed to download. It does not directly abandon the display of the download results of the target materials, so as not to make the user feel abrupt, thus improving the user experience.

[0079] It should be noted that the specific process and principle of the editing operation are existing technologies known to those skilled in the art, and will not be specifically described in the embodiments of this application.

[0080] In step S500 of some embodiments, the list of media objects returned to the user includes target media that have been successfully downloaded and edited, as well as placeholder images of target media that failed to download. This allows the user to know that among the multiple target media selected, there are target media that failed to download, without directly abandoning the display of the download results, thus improving the user experience. The user can then download the successfully edited target media to their local album for saving and use.

[0081] Please see Figure 2 , Figure 2 This is a flowchart illustrating the specific method of step S100 in some embodiments of this application. In some embodiments of this application, step S100 specifically includes, but is not limited to, steps S110 and S120, which are described below in conjunction with... Figure 2 These two steps will be explained in detail.

[0082] Step S110: Access the online photo album, which includes multiple online materials displayed in a grid format;

[0083] Step S120: In response to the user's selection operation, select multiple target materials to be edited from multiple online materials.

[0084] In steps S110 and S120 of some embodiments, the online photo album resides on a server. Online materials in the album can be loaded using third-party image frames (such as Glide, Picasso, etc.) and placeholder images can be set. If the online material is a video, a video cover and play button are displayed. Multiple online materials in the album are displayed in a grid format. Users can select multiple target materials to be edited from these materials. The position and order of the selected target materials are freely chosen by the user; not all materials need to be selected. Target materials that do not require editing can be left unselected to avoid wasting loading time and storage space.

[0085] It should be noted that the user's selection operation can be done by touching with a finger or by clicking with a mouse. The specific selection operation method needs to be determined according to the carrier that implements the online album editing method of this application embodiment.

[0086] It should be noted that multiple online materials in an online album can also be displayed in a list format, and the way online materials are displayed should not be regarded as a limitation of this application.

[0087] Please see Figure 3 , Figure 3This is a flowchart illustrating the specific method of step S200 in some embodiments of this application. In some embodiments of this application, step S200 specifically includes, but is not limited to, steps S210 and S220, which will be described below in conjunction with... Figure 3 These two steps will be explained in detail.

[0088] Step S210: Name the successfully downloaded target material in a preset first format, so that the name of the successfully downloaded target material contains a preset success identifier and sequence number;

[0089] Step S220: Name the target material that failed to download using a preset second format, so that the name of the target material that failed to download contains a preset failure identifier and sequence number; wherein, the sequence number indicates the order in which the target material was selected by the user.

[0090] In steps S210 and S220 of some embodiments, specifically, the first format is: i_name.extension, and the second format is: i_name.pic or i_name.video, where i is the sequential number of the selected target material, incrementing according to the user's selection order, such as: 0, 1, 2, 3... A Uniform Resource Locator (URL) is a concise representation of the location and access method of a resource obtainable from the Internet; it is the address of a standard resource on the Internet. Every file on the Internet has a unique URL, which contains information indicating the file's location and how the browser should handle it. `name` is the resource locator for the target material, used to avoid special characters appearing in the name and causing unrecognizable results. `extension` is a preset success identifier, specifically the file extension of the target material, such as jpg, png, mp4, etc. If `extension` is jpg or png, the target material is an image; if `extension` is mp4, the target material is a video. `pic` and `video` are preset failure identifiers; `pic` represents an image, and `video` represents a video. It should be noted that other suffixes can also be used to indicate success or failure, and no restrictions are imposed here.

[0091] In some embodiments, the selected target material is downloaded to a specified directory using the aforementioned third-party image framework (such as Glide, Picasso, etc.). Since the same third-party image framework is used for both loading online materials and downloading target materials, the online materials displayed after loading will be reused (only images are reused, videos are not reused), thus avoiding the repeated loading of the same resource.

[0092] Please see Figure 4 , Figure 4This is a flowchart illustrating the specific method of step S300 in an embodiment of this application. In some embodiments of this application, step S300 specifically includes, but is not limited to, steps S310 and S320, which will be discussed below. Figure 4 These two steps will be explained in detail.

[0093] Step S310: Scan multiple target materials in the catalog and generate multiple media objects one by one. Each media object is used to represent the attribute value of the corresponding target material.

[0094] Step S320: Generate a list of media objects by sequentially numbering multiple media objects.

[0095] In step S310 of some embodiments, the attribute values ​​of the target material include a download result judgment value, a material resource locator, and the material location. The download result judgment value is determined based on the success and failure identifiers in the name of each target material in the directory. If the name of the target material contains a success identifier but not a failure identifier, the download result judgment value is assigned to 1; if the name of the target material contains a failure identifier but not a success identifier, the download result judgment value is assigned to 0. Regardless of whether the target material is successfully downloaded or not, the result is displayed in different forms in the material object list, and the relevant information of the unsuccessfully loaded target material is not directly discarded.

[0096] It should be noted that the assignment rules for the download result judgment value can be changed, as long as they can represent the two states, and should not be regarded as a limitation of this application.

[0097] It should be noted that a custom file loader is used to scan the directory. As long as the directory can be scanned and the attribute values ​​of the target material can be obtained, the specific type and model of the file loader used should not be regarded as a limitation of this application.

[0098] In step S320 of some embodiments, the order of multiple media objects is determined according to their sequence numbers. Generating a list of media objects based on their sequence numbers ensures that the order in which the target media are processed follows the user's selection order. This can both organize the processing of data resources and improve the user experience.

[0099] Please see Figure 5 , Figure 5 This is a flowchart illustrating the specific method of step S400 in an embodiment of this application. In some embodiments of this application, step S400 specifically includes, but is not limited to, steps S410 and S420, which will be discussed below. Figure 5 These two steps will be explained in detail.

[0100] Step S410: Output the list of material objects to the editing module;

[0101] Step S420: Edit multiple target materials in the material object list sequentially according to their numbering.

[0102] In steps S410 and S420 of some embodiments, the list of material objects is output to the editing module. In response to the user's editing operation, multiple target materials in the list of material objects can be edited sequentially according to their sequential numbers. The target materials that are successfully downloaded can be edited in the editing module, while the target materials that fail to download are displayed as placeholder images. This allows the user to know that among the multiple target materials selected, there are target materials that have failed to download. It does not directly abandon the display of the download results of the target materials, so as not to make the user feel abrupt and improve the user experience.

[0103] Please see Figure 6 , Figure 6 This is a flowchart illustrating the specific method of step S400 in another embodiment of this application. In some embodiments of this application, the process of determining the download result judgment value specifically includes, but is not limited to, steps S430 and S440, which are described below in conjunction with... Figure 6 These two steps will be explained in detail.

[0104] Step S430: When the target material's name contains a success identifier, determine the download result judgment value corresponding to the target material as the first key value, and edit the target material according to the first key value;

[0105] Step S440: When the target material's name contains a failure identifier, determine the download result judgment value corresponding to the target material as the second key value, and display the target material as a placeholder image based on the second key value.

[0106] In steps S301 and S302 of some embodiments, during the directory scanning process, the download result of the target material is directly determined by the suffix in its name. If the target material's name includes "extension" but not "pic" or "video", the download result judgment value indicates successful download, and the download result judgment value is assigned to 1 (i.e., the first key value); if the target material's name includes "pic" or "video" but not "extension", the download result judgment value indicates download failure, and the download result judgment value is assigned to 0 (i.e., the second key value). Determining the download result of the target material directly from its name is simple and has a fast response time. If the download result judgment value is 1, the target material is edited; if the download result judgment value is 0, a placeholder image is displayed for the target material.

[0107] It should be noted that the specific values ​​assigned to the first and second key values ​​can be set by the user and should not be regarded as a limitation on this application.

[0108] It should be noted that the specific scanning catalog and the process of determining the suffix in the name of the target material are existing technologies known to those skilled in the art, and the specific principles and processes will not be described in detail here.

[0109] In some embodiments of this application, the attribute values ​​also include material resource locators and material locations; please refer to [link / reference]. Figure 7 , Figure 7 This is a flowchart illustrating the specific method of step S500 in an embodiment of this application. In some embodiments of this application, step S500 specifically includes, but is not limited to, steps S510 to S530, as described below. Figure 5 These three steps will be explained in detail.

[0110] Step S510: Obtain the target material after editing based on the material resource locator;

[0111] Step S520: Determine the location of the target material after editing is completed according to the user's editing order;

[0112] Step S530: Display the target material or placeholder image after editing based on the material's location.

[0113] In steps S510 to S530 of some embodiments, the resource address of the target material after editing can be obtained according to the material resource locator. The position of the target material in the material object list after successful editing is marked. The material position of the edited target material in the material object list returned to the user is recorded. Finally, the target material after editing is displayed according to the material position. The target material that failed to download is displayed as a placeholder. The multiple target materials returned to the user are arranged according to the user's editing order, which improves the user experience.

[0114] In some embodiments of this application, users can retry downloading target materials that fail to download. The specific steps are as follows: the resource locator of the failed download target material is re-entered to a third-party image framework (such as Glide, Picasso, etc.) for download, and then the user waits for a callback from the third-party image framework. The callback result can be either successful or unsuccessful. It should be noted that the retry operation is an optional step and should not be considered a limitation of this application.

[0115] Based on the above description, in order to better demonstrate the advantages of the online photo album editing method of this application embodiment, a specific example is given below. The online photo album editing method of this application embodiment specifically includes, but is not limited to, the following steps:

[0116] Step S110: Access the online photo album, which includes multiple online materials displayed in a grid format;

[0117] Step S120: In response to the user's selection operation, select multiple target materials to be edited from multiple online materials;

[0118] Step S210: Download multiple target materials to a preset directory, and name the successfully downloaded target materials in the format i_name.extension;

[0119] Step S220: Name the target material that failed to download in the format i_name.pic or i_name.video; where i is the sequential number of the selected target material, name is the material resource locator of the target material, extension is the file extension of the target material and represents the success mark, pic indicates that the target material that failed to download is an image, video indicates that the target material that failed to download is a video, and both pic and video represent failure marks.

[0120] Step S310: Scan multiple target materials in the catalog and generate multiple media objects one by one. Each media object is used to represent the attribute value of the corresponding target material.

[0121] Step S320: Generate a list of media objects based on their sequential number (i);

[0122] Step S410: Output the list of material objects to the editing module;

[0123] Step S420: Edit multiple target materials in the material object list in sequence according to their sequential number (i);

[0124] Step S430: In response to the user's editing operation, when the target material's name contains a success identifier, determine that the download result judgment value corresponding to the target material is the first key value, and edit the target material according to the first key value;

[0125] Step S440: When the target material's name contains a failure identifier, determine the download result judgment value corresponding to the target material as the second key value, and display a placeholder image of the target material based on the second key value;

[0126] Step S510: Obtain the target material after editing based on the material resource locator;

[0127] Step S520: Determine the location of the target material after editing is completed according to the user's editing order;

[0128] Step S530: Display the target material or placeholder image after editing based on the material's location.

[0129] This application provides an online photo album editing method. To select and edit online materials in an online photo album, multiple target materials to be edited are obtained. To identify successfully loaded and unloaded target materials, multiple target materials are downloaded to a preset directory, and each target material is named, containing a preset success or failure identifier. A material object list is generated based on the multiple target materials in the directory, obtaining attribute values ​​for the multiple target materials, including a download result judgment value determined by the success and failure identifiers. To edit the multiple target materials, the material object list is output to the editing module. The user can then edit successfully downloaded target materials based on the download result judgment value, while unloaded target materials are displayed as placeholder images. Saving and returning the edited material object list yields the processed multiple target materials. This application, by using different names for successfully loaded and unloaded target materials, enables online selection and editing of online materials and can identify and display unloaded online materials, improving the user experience.

[0130] Please see Figure 8 This application embodiment also provides an online photo album editing system that can implement the above-mentioned online photo album editing method. The system includes a target material acquisition module 610, a material download module 620, a material object list generation module 630, an editing module 640, and a result return module 650.

[0131] The target material acquisition module 610 is used to acquire multiple target materials to be edited;

[0132] The material download module 620 is used to download multiple target materials to a preset directory and name each target material. The name of the target material that is successfully downloaded contains a preset success identifier, and the name of the target material that fails to be downloaded contains a preset failure identifier.

[0133] The material object list generation module 630 is used to generate a material object list based on multiple target materials in the directory. The material object list is used to represent the attribute values ​​of multiple target materials. The attribute values ​​include download result judgment values, which are determined based on success and failure indicators.

[0134] The editing module 640 is used to edit the list of material objects. The editing process includes: responding to the user's editing operation, editing the target materials that were successfully downloaded based on the download result judgment value, and displaying placeholder images for the target materials that failed to download.

[0135] Result return module 650 is used to save and return a list of material objects after editing.

[0136] Select multiple target materials from a variety of online materials displayed in the online album. The position and order of the selected target materials can be freely chosen by the user. It is not necessary to select all of them. Target materials that do not require editing can be left unselected to avoid wasting loading time and storage space.

[0137] The selected target assets are downloaded to a specified directory using a third-party image framework (such as Glide or Picasso). Since both loading online assets and downloading the target assets use the same third-party image framework, the online assets displayed after loading will be reused (only images are reused; videos are not), avoiding duplicate loading of the same resource. Download failures are generally caused by: the online asset not existing on the server, or network or file errors.

[0138] The naming of target materials includes the selected sequence number, the resource locator (URL), and the file extension. The URL is an encoded Uniform Resource Locator (URL). A URL is a concise representation of the location and access method of a resource available on the internet; it's the address of a standard resource on the internet. Every file on the internet has a unique URL, containing information indicating the file's location and how the browser should handle it. Encoding the URL of the target material prevents special characters from appearing in the name and causing unrecognizable results. The file extension indicates success or failure. Successful submissions can be indicated by the file extension, such as jpg, png, or mp4. If the file extension is jpg or png, the target material is an image; if the extension is mp4, the target material is a video. Failures can be indicated by a custom file extension, distinguishing between image and video types. Specific file extensions are not limited here.

[0139] The target asset's attribute values ​​include a download result judgment value, asset resource locator, and asset location. The download result judgment value is determined based on the success and failure indicators in the name of each target asset in the directory. If the target asset's name contains a success indicator but no failure indicator, the download result judgment value is 1; if the target asset's name contains a failure indicator but no success indicator, the download result judgment value is 0. Regardless of whether the target asset was successfully downloaded or failed to download, the result is displayed in different forms in the asset object list, and the relevant information of the unsuccessfully loaded target asset is not directly discarded.

[0140] It should be noted that the assignment rules for the download result judgment value can be changed, as long as they can represent the two states, and should not be regarded as a limitation of this application.

[0141] The list of material objects is output to the editing module. In response to the user's editing operation, multiple target materials in the list can be edited. Successfully downloaded target materials can be edited in the editing module, while target materials that failed to download are displayed as placeholder images. This allows users to know that among the multiple target materials they have selected, there are target materials that failed to download. It does not directly abandon the display of the download results of target materials, so as not to make users feel abrupt, thus improving the user experience.

[0142] It should be noted that the specific process and principle of the editing operation are existing technologies known to those skilled in the art, and will not be specifically described in the embodiments of this application.

[0143] The list of materials returned to the user includes successfully downloaded and edited target materials, as well as placeholder images of unsuccessfully downloaded target materials. This allows users to see that some of their selected target materials failed to download, without abruptly abandoning the download results, thus improving the user experience. Users can later download successfully edited target materials to their local album for saving and use.

[0144] This application provides an online photo album editing system that implements the aforementioned online photo album editing method. To select and edit online materials in an online photo album, multiple target materials to be edited are obtained. To identify successfully loaded and unloaded target materials, multiple target materials are downloaded to a preset directory, and each target material is named, containing a preset success or failure identifier. A list of material objects is generated based on the multiple target materials in the directory, obtaining attribute values ​​for the multiple target materials, including a download result judgment value determined by the success and failure identifiers. To edit the multiple target materials, the list of material objects is output to the editing module. The user can then edit successfully downloaded target materials based on the download result judgment value, while unloaded target materials are displayed as placeholder images. Saving and returning the edited list of material objects yields the processed multiple target materials. This application, by using different names for successfully loaded and unloaded target materials, enables online selection and editing of online materials and can identify and display unloaded online materials, improving the user experience.

[0145] This application also provides an electronic device, comprising: at least one memory, at least one processor, and at least one computer program. The at least one computer program is stored in the at least one memory, and the at least one processor executes the at least one computer program to implement any of the online photo album editing methods described in the above embodiments. This electronic device can be any smart terminal, including smartphones and tablets.

[0146] Please see Figure 9 , Figure 9 This illustration shows the hardware structure of an electronic device according to another embodiment, the electronic device comprising:

[0147] The processor 710 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this application.

[0148] The memory 720 can be implemented as a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 720 can store the operating system and other applications. When the technical solutions provided in the embodiments of this specification are implemented through software or firmware, the relevant program code is stored in the memory 720 and called and executed by the processor 710 according to an embodiment of this application for an online photo album editing method.

[0149] The input / output interface 730 is used to implement information input and output;

[0150] The communication interface 740 is used to enable communication and interaction between this device and other devices. Communication can be achieved through wired means (such as USB, network cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.).

[0151] Bus 750 transmits information between various components of the device (e.g., processor 710, memory 720, input / output interface 730, and communication interface 740);

[0152] The processor 710, memory 720, input / output interface 730 and communication interface 740 are connected to each other within the device via bus 750.

[0153] This application also provides a storage medium, which is a computer-readable storage medium storing a computer program for causing a computer to execute any of the online photo album editing methods described in the above embodiments.

[0154] Memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer-executable programs. Furthermore, memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory may optionally include memory remotely located relative to the processor, and these remote memories can be connected to the processor via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

[0155] The embodiments described in this application are for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided by the embodiments of this application. As those skilled in the art will know, with the evolution of technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of this application are also applicable to similar technical problems.

[0156] It will be understood by those skilled in the art that Figures 1 to 7 The technical solutions shown do not constitute a limitation on the embodiments of this application, and may include more or fewer steps than shown, or combine certain steps, or different steps.

[0157] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.

[0158] Those skilled in the art will understand that all or some of the steps in the methods disclosed above, as well as the functional modules / units in the systems and devices, can be implemented as software, firmware, hardware, or suitable combinations thereof.

[0159] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification 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.

[0160] It should be understood that in this application, "at least one (item)" means one or more, and "more than" means two or more. "And / or" is used to describe the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: only A exists, only B exists, and both A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (item) of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.

[0161] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of the units described above is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0162] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0163] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0164] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes multiple instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing programs, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0165] The preferred embodiments of the present application have been described above with reference to the accompanying drawings, but this does not limit the scope of the claims of the present application. Any modifications, equivalent substitutions, and improvements made by those skilled in the art without departing from the scope and substance of the embodiments of the present application shall be within the scope of the claims of the present application.

Claims

1. An online photo album editing method, characterized in that, The method includes: Acquire multiple target materials to be edited; Download multiple target materials to a preset directory and name each target material. The name of a successfully downloaded target material contains a preset success identifier and a sequence number, while the name of a target material that fails to download contains a preset failure identifier and a sequence number. The sequence number indicates the order in which the target materials were selected by the user. Scan the multiple target materials in the directory and generate multiple media objects one by one, each of which is used to represent the attribute value of the corresponding target material; A list of media objects is generated by numbering multiple media objects in sequence. The list of media objects is used to represent the attribute values ​​of multiple target media. The attribute values ​​include a download result judgment value, which is determined based on the success identifier and the failure identifier. The list of material objects is output to the editing module for editing processing. The editing processing includes: in response to the user's editing operation, editing the target material that was successfully downloaded according to the download result judgment value, and displaying a placeholder image for the target material that failed to download. Save and return the list of material objects after editing.

2. The online photo album editing method according to claim 1, characterized in that, The process of acquiring multiple target materials to be edited includes: Access the online photo album, which includes multiple online materials displayed in a grid format; In response to a user's selection action, multiple target materials to be edited are selected from a plurality of online materials.

3. The online photo album editing method according to claim 2, characterized in that, The naming of each of the target materials includes: The downloaded target material is named in a preset first format, so that the name of the downloaded target material contains a preset success identifier and sequence number; The target material that fails to download is named in a preset second format, so that the name of the target material that fails to download contains a preset failure identifier and sequence number.

4. The online photo album editing method according to claim 3, characterized in that, The step of outputting the list of material objects to the editing module for editing includes: Output the list of material objects to the editing module; Multiple target materials in the material object list are edited sequentially according to their ordered numbers.

5. The online photo album editing method according to claim 3, characterized in that, The steps of editing the successfully downloaded target material based on the download result judgment value and displaying a placeholder image for the failed download target material include: When the target material's name contains a success identifier, the download result judgment value corresponding to the target material is determined to be the first key value, and the target material is edited according to the first key value; When the target material's name contains a failure identifier, the download result judgment value corresponding to the target material is determined to be the second key value, and a placeholder image is displayed for the target material based on the second key value.

6. The online photo album editing method according to claim 1, characterized in that, The attribute values ​​also include material resource locators and material locations; the process of saving and returning the list of material objects after editing includes: Obtain the target material after editing based on the material resource locator; The location of the target material after editing is determined according to the user's editing order; The target material or placeholder image after editing is displayed based on the location of the material.

7. An online photo album editing system, characterized in that, The system includes: The target material acquisition module is used to acquire multiple target materials to be edited; The material download module is used to download multiple target materials to a preset directory and name each target material. The name of a successfully downloaded target material contains a preset success identifier and a sequence number, and the name of a target material that fails to download contains a preset failure identifier and a sequence number. The sequence number indicates the order in which the target materials were selected by the user. The media object list generation module is used to scan multiple target media in the directory and generate multiple media objects one by one. Each media object is used to represent the attribute value of the corresponding target media. The multiple media objects are numbered in sequence to generate a media object list. The media object list is used to represent the attribute values ​​of the multiple target media. The attribute values ​​include a download result judgment value, which is determined based on the success flag and the failure flag. The editing module is used to edit the list of material objects. The editing process includes: in response to the user's editing operation, editing the target material that was successfully downloaded according to the download result judgment value, and displaying a placeholder image for the target material that failed to download. The results return module is used to save and return a list of the material objects after editing is completed.

8. An electronic device, characterized in that, include: At least one memory; At least one processor; At least one computer program; The at least one computer program is stored in the at least one memory, and the at least one processor executes the at least one computer program to perform: An online photo album editing method as described in any one of claims 1 to 6.

9. A storage medium, said storage medium being a computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that causes a computer to perform an online photo album editing method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Online document editing method and device and electronic equipment

    CN112131844A

  • Multimedia material distribution method

    CN112272318A