Media editing method and apparatus, device, and storage medium
By introducing the expanded entrance and control parameter adjustment in the media editing tool, the problem of media content proportion and size not meeting expectations is solved, convenient media expansion and efficient editing process are achieved, and user experience and content richness are improved.
Patent Information
- Application Number
- PCT/CN2025/075350
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-02-04
- Filing Date
- 2025-01-26
- Publication Date
- 2025-08-07
AI Technical Summary
Existing media editing tools are difficult to effectively adjust the media content that does not meet expectations, resulting in low quality of media content and difficult to meet users' usage needs.
A media editing method and device are provided. By presenting a picture expansion entrance in the editing interface, entering the picture expansion interface, adjusting the size of the media using the control parameters of the canvas area and the setting area, and generating candidate media, the user can select a suitable candidate media to replace the original media.
It realizes conveniently adjusting the expansion ratio of media, improving the efficiency and user experience of media editing, generating richer media content, and supporting refined control in small-screen scenes.
Smart Images

Figure CN2025075350_07082025_PF_FP_ABST
Abstract
Description
Media editing method, device, equipment and storage medium
[0001] This application claims priority to the Chinese invention patent application entitled “Method, apparatus, device and storage medium for media editing” and application number 202410160401.7, filed on February 4, 2024. The entire contents of that application are incorporated herein by reference. Technical Field
[0002] Example embodiments of the present disclosure generally relate to the field of computers, and more particularly, to methods, devices, apparatuses, and computer-readable storage media for media editing. Background Art
[0003] With the development of computer technology, people can access a wide variety of media content through the internet and create media content using various media capture and editing tools. However, in some cases, the media content captured or captured by users may not have the expected proportions or dimensions. Conventional media editing tools make it difficult for users to expand such media content. Summary of the Invention
[0004] In a first aspect of the present disclosure, a method for media editing is provided. The method includes: presenting an editing interface for a first medium, the editing interface including an expansion entry; based on a selection of the expansion entry, presenting an expansion interface, the expansion interface including a canvas area and a settings area, the canvas area displaying the first medium, the settings area being configured to obtain at least one control parameter for expanding the first medium; based on a first touch operation on an expansion ratio adjustment control in the settings area, changing a first size of the first medium in the canvas area according to an expansion ratio indicated by the first touch operation; based on the determined first size of the first medium in the canvas area, displaying at least one candidate medium generated based on the expansion ratio in an area of the expansion interface; and based on a selection of a second medium from the at least one candidate medium, displaying the second medium in the editing interface.
[0005] In a second aspect of the present disclosure, a device for media editing is provided. The device includes: a first presentation module, configured to present an editing interface of a first media, the editing interface including an expansion entry; a second presentation module, configured to present an expansion interface based on a selection of the expansion entry, the expansion interface including a canvas area and a setting area, the canvas area displays the first media, and the setting area is configured to obtain at least one control parameter for expanding the first media; a parameter adjustment module, configured to change the first size of the first media in the canvas area according to the expansion ratio indicated by the first touch operation on the expansion ratio adjustment control in the setting area; a media display module, configured to display at least one candidate media generated based on the expansion ratio in the area of the expansion interface based on the determined first size of the first media in the canvas area; and a media replacement module, configured to display the second media in the editing interface based on a selection of the second media from the at least one candidate media.
[0006] In a third aspect of the present disclosure, an electronic device is provided. The device includes at least one processing unit; and at least one memory coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit. When executed by the at least one processing unit, the instructions cause the device to perform the method of the first aspect.
[0007] In a fourth aspect of the present disclosure, a computer-readable storage medium is provided, wherein a computer program is stored on the computer-readable storage medium, and the computer program can be executed by a processor to implement the method of the first aspect.
[0008] In a fifth aspect of the present disclosure, a computer program product is provided, comprising computer-executable instructions, wherein the computer-executable instructions implement the method of the first aspect when executed by a processor.
[0009] It should be understood that the content described in this summary section is not intended to limit the key features or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, wherein:
[0011] FIG1 shows a schematic diagram of an example environment in which embodiments according to the present disclosure may be implemented;
[0012] FIG2 illustrates a flow chart of an example process for media editing according to some embodiments of the present disclosure;
[0013] 3A to 3F illustrate example interfaces according to some embodiments of the present disclosure;
[0014] FIG4 shows a schematic structural block diagram of an example apparatus for media editing according to some embodiments of the present disclosure; and
[0015] FIG5 shows a block diagram of an electronic device capable of implementing various embodiments of the present disclosure. DETAILED DESCRIPTION
[0016] The following describes embodiments of the present disclosure in more detail with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments described herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of protection of the present disclosure.
[0017] It should be noted that the titles of any section / subsection provided herein are not limiting. Various embodiments are described throughout this document, and any type of embodiment may be included under any section / subsection. Furthermore, the embodiments described in any section / subsection may be combined in any manner with any other embodiments described in the same section / subsection and / or in different sections / subsections.
[0018] In the description of the embodiments of the present disclosure, the term "including" and similar terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The term "some embodiments" should be understood as "at least some embodiments". Other explicit and implicit definitions may be included below. The terms "first", "second", etc. may refer to different or the same objects. Other explicit and implicit definitions may be included below.
[0019] The embodiments of the present disclosure may involve user data, data acquisition and / or use, etc. These aspects shall comply with the corresponding laws, regulations and relevant provisions. In the embodiments of the present disclosure, all data collection, acquisition, processing, processing, forwarding, use, etc. are carried out on the premise that the user is aware of and confirms them. Accordingly, when implementing the various embodiments of the present disclosure, the types, scope of use, and usage scenarios of the data or information that may be involved should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with the relevant laws and regulations. The specific notification and / or authorization method may vary according to the actual situation and application scenario, and the scope of the present disclosure is not limited in this respect.
[0020] If this specification and the solutions in the examples involve the processing of personal information, such processing will be done only with a legitimate basis (such as with the consent of the subject of personal information or as necessary for the performance of a contract) and only within the prescribed or agreed scope. A user's refusal to process personal information other than that required for basic functions will not affect the user's use of basic functions.
[0021] As mentioned above, in some cases, the media content captured or captured by users may not have the expected proportions or size. Conventional media editing tools have difficulty helping users expand such media content, resulting in relatively low quality of some media content, making it difficult for users to use or share it.
[0022] An embodiment of the present disclosure proposes a media editing solution. According to the solution, an editing interface for a first medium is presented, the editing interface including an expansion entry; based on the selection of the expansion entry, an expansion interface is presented, the expansion interface including a canvas area and a setting area, the canvas area displays the first medium, and the setting area is configured to obtain at least one control parameter for expanding the first medium; based on a first touch operation on an expansion ratio adjustment control in the setting area, the first size of the first medium in the canvas area is changed according to the expansion ratio indicated by the first touch operation; based on the determined first size of the first medium in the canvas area, at least one candidate medium generated based on the expansion ratio is displayed in an area of the expansion interface; and based on the selection of a second medium from the at least one candidate media, the second media is displayed in the editing interface.
[0023] In this way, the embodiments of the present disclosure can support the user to conveniently adjust the expansion ratio for expanding media through a touch operation on the expansion ratio adjustment control, thereby supporting convenient expansion of the media.
[0024] Furthermore, through this media expansion process, embodiments of the present disclosure can expand new media based on the content of existing media, thereby obtaining new media with richer content. Furthermore, embodiments of the present disclosure can also provide users with refined control capabilities during the interactive process of media expansion, such as in small-screen scenarios such as smart terminals. This can improve media editing efficiency and user experience.
[0025] Various example implementations of this solution are described in detail below in conjunction with the accompanying drawings.
[0026] Sample Environment
[0027] FIG1 shows a schematic diagram of an example environment 100 in which embodiments of the present disclosure can be implemented. As shown in FIG1 , the example environment 100 may include an electronic device 110 .
[0028] In this example environment 100, electronic device 110 may run an application 120 that supports interface interaction. Application 120 may be any suitable type of application for interface interaction, examples of which may include, but are not limited to, photo editing applications, video editing applications, or other suitable applications that provide image editing capabilities. User 140 may interact with application 120 via electronic device 110 and / or its attached devices.
[0029] In the environment 100 of FIG. 1 , if the application 120 is in an active state, the electronic device 110 may present an interface 150 for supporting interface interaction through the application 120 .
[0030] In some embodiments, the electronic device 110 communicates with the server 130 to enable the provision of services for the application 120. The electronic device 110 can be any type of mobile terminal, fixed terminal or portable terminal, including a mobile phone, a desktop computer, a laptop computer, a notebook computer, a netbook computer, a tablet computer, a media computer, a multimedia tablet, a handheld computer, a portable game terminal, a VR / AR device, a personal communication system (PCS) device, a personal navigation device, a personal digital assistant (PDA), an audio / video player, a digital camera / camcorder, a positioning device, a television receiver, a radio broadcast receiver, an e-book device, a gaming device or any combination thereof, including accessories and peripherals of these devices or any combination thereof. In some embodiments, the electronic device 110 can also support any type of interface for the user (such as a "wearable" circuit, etc.).
[0031] The server 130 may be a standalone physical server, a server cluster or distributed system consisting of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content distribution networks, and big data and artificial intelligence platforms. For example, the server 130 may include a computing system / server such as a mainframe, an edge computing node, a computing device in a cloud environment, and the like. The server 130 may provide background services for the application 120 that supports virtual scenes in the electronic device 110.
[0032] A communication connection may be established between the server 130 and the electronic device 110. The communication connection may be established in a wired or wireless manner. The communication connection may include, but is not limited to, a Bluetooth connection, a mobile network connection, a Universal Serial Bus (USB) connection, a Wireless Fidelity (WiFi) connection, etc., and the embodiments of the present disclosure are not limited in this respect. In the embodiments of the present disclosure, the server 130 and the electronic device 110 may implement signaling interaction through the communication connection between the two.
[0033] It should be understood that the structure and function of the various elements in the environment 100 are described for illustrative purposes only and do not imply any limitation on the scope of the present disclosure.
[0034] Some example embodiments of the present disclosure will be described below with continued reference to the accompanying drawings.
[0035] Example Process
[0036] FIG2 shows a flow chart of an example interaction process 200 according to some embodiments of the present disclosure. The process 200 may be implemented at the electronic device 110. The process 200 is described below with reference to FIG1.
[0037] In block 210 , the electronic device 110 presents an editing interface of the first media, where the editing interface includes an image expansion entry.
[0038] The following describes an example process of the present disclosure using images as an example of media. It should be understood that such media may include any appropriate type of media having image information, such as videos, expressions, models, etc.
[0039] The process 200 will be described below with reference to Figures 3A to 3F. As shown in Figure 3A, the electronic device 110 may present an editing interface 300A for a first image 305. In the editing interface 300A, the electronic device 110 may provide one or more functions for editing the first image 305, such as cropping, enlarging, rotating, correcting, and the like.
[0040] In some embodiments, as shown in FIG. 3A , the electronic device 110 may provide an image expansion entry 310 for expanding the first image 305 in the editing interface 300A.
[0041] In some embodiments, the image expansion entrance 310 may also be presented in the editing interface 300A at other appropriate locations or based on other appropriate logics. The present disclosure is not intended to limit the specific display location of the image expansion entrance 310 .
[0042] In box 220, the electronic device 110 presents an image expansion interface based on the selection of the image expansion entrance. The image expansion interface includes a canvas area and a setting area. The canvas area displays the first media, and the setting area is configured to obtain at least one control parameter for expanding the first media.
[0043] For example, after receiving a selection of the expansion entry 310 in FIG. 3A , the electronic device 110 may present an expansion interface 300B as shown in FIG. 3B .
[0044] As shown in FIG3B , the image expansion interface 300B may include a canvas area 315 and a setting area 316 . The canvas area 315 may be used to display the first image 305 to be expanded. The setting area 316 may be used to obtain one or more control parameters for expanding the first image 305 .
[0045] In some embodiments, the setting area 316 may have a preset size, for example, and the size of the canvas area 315 may be determined based on the size of the setting area 316 , the overall size of the enlargement interface 300B, and the aspect ratio of the first image 305 to be enlarged.
[0046] For example, in the proportional expansion mode, the aspect ratio of the canvas area 315 matches the aspect ratio of the first image 305. Additionally, the canvas area 315 does not overlap with the setting area 316 to ensure that the user can better adjust the position or size of the first image 305 in the canvas area 315.
[0047] In some embodiments, upon entering the extended interface 300B, the electronic device 110 may hide the first image layer corresponding to the first image 305 in the editing interface 300A. Additionally, the electronic device 110 may also construct a set of layers corresponding to the canvas area 315. Specifically, the set of layers may include a background layer and a second image layer, wherein the background layer has a preset transparency (e.g., completely transparent), and the second image layer corresponds to the first image 305.
[0048] As an example, the area in the canvas area 315 that is not covered by the first image 305 may correspond to an area of the background layer, which may present a preset pattern, for example.
[0049] By constructing a new layer during the image expansion process, the embodiments of the present disclosure can improve the efficiency of image expansion and replacement.
[0050] 2 , in block 230 , the electronic device 110 changes the first size of the first media in the canvas area according to the expansion ratio indicated by the first touch operation based on the first touch operation on the expansion ratio adjustment control in the setting area.
[0051] Specifically, as shown in Figure 3A, the electronic device 110 can, for example, support a geometric expansion mode 320 and a change scale mode 325, wherein the geometric expansion mode 320 indicates that the expansion result of the first image 305 matches the aspect ratio of the first image 305, and the change scale mode 325 indicates that the first image 305 is expanded according to the specified aspect ratio.
[0052] For example, in the proportional expansion mode 320, the electronic device 110 may provide an expansion ratio adjustment control 330 in the setting area 316. As shown in FIG3A , the expansion ratio adjustment control 330 may be a slider control that changes the position of the slider based on a user's touch operation on the expansion ratio adjustment control 330, thereby determining the expansion ratio of the first image 305.
[0053] Taking FIG. 3B as an example, the electronic device 110 may determine that the expansion ratio of the first image 305 is 2.2 times based on the user's touch operation on the image expansion ratio adjustment control 330 .
[0054] In some embodiments, the electronic device 110 may also change the size of the first image 305 in the canvas area 315 accordingly based on the expansion ratio, so that the changed sizes of the first image 305 and the canvas area 315 can meet the expansion ratio.
[0055] To further improve the interaction efficiency of the user adjusting the expansion ratio, in some embodiments, the ratio adjustment control can also modify the expansion ratio based on a second touch operation on the first image 305 in the canvas area 315, where the second touch operation is used to scale the first image 305 in the canvas area 315. Specifically, the electronic device 110 can also receive a user touch operation on the first image 305 in the canvas area 315 and scale the first image 305 accordingly based on the touch operation.
[0056] While the first image 305 is being scaled based on a touch operation, the electronic device 110 may also dynamically update the expansion ratio indicated in the image scaling control 330. For example, when the first image 305 is enlarged based on a touch operation, the expansion ratio indicated by the image scaling control 330 may be reduced accordingly. It should be understood that the expansion ratio may be determined based on the ratio of the size of the canvas area to the adjusted size of the first image 305.
[0057] In some embodiments, if a touch operation on the first image 305 triggers the expansion ratio to be modified to reach a threshold (e.g., a lower limit or an upper limit) indicated by the expansion ratio adjustment control 330, the first image 305 in the canvas area 315 no longer enlarges or reduces in response to the touch operation or additional touch operations.
[0058] As an example, when the first image 305 is reduced based on a touch operation and the expansion ratio reaches 3.0 times, the electronic device 110 will no longer further reduce the first image 305 in response to the touch operation or additional touch operations.
[0059] In some cases, the first image 305 may not be scaled from the center of the canvas area 315, resulting in at least one edge of the first image 305 overlapping with an edge of the canvas area 315 during the scaling process based on the touch operation. In this case, the electronic device 110 will not continue to scale up the first image 305 in response to the touch operation, additional touch operations, or touch operations on the zoom scale adjustment control to ensure that the first image 305 is fully displayed within the canvas area 315.
[0060] In this way, the embodiments of the present disclosure can support users to quickly adjust the expansion ratio by touching the control or the image, thereby improving the efficiency of image editing.
[0061] In some embodiments, the electronic device 110 may further support the user to change the position of the first image 305 in the canvas area 315. For example, the electronic device 110 may adjust the position of the first image 305 based on a user touch operation (e.g., a drag operation) on the first image 305.
[0062] In some embodiments, the enlargement result to be described below may be generated based on the position of the first image 305 , such that the first image 305 remains at the corresponding position of the enlargement result.
[0063] 2 , in block 240 , the electronic device 110 displays at least one candidate medium generated based on an expansion ratio in an area of the expanded interface based on the determined first size of the first medium in the canvas area.
[0064] In some embodiments, the electronic device 110 may trigger, based on a selection of the control 340 , generation of an enlarged image result based on an expansion ratio determined in the expansion interface 300B.
[0065] 3C , electronic device 110 may display candidate images generated based on first image 305, such as candidate image 345 and candidate image 350. It should be understood that any appropriate media extension technology may be used to generate candidate media, and this disclosure is not intended to limit the specific implementation process of media extension.
[0066] In some embodiments, the electronic device 110 may provide multiple candidate images and may display one of the multiple candidate images, for example, candidate image 345, in the canvas area 315. Additionally, the electronic device 110 may also receive a selection of a candidate image 350 and display the selected candidate image 350 in the canvas area 315.
[0067] In other examples, the electronic device 110 may also provide only a single candidate image in the canvas area 315 , instead of providing multiple candidate images as shown in FIG. 3C .
[0068] In yet other examples, electronic device 110 may also obtain and present more candidate images based on user operations. For example, upon receiving a user sliding operation on a selection result, electronic device 110 may present more candidate images. In some embodiments, these more candidate images may include, for example, historical expansion results of first image 305.
[0069] In some embodiments, to facilitate the user to compare the first image 305 and the candidate image 345 , the electronic device 110 may further provide a comparison control 355 , and may switch the canvas area 315 to display the first image 305 based on a selection of the comparison control 355 .
[0070] As an example, the canvas area 315 may display the first image 305 when the comparison control 355 is in a triggered state, and may display the candidate image 345 when the comparison control 355 is not in a triggered state.
[0071] In some embodiments, when the candidate image 345 is in a selected state, the electronic device 110 may also update the second picture layer as mentioned above based on the selected candidate image 345 so that the second picture layer can correspond to the candidate image 345 .
[0072] 2 , in block 250 , the electronic device 110 displays the second media in the editing interface based on the selection of the second media in the at least one candidate image.
[0073] Continuing with the example of FIG3C , when candidate image 345 is selected, electronic device 110 may receive a selection of application control 360 and may accordingly present an editing interface 300D as shown in FIG3D . As shown in FIG3D , in editing interface 300D, electronic device 110 may display the selected second image (i.e., candidate image 345). As an example, electronic device 110 may replace the original first image 305 with the second image (i.e., candidate image 345), thereby completing the expansion editing process of first image 305.
[0074] In some embodiments, in order to improve the efficiency of image replacement, the electronic device 110 can use the second image layer corresponding to the candidate image 345 to replace the first image layer corresponding to the first image 305 in the editing interface, thereby more efficiently achieving image replacement.
[0075] Based on the process described above, the embodiments of the present disclosure can support users to conveniently adjust the expansion ratio for expanding the image through touch operations on the expansion ratio adjustment control and / or touch operations on the graphics in the canvas area, thereby improving the efficiency of image editing and enhancing the user experience during the editing process.
[0076] In some embodiments, the electronic device 110 may also support the user inputting text description information to guide the generation of expanded results. Specifically, as shown in FIG3B , in the settings area 316 , the electronic device 110 may also provide an input control 335 for obtaining text description information. It should be understood that such text description information may be, for example, optional or required input.
[0077] In some embodiments, the electronic device 110 may receive user input in the input control 335 to determine text description information for guiding image expansion. For example, such text description information may be used to describe the image content of the expanded portion, the image style of the expanded portion, etc.
[0078] In scenarios such as mobile devices, the display device size is generally limited, which results in a limited size of the input control. In some embodiments, as shown in FIG3E , the electronic device 110 can also stop displaying the settings area 316 and display the input panel 350 as shown in FIG3E in response to the input control 335 being triggered.
[0079] 3E , the input panel 350 may provide a larger input area 355 , thereby improving the efficiency of obtaining text description information. Additionally, the electronic device 110 may also clear the text content entered in the input area 355 based on selecting a clear control in the input area 355 .
[0080] In some embodiments, after receiving text description information via the input panel 350 , the electronic device 110 may switch to displaying the setting area 316 as shown in FIG. 3B , and may display at least part of the received text description information in the input control 335 of the setting area 316 .
[0081] For example, the electronic device 110 may display a predetermined number of lines of content based on the size of the input control 335. If the text description information exceeds the predetermined number of lines, the electronic device 110 may omit the subsequent content. Furthermore, the electronic device 110 may use the input panel 350 to present the complete text description information based on triggering the input control 335.
[0082] In some embodiments, taking Figure 3C as an example, before the user selects a specific candidate image and applies it, the electronic device 110 can also receive a request from the user to reset at least one control parameter (for example, clicking the back button), and can stop displaying the candidate image 345 and the candidate image 350, and switch to displaying the expanded image interface 300B shown in Figure 3B.
[0083] In some embodiments, each control in the expanded image interface 300B may retain parameter information for generating the candidate images 345 and 350. For example, the input control 310 may retain the presentation of previously received text description information.
[0084] Therefore, the embodiments of the present disclosure can facilitate users to further optimize text description information, thereby improving the efficiency of image editing.
[0085] 3F , as discussed above, electronic device 110 may also support a change ratio mode 325. Specifically, when change ratio mode 325 is selected, electronic device 110 may provide an aspect ratio adjustment control in settings area 316. For example, the aspect ratio adjustment control may include options corresponding to a plurality of preset aspect ratios, such as option 360.
[0086] Furthermore, after receiving the selection of option 360 , the electronic device 110 may adjust the size of the canvas area 315 so that the size of the canvas area 315 matches the selected aspect ratio (eg, 4:3).
[0087] Similarly, upon receiving a selection of control 340, electronic device 110 may provide one or more candidate images based on the indicated aspect ratio (e.g., 4:3). The one or more candidate images may have the indicated aspect ratio, and first image 305 may remain at a corresponding position of the one or more candidate images.
[0088] In some embodiments, when the user switches to the enlargement mode, the text description information in the input control 335 can be retained. That is, if the user has already entered specific text description information in the proportional enlargement mode 320, when the user switches to the scale adjustment mode 325, the input control 335 can retain the entered text description information, thereby avoiding the user from having to re-enter the text and improving image editing efficiency.
[0089] The above text describes the media editing process according to the embodiment of the present disclosure using images as an example of media. It should be understood that the above-described interactive process can also be applied to other appropriate media such as videos, expressions, models, etc.
[0090] Example devices and equipment
[0091] Embodiments of the present disclosure also provide corresponding apparatuses for implementing the above-described methods or processes. FIG4 shows a schematic structural block diagram of an example apparatus 400 for media editing according to certain embodiments of the present disclosure. Apparatus 400 may be implemented as or included in electronic device 110. Each module / component in apparatus 400 may be implemented by hardware, software, firmware, or any combination thereof.
[0092] As shown in Figure 4, the device 400 includes a first presentation module 410, which is configured to present an editing interface of the first media, the editing interface including an expansion entrance; a second presentation module 420, which is configured to present an expansion interface based on the selection of the expansion entrance, the expansion interface including a canvas area and a setting area, the canvas area displays the first media, and the setting area is configured to obtain at least one control parameter for expanding the first media; a parameter adjustment module 430, which is configured to change the first size of the first media in the canvas area according to the expansion ratio indicated by the first touch operation on the expansion ratio adjustment control in the setting area; a media display module 440, which is configured to display at least one candidate media generated based on the expansion ratio in the area of the expansion interface based on the determined first size of the first media in the canvas area; and a media replacement module 450, which is configured to display the second media in the editing interface based on the selection of the second media from the at least one candidate media.
[0093] In some embodiments, the setting area further includes an input control for obtaining text description information, and at least one candidate media is further generated based on the obtained text description information.
[0094] In some embodiments, the apparatus 400 further includes a text input module configured to: in response to receiving a request to reset at least one control parameter, display a setting area in the editing interface, wherein the input control of the setting area retains the presentation of text description information.
[0095] In some embodiments, the text input module is further configured to: in response to the input control being triggered, stop displaying the settings area and display the input panel; and in response to receiving text description information in the input panel, display the settings area and display at least part of the content of the text description information in the input control.
[0096] In some embodiments, when the expansion mode of the first media changes, the input control retains the input text description information, and the expansion mode includes a first expansion mode or a second expansion mode. The first expansion mode indicates that the expansion result of the first media matches the aspect ratio of the first media, and the second expansion mode indicates that the first media is expanded according to the specified aspect ratio.
[0097] In some embodiments, the expansion ratio adjustment control corresponds to a first expansion mode, which indicates that the expansion result of the first media matches the aspect ratio of the first media; and the setting area also includes an aspect ratio adjustment control corresponding to the second expansion mode, which is used to determine the aspect ratio of the expansion result of the first media, and the size of the canvas area also changes based on the determined aspect ratio.
[0098] In some embodiments, the scaling control can modify the expansion scale based on a second touch operation on the first media in the canvas area, the second touch operation being used to scale the first media in the canvas area.
[0099] In some embodiments, if the second touch operation triggers the expansion ratio to be modified to reach a threshold indicated by the expansion ratio adjustment control, the first media in the canvas area no longer enlarges or reduces in response to the second touch operation or additional touch operations.
[0100] In some embodiments, if the second touch operation triggers at least one edge of the first media to overlap with the edge of the canvas area, the first media in the canvas area will no longer be enlarged in response to the second touch operation, additional touch operations, or touch operations of the zoom ratio adjustment control.
[0101] In some embodiments, the canvas area is further configured to change a position of the first media in the canvas area based on a third touch operation, so that at least one candidate media is further generated based on the position of the first media.
[0102] In some embodiments, the device 400 further includes a media switching module configured to: present a third media among at least one candidate media in the canvas area; and switch the canvas area to present the first media in response to a triggering of a comparison control in the canvas area.
[0103] In some embodiments, the setting area has a preset second size, and the third size of the canvas area is determined based on the second size, the fourth size of the expansion interface and the aspect ratio of the first media, so that the third size of the canvas area matches the aspect ratio and the canvas area does not overlap with the setting area.
[0104] In some embodiments, the device 400 also includes a layer processing module, which is configured to: based on the selection of the image expansion entrance, hide the first image layer corresponding to the first media in the editing interface and construct a group of layers corresponding to the canvas area, the group of layers including a background layer and a second image layer, the background layer has a preset transparency, and the second image layer corresponds to the first media.
[0105] In some embodiments, the layer processing module is further configured to: in response to the canvas area being triggered to present at least one candidate media, update the second image layer based on the at least one candidate media.
[0106] In some embodiments, the layer processing module is further configured to: based on a selection of a second medium from the at least one candidate medium, update the second image layer based on the second medium and replace the first image layer with the second image layer.
[0107] FIG5 shows a block diagram of an electronic device 500 in which one or more embodiments of the present disclosure may be implemented. It should be understood that the electronic device 500 shown in FIG5 is merely exemplary and should not be construed as limiting the functionality and scope of the embodiments described herein. The electronic device 500 shown in FIG5 can be used to implement the electronic device 110 of FIG1 .
[0108] As shown in FIG5 , electronic device 500 is a general-purpose electronic device. Components of electronic device 500 may include, but are not limited to, one or more processors or processing units 510, memory 520, storage device 530, one or more communication units 540, one or more input devices 550, and one or more output devices 560. Processing unit 510 may be a real or virtual processor and is capable of performing various processes according to a program stored in memory 520. In a multi-processor system, multiple processing units execute computer-executable instructions in parallel to increase the parallel processing capabilities of electronic device 500.
[0109] The electronic device 500 typically includes a plurality of computer storage media. Such media can be any accessible media that can be obtained by the electronic device 500, including but not limited to volatile and non-volatile media, removable and non-removable media. The memory 520 can be a volatile memory (e.g., registers, cache, random access memory (RAM)), a non-volatile memory (e.g., read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory), or some combination thereof. The storage device 530 can be a removable or non-removable medium and can include a machine-readable medium, such as a flash drive, a disk, or any other medium that can be used to store information and / or data and can be accessed within the electronic device 500.
[0110] The electronic device 500 may further include additional removable / non-removable, volatile / non-volatile storage media. Although not shown in FIG. 5 , a disk drive for reading from or writing to a removable, non-volatile disk (e.g., a “floppy disk”) and an optical drive for reading from or writing to a removable, non-volatile optical disk may be provided. In these cases, each drive may be connected to a bus (not shown) by one or more data media interfaces. The memory 520 may include a computer program product 525 having one or more program modules configured to perform various methods or actions of various embodiments of the present disclosure.
[0111] The communication unit 540 enables communication with other electronic devices via a communication medium. Additionally, the functions of the components of the electronic device 500 can be implemented in a single computing cluster or multiple computing machines that can communicate via a communication connection. Thus, the electronic device 500 can operate in a networked environment using a logical connection with one or more other servers, a network personal computer (PC), or another network node.
[0112] Input device 550 may be one or more input devices, such as a mouse, keyboard, or trackball. Output device 560 may be one or more output devices, such as a display, a speaker, or a printer. Electronic device 500 may also communicate with one or more external devices (not shown) via communication unit 540 as needed, such as a storage device, a display device, or the like, with one or more devices that allow a user to interact with electronic device 500, or with any device that allows electronic device 500 to communicate with one or more other electronic devices (e.g., a network card, a modem, etc.). Such communication may be performed via an input / output (I / O) interface (not shown).
[0113] According to an exemplary implementation of the present disclosure, a computer-readable storage medium is provided, on which computer-executable instructions are stored, wherein the computer-executable instructions are executed by a processor to implement the method described above. According to an exemplary implementation of the present disclosure, a computer program product is also provided, which is tangibly stored on a non-transitory computer-readable medium and includes computer-executable instructions, and the computer-executable instructions are executed by a processor to implement the method described above.
[0114] Various aspects of the present disclosure are described herein with reference to flowcharts and / or block diagrams of methods, apparatuses, devices, and computer program products implemented according to the present disclosure. It should be understood that each block of the flowcharts and / or block diagrams, and combinations of blocks in the flowcharts and / or block diagrams, can be implemented by computer-readable program instructions.
[0115] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, such that when these instructions are executed by the processing unit of the computer or other programmable data processing device, a device is generated that implements the functions / actions specified in one or more blocks in the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium, where these instructions cause the computer, programmable data processing device, and / or other device to operate in a specific manner. Thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing various aspects of the functions / actions specified in one or more blocks in the flowchart and / or block diagram.
[0116] Computer-readable program instructions can be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0117] The flow charts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the systems, methods and computer program products according to multiple implementations of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a part for a module, program segment or instruction, and a part for a module, program segment or instruction comprises one or more executable instructions for realizing the logical function of the specification. In some alternative implementations, the functions marked in the box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be realized by a special hardware-based system that performs the function or action of the specification, or can be realized by a combination of special hardware and computer instructions.
[0118] While various implementations of the present disclosure have been described above, the foregoing description is intended to be illustrative, not exhaustive, and not limited to the disclosed implementations. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described implementations. The terminology used herein is selected to best explain the principles of the implementations, their practical applications, or improvements to existing technologies, or to enable others skilled in the art to understand the various implementations disclosed herein.
Claims
1. A media editing method, comprising: Presenting an editing interface of the first media, wherein the editing interface includes an image expansion entry; Based on the selection of the image expansion entrance, presenting an image expansion interface, the image expansion interface including a canvas area and a setting area, the canvas area displays the first media, and the setting area is configured to obtain at least one control parameter for expanding the first media; Based on a first touch operation on the image expansion ratio adjustment control in the setting area, changing a first size of the first medium in the canvas area according to the expansion ratio indicated by the first touch operation; Based on the determined first size of the first medium in the canvas area, displaying at least one candidate medium generated based on the expansion ratio in the area of the expanded image interface; as well as Based on a selection of a second medium from the at least one candidate medium, the second medium is displayed in the editing interface. 2 . The method according to claim 1 , wherein the setting area further comprises an input control for obtaining text description information, and the at least one candidate media is further generated based on the obtained text description information.
3. The method according to claim 2, before displaying the second media in the editing interface based on the selection of the second media from the at least one candidate media, further comprising: In response to receiving a request to reset the at least one control parameter, the at least one candidate media is stopped from being displayed and the setting area is displayed in the editing interface, wherein the input control in the setting area retains the presentation of the text description information.
4. The method according to claim 2, further comprising: In response to the input control being triggered, displaying an input panel; as well as In response to receiving the text description information in the input panel, the setting area is displayed and at least part of the text description information is displayed in the input control.
5. The method according to claim 2, wherein when the expansion mode of the first media changes, the input control retains the acquired text description information, the expansion mode includes a first expansion mode or a second expansion mode, the first expansion mode indicates that the expansion result of the first media matches the aspect ratio of the first media, and the second expansion mode indicates that the first media is expanded according to a specified aspect ratio.
6. The method according to claim 1, wherein the image enlargement ratio adjustment control corresponds to a first image enlargement mode, the first image enlargement mode indicating that the image enlargement result of the first media matches the aspect ratio of the first media; and The setting area also includes an aspect ratio adjustment control corresponding to the second expansion mode, the aspect ratio adjustment control is used to determine the aspect ratio of the expansion result of the first media, and the size of the canvas area also changes based on the determined aspect ratio. 7 . The method according to claim 1 , wherein the scale adjustment control is capable of modifying the expansion scale based on a second touch operation on the first media in the canvas area, the second touch operation being used to scale the first media in the canvas area.
8. The method according to claim 7, wherein if the second touch operation triggers the expansion ratio to be modified to reach a threshold indicated by the expansion ratio adjustment control, the first media in the canvas area will no longer be enlarged or reduced in response to the second touch operation or additional touch operations.
9. The method according to claim 7, wherein if the second touch operation triggers at least one edge of the first media to overlap with an edge of the canvas area, the first media in the canvas area is no longer enlarged in response to the second touch operation, additional touch operations, or the touch operation of the zoom ratio adjustment control. 10 . The method according to claim 1 , wherein the canvas area is further configured to change a position of the first media in the canvas area based on a third touch operation, so that the at least one candidate media is further generated based on the position of the first media.
11. The method according to claim 1, wherein the setting area has a preset second size, and the third size of the canvas area is determined based on the second size, the fourth size of the expanded image interface and the aspect ratio of the first media, so that the third size of the canvas area matches the aspect ratio and the canvas area does not overlap with the setting area.
12. The method according to claim 1, further comprising: Based on the selection of the image expansion entrance, the first image layer corresponding to the first media in the editing interface is hidden and a group of layers corresponding to the canvas area is constructed, the group of layers including a background layer and a second image layer, the background layer has a preset transparency, and the second image layer corresponds to the first media.
13. The method according to claim 12, further comprising: In response to the canvas area being triggered to present the at least one candidate media, the second image layer is updated based on the at least one candidate media.
14. The method according to claim 12, further comprising: Based on the selection of the second media from among the at least one candidate media, the second picture layer is updated based on the second media and the first picture layer is replaced by the second picture layer.
15. An apparatus for media editing, comprising: A first presentation module is configured to present an editing interface of a first medium, wherein the editing interface includes an image expansion entrance; a second presentation module configured to present an image expansion interface based on selection of the image expansion entry, the image expansion interface comprising a canvas area and a setting area, the canvas area displaying the first media, the setting area configured to obtain at least one control parameter for expanding the first media; a parameter adjustment module configured to change a first size of the first medium in the canvas area according to an expansion ratio indicated by a first touch operation on the image expansion ratio adjustment control in the setting area; a media display module configured to display, in an area of the expanded image interface, at least one candidate medium generated based on the expansion ratio based on the determined first size of the first medium in the canvas area; as well as The media replacement module is configured to display the second media in the editing interface based on a selection of the second media in the at least one candidate media.
16. An electronic device comprising: at least one processing unit; as well as At least one memory coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, the instructions, when executed by the at least one processing unit, causing the electronic device to perform the method according to claims 1 to 14.
17. A computer-readable storage medium having a computer program stored thereon, wherein the computer program is executable by a processor to implement the method according to claims 1 to 14.
18. A computer program product comprising computer executable instructions, wherein the computer executable instructions, when executed by a processor, implement the method according to any one of claims 1 to 14.
Citation Information
Patent Citations
Media editing method and device, equipment and storage medium
CN117950560A
Information processing device, information processing method, program, and information processing system
JP2014139764A