Multimedia content adjustment method, device, equipment and readable storage medium
By obtaining the size ratio of multimedia content in the information interaction platform and adjusting the same proportion, the problem of cumbersome adjustment steps before multimedia content is released is solved, and the adjustment efficiency is improved.
Patent Information
- Application Number
- CN202010017029.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-01-08
- Publication Date
- 2025-08-12
- Estimated Expiration
- 2040-01-08
AI Technical Summary
When publishing multimedia content in the information interaction platform, users need to adjust the size ratio of each picture separately, which is complicated by the operation steps, resulting in inefficient adjustment.
A multimedia content adjustment method is provided, by receiving multimedia content selection operations, displaying an editing interface, obtaining the size ratio of the i-th multimedia content, and adjusting other multimedia contents in the same proportion to achieve unified adjustment of the size ratio.
The adjustment efficiency before multimedia content is improved, the cumbersome process caused by sequential adjustment of single multimedia content is avoided, and the unified adjustment of the size and proportion of multimedia content is achieved.
Smart Images

Figure CN111221457B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, apparatus, device, and readable storage medium for adjusting multimedia content. Background Art
[0002] Users can post multimedia content such as pictures or videos on the information interaction platform. Other users on the information interaction platform can see the multimedia content, or only the user can see the multimedia content. Other users can interact with the user based on the multimedia content, such as commenting, liking, etc.
[0003] Taking the example of a user publishing a picture on an information interaction platform, the user uploads the picture to be published to the information interaction platform. Before publishing the picture, the user can adjust the size ratio of each picture on the picture size preview interface so that the size ratio of the picture displayed after publishing meets the user's requirements.
[0004] Based on the above situation, users need to adjust the size ratio of each picture before officially publishing the picture, and the operation steps are relatively cumbersome. Summary of the Invention
[0005] The embodiments of the present application provide a method, apparatus, device, and readable storage medium for adjusting multimedia content, which can improve the efficiency of adjusting multimedia content. The technical solution is as follows:
[0006] In one aspect, a method for adjusting multimedia content is provided, the method comprising:
[0007] receiving a multimedia content selection operation, wherein the multimedia content selection operation is used to select n multimedia contents to be edited, wherein the content type of the multimedia contents includes at least one of an image type and a video type, and n≥2;
[0008] Displaying an editing interface for the multimedia content, wherein the editing interface includes the n multimedia contents selected by the multimedia content selection operation;
[0009] Obtaining the content size ratio of the i-th multimedia content in the editing interface, 1≤i≤n;
[0010] The other multimedia contents in the n multimedia contents are adjusted in the same proportion according to the content size ratio.
[0011] In another aspect, a multimedia content adjustment device is provided, the device comprising:
[0012] a receiving module, configured to receive a multimedia content selection operation, wherein the multimedia content selection operation is used to select n multimedia contents to be edited, wherein the content type of the multimedia contents includes at least one of an image type and a video type, and n≥2;
[0013] a display module, configured to display an editing interface of the multimedia content, wherein the editing interface includes the n multimedia contents selected by the multimedia content selection operation;
[0014] An acquisition module, configured to acquire a content size ratio of the i-th multimedia content in the editing interface, where 1≤i≤n;
[0015] The adjustment module is configured to adjust the other multimedia contents in the n multimedia contents in the same proportion according to the content size ratio.
[0016] On the other hand, a computer device is provided, comprising: a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set, or an instruction set, and the at least one instruction, at least one program, a code set, or an instruction set is loaded and executed by the processor to implement the multimedia content adjustment method as described in any of the above-mentioned embodiments of the present application.
[0017] On the other hand, a computer-readable storage medium is provided, wherein the storage medium stores at least one instruction, at least one program, code set, or instruction set, and the at least one instruction, at least one program, code set, or instruction set is loaded and executed by the processor to implement the multimedia content adjustment method as described in any of the above-mentioned embodiments of the present application.
[0018] On the other hand, a computer program product is provided. When the computer program product is run on a computer, the computer is enabled to execute the multimedia content adjustment method as described in any one of the above embodiments of the present application.
[0019] The beneficial effects of the technical solutions provided in the embodiments of the present application include at least:
[0020] When a multimedia content editing interface includes n multimedia contents to be edited, by obtaining the content size ratio of the i-th multimedia content, the other multimedia contents are adjusted to the same ratio, thereby achieving unified adjustment of the size ratios of the multimedia contents, improving the adjustment efficiency before the multimedia content is released, and avoiding the cumbersome adjustment process caused by adjusting individual multimedia contents one by one. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0022] Figure 1 is a block diagram of a computer system structure provided by an exemplary embodiment of the present application;
[0023] Figure 2 is a flowchart of a method for adjusting multimedia content provided by an exemplary embodiment of the present application;
[0024] Figure 3 is based on Figure 2 A schematic diagram of an interface for selecting multimedia content from a terminal photo album provided by the illustrated embodiment;
[0025] Figure 4 is a schematic diagram of uniformly adjusting the size ratio of multimedia content provided by an exemplary embodiment of the present application;
[0026] Figure 5 is a flowchart of a method for adjusting multimedia content provided by another exemplary embodiment of the present application;
[0027] Figure 6 is based on Figure 5 The illustrated embodiment provides a schematic diagram of adjusting the size ratio of multimedia content by adjusting controls;
[0028] Figure 7 is a flowchart of a method for adjusting multimedia content provided by another exemplary embodiment of the present application;
[0029] Figure 8 is based on Figure 7 A schematic diagram of an interface for adjusting resolution by zooming in and out provided in the illustrated embodiment;
[0030] Figure 9 is based on Figure 7 A schematic diagram of an interface for content dragging operations provided by the illustrated embodiment;
[0031] Figure 10 is based on Figure 7 The illustrated embodiment provides a schematic diagram of sliding and switching previews of multimedia content in a content editing interface;
[0032] Figure 11 is based on Figure 7 A schematic diagram of an interface for publishing UGC content to an information interaction platform provided by the illustrated embodiment;
[0033] Figure 12 is a flowchart of a method for adjusting multimedia content provided by another exemplary embodiment of the present application;
[0034] Figure 13 This is a structural block diagram of a multimedia content adjustment device provided by an exemplary embodiment of the present application;
[0035] Figure 14 is a structural block diagram of a multimedia content adjustment device provided by another exemplary embodiment of the present application;
[0036] Figure 15 It is a structural block diagram of a terminal provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0037] In order to make the objectives, technical solutions and advantages of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.
[0038] First, a brief introduction to the terms involved in the embodiments of this application is given:
[0039] Multimedia content refers to information data content presented in the form of images or videos. Optionally, multimedia content can be stored in a user terminal and further utilized, such as being stored in the user terminal and published on an information interaction platform installed in the user terminal. Optionally, multimedia content can be collected by the terminal itself, such as captured by a terminal camera, or downloaded from the terminal. Optionally, the terminal includes an information interaction platform, and a target account logged into the terminal can publish multimedia content on the information interaction platform as user-generated content (UGC). This information interaction platform can be a platform provided in an instant messaging application, a platform provided in a social application, or a web page platform in a browser application, although this is not limited in this embodiment of the present application. Optionally, the target account can edit the multimedia content before publishing it, such as by performing editing operations such as cropping, adding filters, and adjusting the color tone. Optionally, other accounts on the information interaction platform can view the multimedia content published by the target account. These other accounts can be accounts associated with the target account or accounts that are unilaterally following the target account.
[0040] Optionally, the above-mentioned information interaction platform can be implemented as a social platform in the form of Moments, Weibo, Video Account, etc. In the embodiment of the present application, the above-mentioned information interaction platform is implemented as a Video Account as an example for explanation. The Video Account is a platform provided in the instant messaging application for sharing UGC content in the form of following. That is, after account A follows account B, it can read the UGC content posted by account B on the Video Account platform. Optionally, the UGC content posted by account C that account A does not follow can appear randomly on the Video Account platform of account A, or it can appear on the Video Account platform of account A in the form of popular content.
[0041] Optionally, the UGC content published in the video account includes at least one of multimedia content and descriptive content. When the UGC content includes multimedia content, it may include video-type multimedia content or image-type multimedia content.
[0042] It is worth noting that in the above examples, the target account publishes multimedia content on the information interaction platform as an example. The target account can also send multimedia content to friend accounts, and only the friend accounts that receive the multimedia content can read the multimedia content; or, the target account can also send multimedia content to a chat group, and only the group accounts in the chat group can read the multimedia content.
[0043] Optionally, in an embodiment of the present application, the UGC content published by the target account includes at least two multimedia contents, such as: the UGC content published by the target account includes 3 images. When editing the at least two multimedia contents, the size ratio of the at least two multimedia contents is adjusted to the same size ratio in a synchronous manner, that is, when the size ratio of a single multimedia content is adjusted, the other multimedia contents are synchronously adjusted to the same size ratio.
[0044] Figure 1 A block diagram of a computer system structure provided by an exemplary embodiment of the present application is shown. The computer system 100 includes: a first terminal 120, a server 140 and a second terminal 160.
[0045] The first terminal 120 runs an information interaction platform that supports the publishing of multimedia content. The first terminal 120 is a terminal used by the first user. Optionally, the first user accesses the information interaction platform by logging into a first account. The first user can edit the multimedia content in the multimedia content editing interface of the information interaction platform. The published multimedia content can be viewed by other user accounts, or the published multimedia content can only be viewed by the first account. Optionally, accounts that can view the multimedia content can interact with the first account based on the multimedia content, such as commenting on or liking the multimedia content. Optionally, the multimedia content is captured by the first terminal 120 through a camera, or the multimedia content is downloaded by the first terminal 120.
[0046] The first terminal 120 is connected to the server 140 via a wireless network or a wired network.
[0047] Server 140 includes at least one of a single server, multiple servers, a cloud computing platform, and a virtualization center. Illustratively, server 140 includes a processor 144 and memory 142. Memory 142 further includes a display module 1421, a receiving module 1422, and an acquisition module 1423. Server 140 is used to provide backend services for social programs, such as multimedia content selection, editing, storage, and information publishing and acquisition services.
[0048] The second terminal 160 is connected to the server 140 via a wireless network or a wired network.
[0049] Optionally, the server 140 undertakes the main computing work, and the first terminal 120 and the second terminal 160 undertake the secondary computing work; or, the server 140 undertakes the secondary computing work, and the first terminal 120 and the second terminal 160 undertake the main computing work; or, a distributed computing architecture is used among the server 140, the first terminal 120 and the second terminal 160 for collaborative computing.
[0050] The second terminal 160 runs an information interaction platform that supports the publishing of multimedia content. The second terminal 160 is used by the second user. Optionally, the information interaction platforms running on the first terminal 120 and the second terminal 160 are the same or different. Optionally, the second user logs into the information interaction platform using a second account. The second account and the first account are associated, unassociated, or have a temporary communication relationship on the information interaction platform. Optionally, the second account can view multimedia content published by the first account on the information interaction platform, or the second account can also publish multimedia content on the information interaction platform.
[0051] The first terminal 120 can generally refer to one of multiple terminals, and the second terminal 160 can generally refer to one of multiple terminals. This embodiment uses the first terminal 120 and the second terminal 160 as examples. Optionally, the first terminal 120 and the second terminal 160 can be of the same or different device types. These device types include at least one of a smartphone, a tablet computer, an e-book reader, an MP3 player, an MP4 player, a laptop computer, and a desktop computer. The following embodiments illustrate the terminals as smartphones and personal computers.
[0052] Those skilled in the art will appreciate that the number of the above-mentioned terminals may be more or less. For example, the above-mentioned terminal may be only one, or the above-mentioned terminals may be dozens or hundreds, or a larger number. The embodiments of the present application do not limit the number of terminals and device types.
[0053] Figure 2 This is a flowchart of a method for adjusting multimedia content provided by an exemplary embodiment of the present application, which is described by taking the method applied in a terminal as an example. Figure 2 As shown, the method includes:
[0054] Step 201: receiving a multimedia content selection operation, where the multimedia content selection operation is used to select n multimedia contents to be edited, where n≥2.
[0055] Optionally, the multimedia content selection operation includes at least one of the following selection operations:
[0056] First, n multimedia contents are selected from the multimedia contents stored in the terminal as the multimedia contents to be edited;
[0057] Optionally, the multimedia content stored in the terminal can be multimedia content collected by the terminal itself, or multimedia content obtained by the terminal through downloading, transmission, etc. Optionally, the multimedia content is stored in the terminal album, and the terminal album is called in the content publishing interface of the information interaction platform to read the multimedia content in the terminal album and select n multimedia content.
[0058] For illustration, please refer to Figure 3 , select the content publishing control 310 in the content publishing interface 300 of the information interaction platform, so that the content selection bar 320 is displayed. The content selection bar 320 includes a shooting option 321 and an album reading option 322. When the album reading option 322 is selected, the terminal album is called and the multimedia content selection interface 330 is displayed. In the multimedia content selection interface 330, n multimedia contents are selected, so that the n multimedia contents are used as the multimedia contents to be edited.
[0059] Second, select n multimedia contents published by other accounts in the information interaction platform;
[0060] Optionally, n multimedia contents posted by other accounts are selected by forwarding, or by directly selecting. Optionally, the n multimedia contents may be posted by the same account or by at least two different accounts. Optionally, when the n multimedia contents are posted by the same account, the n multimedia contents may be posted by the other account within a single UGC content or by the other account within multiple UGC content.
[0061] Optionally, the content types of the n multimedia contents to be edited include at least one of an image type and a video type, that is, all of the n multimedia contents may be images, or all of the n multimedia contents may be videos, or some of the n multimedia contents may be images and the other parts may be videos. This is not limited in the embodiments of the present application.
[0062] Step 202: Displaying an editing interface for multimedia content, where the editing interface includes n multimedia content selected by the multimedia content selection operation.
[0063] Optionally, the multimedia content editing interface is used to perform editing operations on the multimedia content, wherein the editing operations include at least one of a size ratio adjustment operation, a zoom operation, a resolution adjustment operation, a filter setting operation, and an image parameter adjustment operation.
[0064] Optionally, the multimedia content editing interface includes a preview area and n reduced display areas, wherein the preview area is used to edit the selected multimedia content, and the reduced display area is used to display the adjusted styles of the n multimedia content. Optionally, the n reduced display areas can be fully displayed in the editing interface, or can be displayed in a fluid manner in the editing interface by sliding switching.
[0065] Optionally, when receiving a selection operation on a target reduced display area among the n reduced display areas, that is, when receiving a selection operation on one of the n multimedia contents, the selected multimedia content is displayed in the preview area, so that the selected multimedia content can be edited in the preview area. Schematically, when the i-th multimedia is selected, the i-th multimedia content is displayed in the preview interface, so that the i-th multimedia content can be edited, 1≤i≤n.
[0066] Optionally, the editing operation on the i-th multimedia content can be synchronized with other multimedia content, that is, the same editing operation can be performed on other multimedia content, or part of the editing operation can be synchronized with other multimedia content. Illustratively, in the embodiment of the present application, the size ratio adjustment operation is synchronized with other multimedia content, and the same ratio is adjusted as that of the i-th multimedia content.
[0067] Optionally, the n multimedia contents may be arranged in the editing interface in the order in which they were selected, or in a random order, or in order according to the original size ratio. The embodiment of the present application does not limit the arrangement order of the n multimedia contents.
[0068] Step 203: Obtain the content size ratio of the i-th multimedia content in the editing interface, 1≤i≤n.
[0069] Optionally, the content size ratio of the i-th multimedia content may be an adjusted size ratio or an unadjusted size ratio.
[0070] Optionally, the i-th multimedia content may be the first multimedia content among n multimedia contents, or the last multimedia content among n multimedia contents, or any random multimedia content among n multimedia contents, or any selected multimedia content among n multimedia contents.
[0071] Optionally, a content size ratio of the i-th multimedia content is obtained. Optionally, in response to the size ratio of the i-th multimedia content being within a size ratio range, the size ratio of the i-th multimedia content is obtained as the content size ratio. Optionally, the size ratio range includes a range between a first size ratio and a second size ratio. Then, in response to the size ratio of the i-th multimedia content being less than the first size ratio, the first size ratio is used as the content size ratio of the i-th multimedia content; or, in response to the size ratio of the i-th multimedia content being greater than the second size ratio, the second size ratio is used as the content size ratio of the i-th multimedia content. When the first size ratio is used as the content size ratio of the i-th multimedia content, the middle portion of the i-th multimedia content is obtained by cropping at the first size ratio; and when the second size ratio is used as the content size ratio of the i-th multimedia content, the middle portion of the i-th multimedia content is obtained by cropping at the second size ratio.
[0072] Optionally, the size ratio of the i-th multimedia content may also be a ratio obtained by adjusting the size ratio. That is, an adjustment control is displayed on the i-th multimedia content, and a scale adjustment operation is received on the adjustment control. The target size ratio obtained by the scale adjustment operation is determined as the content size ratio of the i-th multimedia content. Optionally, in response to the target size being within a size ratio range, the target size ratio obtained by the scale adjustment operation is determined as the content size ratio of the i-th multimedia content.
[0073] Illustratively, the size ratio range is any size range within 3:3.5 to 16:9. Then, when the target size is 1:1, 1:1 is determined as the content size ratio of the i-th multimedia content. Optionally, the ratio adjustment operation can only adjust the i-th multimedia content within the size ratio range.
[0074] Step 204 : Adjust the other multimedia contents in the n multimedia contents in the same proportion according to the content size ratio.
[0075] Optionally, other multimedia contents are proportionally compressed according to the content size ratio, or other multimedia contents are cropped according to the content size ratio.
[0076] In the embodiments of the present application, cropping other multimedia content based on the content size ratio is used as an example for explanation. That is, based on the content size ratio, the other multimedia content is cropped to the same size ratio. Optionally, when cropping other multimedia content, the center point of the multimedia content can be used as the cropping center to obtain the largest area with the same size ratio as the content. Alternatively, any point in the multimedia content can be used as the cropping center to obtain the largest area with the same size ratio as the content.
[0077] In summary, the multimedia content adjustment method provided in this embodiment, when the multimedia content editing interface includes n multimedia contents to be edited, obtains the content size ratio of the i-th multimedia content and adjusts the other multimedia contents to the same ratio, thereby achieving unified adjustment of the size ratio of the multimedia contents, improving the adjustment efficiency before the multimedia content is released, and avoiding the problem of a cumbersome adjustment process caused by adjusting individual multimedia contents one by one.
[0078] Indicative, Figure 4 FIG. 1 is a schematic diagram of uniformly adjusting the size ratio of multimedia content provided by an exemplary embodiment of the present application, such as Figure 4 As shown, an information interaction platform is running on the terminal. Taking the multimedia content including pictures published by the user on the information interaction platform as an example, after the user selects the target picture, the information interaction platform enters the multimedia content preview interface, such as Figure 4As shown, multimedia content preview interface 400 displays a cropping icon 401, an image 402, a thumbnail 403 corresponding to image 402, thumbnails 404 of other selected images, and the sequence number 405 of the current image. In preview interface 400, the user can edit the uploaded image, such as adjusting the image's size ratio. By pressing and holding cropping icon 401, the user can customize the size ratio of image 402. For example, if the user adjusts the size ratio of image 402 to 16:9, the other three selected images will be cropped to a 16:9 size ratio.
[0079] Optionally, when the image size ratio selected by the user exceeds the maximum size ratio that the information interaction platform can display, the information interaction platform crops the image according to the maximum size ratio; when the image size ratio selected by the user is smaller than the minimum size ratio that the information interaction platform can display, the information interaction platform crops the image according to the minimum size ratio.
[0080] like Figure 4 As shown, in the preview interface 410, the serial number 407 of the selected picture and the completion control 408 are displayed. Schematically, the size ratio of the selected picture 406 is consistent with that of the picture 402. After the user triggers the completion control 408, the four pictures can be published on the information interaction platform.
[0081] In an optional embodiment, before determining the content size ratio of the i-th multimedia content, a selection operation is first performed on the i-th multimedia content. Figure 5 This is a flowchart of a method for adjusting multimedia content provided by another exemplary embodiment of the present application, which is described by taking the method applied in a terminal as an example. Figure 5 As shown, the method includes:
[0082] Step 501: Receive a multimedia content selection operation, where the multimedia content selection operation is used to select n multimedia contents to be edited, where n≥2.
[0083] Optionally, the multimedia content selection operation includes at least one of the following selection operations:
[0084] First, n multimedia contents are selected from the multimedia contents stored in the terminal as the multimedia contents to be edited;
[0085] Second, select n multimedia contents published by other accounts in the information interaction platform.
[0086] Step 502: Displaying an editing interface for multimedia content, where the editing interface includes n multimedia content selected by the multimedia content selection operation.
[0087] Optionally, the multimedia content editing interface is used to perform editing operations on the multimedia content, wherein the editing operations include at least one of a size ratio adjustment operation, a zoom operation, a resolution adjustment operation, a filter setting operation, and an image parameter adjustment operation.
[0088] Optionally, the multimedia content editing interface includes a preview area and n reduced display areas, wherein the preview area is used to edit the selected multimedia content, and the reduced display area is used to display the adjusted styles of the n multimedia content. Optionally, the n reduced display areas can be fully displayed in the editing interface, or can be displayed in a fluid manner in the editing interface by sliding switching.
[0089] Step 503: Receive a selection operation for the i-th multimedia content, 1≤i≤n.
[0090] Optionally, the selection operation for the i-th multimedia content may be to select the reduced display area corresponding to the i-th multimedia content from among n reduced display areas, or to slide in the preview area to select the i-th multimedia content from among n multimedia contents.
[0091] Optionally, n multimedia contents are arranged in the order of selection to determine the i-th multimedia content selected; or, n multimedia contents are arranged in a random order to determine the i-th multimedia content selected; or, n multimedia contents are arranged in the order in which they are arranged in the terminal album to determine the i-th multimedia content selected; or, n multimedia contents are arranged in order according to their original size ratio, such as in descending order according to their original size ratio to determine the i-th multimedia content selected.
[0092] Step 504: Display the i-th multimedia content in the preview area, and display an adjustment control on the side of the preview area corresponding to the i-th multimedia content.
[0093] Optionally, the editing interface includes a preview area for displaying the multimedia content to be edited. Optionally, the adjustment control is used to adjust the content size ratio of the i-th multimedia content by cropping.
[0094] Optionally, the adjustment control is located on two opposite sides of the i-th multimedia content, or the adjustment control is located on two adjacent sides of the i-th multimedia content, or the adjustment control is located on any side of the i-th multimedia content, or the adjustment control is located on every side of the i-th multimedia content. The embodiment of the present application does not limit the display position of the adjustment control.
[0095] Step 505: Receive a proportional adjustment operation on the adjustment control.
[0096] Optionally, the dragging operation of the adjustment control is used as a proportional adjustment operation for the i-th multimedia content. Schematically, by dragging the adjustment control, the position of the adjustment control is adjusted, thereby cropping the multimedia content outside the area where the adjustment control is located, and retaining the multimedia content within the area where the adjustment control is located as the cropped i-th multimedia content.
[0097] For illustration, please refer to Figure 6 The editing interface 600 includes a preview area 610, in which an image 620 to be edited is displayed. An adjustment control 621 is displayed on the side of the preview area 610 corresponding to the image 620, and a drag operation on the adjustment control 621 is received to adjust the content size ratio of the image 620.
[0098] Step 506: Determine the target size ratio obtained by the ratio adjustment operation as the content size ratio of the i-th multimedia content.
[0099] Optionally, in response to the target size ratio being within the size ratio range, the target size ratio obtained by the ratio adjustment operation is determined as the content size ratio of the i-th multimedia content.
[0100] Optionally, the size ratio range includes a range between a first size ratio and a second size ratio. If the response-target size ratio is smaller than the first size ratio, the first size ratio is used as the content size ratio of the i-th multimedia content; or, if the response-target size ratio is larger than the second size ratio, the second size ratio is used as the content size ratio of the i-th multimedia content.
[0101] Step 507 : Adjust the other multimedia contents in the n multimedia contents in the same proportion according to the content size ratio.
[0102] Optionally, for target multimedia content among other multimedia content, the horizontal and vertical ratios and aspect ratios of the target multimedia content are obtained. Optionally, in response to a first similarity between the horizontal and vertical ratio and the content size ratio being greater than a second similarity between the aspect ratio and the content size ratio, the horizontal and vertical ratio is adjusted in proportion to the content size ratio; or, in response to a first similarity between the aspect ratio and the content size ratio being less than a second similarity between the aspect ratio and the content size ratio, the aspect ratio is adjusted in proportion to the content size ratio.
[0103] Schematically, the content size ratio is 3:2, and the aspect ratio of the target multimedia content is 2:1, that is, the aspect ratio of the target multimedia content is 1:2. Therefore, the aspect ratio of the target multimedia content is adjusted to 3:2. Optionally, in the process of adjusting the aspect ratio, the target multimedia content is cropped to obtain the maximum area with an aspect ratio of 3:2 as the cropping result of the target multimedia content.
[0104] Similarly, the content size ratio is 3:2, and the aspect ratio of the target multimedia content is 1:2, that is, the aspect ratio of the target multimedia content is 2:1. Therefore, the aspect ratio of the target multimedia content is adjusted to 3:2. Optionally, in the process of adjusting the aspect ratio, the target multimedia content is cropped to obtain the maximum area with an aspect ratio of 3:2 as the cropping result of the target multimedia content.
[0105] In summary, the multimedia content adjustment method provided in this embodiment, when the multimedia content editing interface includes n multimedia contents to be edited, obtains the content size ratio of the i-th multimedia content and adjusts the other multimedia contents to the same ratio, thereby achieving unified adjustment of the size ratio of the multimedia contents, improving the adjustment efficiency before the multimedia content is released, and avoiding the problem of a cumbersome adjustment process caused by adjusting individual multimedia contents one by one.
[0106] The method provided in this embodiment first selects the i-th multimedia content, obtains the content size ratio of the i-th multimedia content, and uniformly adjusts other multimedia content to the same ratio, thereby improving the adjustment efficiency before multimedia content is released.
[0107] In an optional embodiment, after adjusting other multimedia contents in the same proportion, the display area of the multimedia contents may also be adjusted. Figure 7 This is a flowchart of a method for adjusting multimedia content provided by another exemplary embodiment of the present application, which is described by taking the method applied in a terminal as an example. Figure 7 As shown, the method includes:
[0108] Step 701: Receive a multimedia content selection operation, where the multimedia content selection operation is used to select n multimedia contents to be edited, where n≥2.
[0109] Optionally, the multimedia content selection operation includes at least one of the following selection operations:
[0110] First, n multimedia contents are selected from the multimedia contents stored in the terminal as the multimedia contents to be edited;
[0111] Second, select n multimedia contents published by other accounts in the information interaction platform.
[0112] Step 702: Display an editing interface for multimedia content, where the editing interface includes n multimedia content selected by the multimedia content selection operation.
[0113] Optionally, the multimedia content editing interface is used to perform editing operations on the multimedia content, wherein the editing operations include at least one of a size ratio adjustment operation, a zoom operation, a resolution adjustment operation, a filter setting operation, and an image parameter adjustment operation.
[0114] Optionally, the multimedia content editing interface includes a preview area and n reduced display areas, wherein the preview area is used to edit the selected multimedia content, and the reduced display area is used to display the adjusted styles of the n multimedia content. Optionally, the n reduced display areas can be fully displayed in the editing interface, or can be displayed in a fluid manner in the editing interface by sliding switching.
[0115] Step 703: Obtain the content size ratio of the i-th multimedia content in the editing interface, 1≤i≤n.
[0116] Optionally, the content size ratio of the i-th multimedia content may be an adjusted size ratio or an unadjusted size ratio.
[0117] Optionally, the size ratio of the i-th multimedia content may also be a ratio obtained by adjusting the size ratio. That is, an adjustment control is displayed on the i-th multimedia content, and a scale adjustment operation is received on the adjustment control. The target size ratio obtained by the scale adjustment operation is determined as the content size ratio of the i-th multimedia content. Optionally, in response to the target size being within a size ratio range, the target size ratio obtained by the scale adjustment operation is determined as the content size ratio of the i-th multimedia content.
[0118] Step 704 : Adjust the other multimedia contents in the n multimedia contents in the same proportion according to the content size ratio.
[0119] Optionally, other multimedia contents are proportionally compressed according to the content size ratio, or other multimedia contents are cropped according to the content size ratio.
[0120] In the embodiment of the present application, cropping of other multimedia content according to the content size ratio is taken as an example for explanation.
[0121] Step 705: Receive a display area adjustment operation for the kth multimedia content, where 1≤k≤n.
[0122] Optionally, the display area adjustment operation can be implemented as at least one of a resolution adjustment operation and a content dragging operation. That is, a resolution adjustment operation for the kth multimedia content is received, where the resolution adjustment operation is used to adjust the display area of the multimedia content by setting the display resolution of the kth multimedia content; and / or a content dragging operation for the kth multimedia content is received, where the content dragging operation is used to adjust the display area of the kth multimedia content.
[0123] Step 706 : determining the display area of the k-th multimedia content based on the content size ratio, and obtaining a cropping result of the k-th multimedia content.
[0124] Schematically, the resolution adjustment operation and the content dragging operation are schematically explained respectively. First, the resolution adjustment operation is explained. The resolution adjustment operation can be adjusted by directly inputting the resolution or by scaling the image. Figure 8 As shown, it shows a schematic diagram of an interface for adjusting the resolution by zooming in and out provided by an exemplary embodiment of the present application. The editing interface 800 includes a preview area 810, and an image 811 is displayed in the preview area 810. The image 811 is enlarged in the direction of the arrow to adjust the resolution of the image 811, and the part within the adjustment box 820 is used as the cropping result of the image 811.
[0125] Secondly, the content dragging operation is schematically explained, such as Figure 9 As shown, it shows an interface schematic diagram of the content dragging operation provided by an exemplary embodiment of the present application. The editing interface 900 includes a preview area 910, and the preview area 910 displays an image 911. By dragging the image 911, the part of the image 911 within the adjustment box 920 is adjusted, and the part within the adjustment box 920 is used as the cropping result of the image 911.
[0126] Optionally, the n multimedia contents are multimedia contents to be published in the information interaction platform. After the n multimedia contents are edited, the user can edit the description of the UGC content and preview the edited multimedia contents. For example, please refer to Figure 10 In the description content editing interface 1010, preview images 1020 of n multimedia contents are displayed. The user can edit the description content in the description content editing area 1030. When the user selects the preview image 1020, a preview interface 1040 is displayed. In the preview interface 1040, the user can switch between the previews of multiple multimedia contents by sliding.
[0127] Optionally, after editing the UGC content, the user can click the publish control to publish the UGC content to the information exchange platform. For an example, please refer to Figure 11 After the user edits the description content in the description content editing interface 1110, he clicks the publish control 1111 to publish the UGC content including the multimedia content to the information interaction platform.
[0128] In summary, the multimedia content adjustment method provided in this embodiment, when the multimedia content editing interface includes n multimedia contents to be edited, obtains the content size ratio of the i-th multimedia content and adjusts the other multimedia contents to the same ratio, thereby achieving unified adjustment of the size ratio of the multimedia contents, improving the adjustment efficiency before the multimedia content is released, and avoiding the problem of a cumbersome adjustment process caused by adjusting individual multimedia contents one by one.
[0129] The method provided in this embodiment can adjust the display area of a single multimedia content after synchronously adjusting the size ratio, thereby displaying the portion of each multimedia content that needs to be displayed while ensuring that the size ratio of the multimedia content is consistent, thereby improving the adjustment efficiency of the multimedia content.
[0130] Figure 12 This is a flowchart of a method for adjusting multimedia content provided by another exemplary embodiment of the present application, which is described by taking the application of the process in a terminal as an example. Figure 12 As shown, the process includes:
[0131] Step 1201: capture video / photos as multimedia content.
[0132] Optionally, in this embodiment, multimedia content is taken as content collected by the terminal as an example for description, that is, the terminal takes photos through a camera, or the terminal takes videos through a camera.
[0133] Step 1202: Select the video / photo to be added in the album.
[0134] Optionally, at least two multimedia contents to be added are selected in the album. The at least two multimedia contents may both be videos, both be photos, or may be partly videos and partly photos. This embodiment of the present application does not limit this.
[0135] Step 1203, enter the editing interface.
[0136] Optionally, the editing interface is used to edit the selected multimedia content, and the editing methods include size ratio adjustment, filter adjustment, resolution adjustment, color tone adjustment, etc.
[0137] Step 1204 , determining whether the first multimedia content exceeds the range of 16:9 to 3:3.5.
[0138] Step 1205: If the ratio is less than 3:3.5, the image is automatically cropped to a 3:3.5 ratio; if the ratio exceeds 16:9, the image is automatically cropped to a 16:9 ratio.
[0139] Step 1206: If it is within the range of 16:9 to 3:3.5, use the actual ratio.
[0140] Optionally, the above-mentioned size ratio range is only an illustrative example. In actual operation, the size ratio range can also be implemented as other ranges. The size ratio range is a pre-set range.
[0141] Step 1207: Receive a size ratio adjustment operation on the adjustment button.
[0142] Optionally, according to the size ratio adjustment operation of the first multimedia content, other multimedia contents are adjusted in the same proportion. The specific adjustment method is as described above. Figure 2 、 Figure 5 as well as Figure 7 The above has been described in the illustrated embodiment and will not be described again here.
[0143] Step 1208, click Finish to enter the publishing page.
[0144] Optionally, the user can edit the description content in the UGC content on the publishing page.
[0145] Step 1209, publish.
[0146] In summary, the multimedia content adjustment method provided in this embodiment, when the multimedia content editing interface includes n multimedia contents to be edited, obtains the content size ratio of the i-th multimedia content and adjusts the other multimedia contents to the same ratio, thereby achieving unified adjustment of the size ratio of the multimedia contents, improving the adjustment efficiency before the multimedia content is released, and avoiding the problem of a cumbersome adjustment process caused by adjusting individual multimedia contents one by one.
[0147] Figure 13 This is a structural block diagram of a multimedia content adjustment device provided by an exemplary embodiment of the present application, and the device is applied to a terminal as an example for explanation. Figure 13 As shown, the device includes: a receiving module 1310, a display module 1320, an acquisition module 1330 and an adjustment module 1340;
[0148] The receiving module 1310 is configured to receive a multimedia content selection operation, wherein the multimedia content selection operation is configured to select n multimedia contents to be edited, wherein the content type of the multimedia contents includes at least one of an image type and a video type, and n≥2;
[0149] A display module 1320 is configured to display an editing interface of the multimedia content, wherein the editing interface includes the n multimedia contents selected by the multimedia content selection operation;
[0150] An acquisition module 1330 is configured to acquire a content size ratio of the i-th multimedia content in the editing interface, where 1≤i≤n;
[0151] The adjustment module 1340 is configured to adjust the other multimedia contents in the n multimedia contents in the same proportion according to the content size ratio.
[0152] In an optional embodiment, an adjustment control is displayed on the i-th multimedia content;
[0153] The receiving module 1310 is further configured to receive a proportional adjustment operation on the adjustment control;
[0154] The adjusting module 1340 is further configured to determine the target size ratio obtained by the ratio adjustment operation as the content size ratio of the i-th multimedia content.
[0155] In an optional embodiment, the adjustment module 1340 is further configured to, in response to the target size ratio being within a size ratio range, determine the target size ratio obtained by the ratio adjustment operation as the content size ratio of the i-th multimedia content.
[0156] In an optional embodiment, the size ratio range includes a range between the first size ratio and the second size ratio;
[0157] The adjusting module 1340 is further configured to, in response to a size ratio of the i-th multimedia content being smaller than the first size ratio, use the first size ratio as the content size ratio of the i-th multimedia content;
[0158] or,
[0159] The adjusting module 1340 is further configured to, in response to the size ratio of the i-th multimedia content being greater than the second size ratio, use the second size ratio as the content size ratio of the i-th multimedia content.
[0160] In an optional embodiment, the editing interface includes a preview area, and the preview area is used to display the multimedia content to be edited;
[0161] The receiving module 1310 is further configured to receive a selection operation on the i-th multimedia content;
[0162] The display module 1320 is further configured to display the i-th multimedia content in the preview area, and to display the adjustment control on the side of the preview area corresponding to the i-th multimedia content, wherein the adjustment control is configured to adjust the content size ratio of the i-th multimedia content by cropping.
[0163] In an optional embodiment, the acquisition module 1330 is further configured to acquire, for the target multimedia content in the other multimedia content, the aspect ratio and the width-to-height ratio of the target multimedia content;
[0164] The adjustment module 1340 is further configured to adjust the aspect ratio in proportion to the content size ratio in response to a first approximation between the aspect ratio and the content size ratio being greater than a second approximation between the aspect ratio and the content size ratio; or to adjust the aspect ratio in proportion to the content size ratio in response to the first approximation between the aspect ratio and the content size ratio being less than the second approximation between the aspect ratio and the content size ratio.
[0165] In an optional embodiment, the receiving module 1310 is further configured to receive a display area adjustment operation for the kth multimedia content, where 1≤k≤n;
[0166] like Figure 14 As shown, the device further includes:
[0167] The determination module 1350 is configured to determine a display area of the k-th multimedia content under the content size ratio, and obtain a cropping result of the k-th multimedia content.
[0168] In an optional embodiment, the receiving module 1310 is further configured to receive a resolution adjustment operation for the kth multimedia content, wherein the resolution adjustment operation is configured to adjust the display area of the multimedia content by setting the display resolution of the kth multimedia content.
[0169] In an optional embodiment, the receiving module 1310 is further configured to receive a content dragging operation on the k-th multimedia content, where the content dragging operation is used to adjust the display area of the k-th multimedia content.
[0170] In summary, the multimedia content adjustment device provided in this embodiment, when the multimedia content editing interface includes n multimedia contents to be edited, obtains the content size ratio of the i-th multimedia content and adjusts the other multimedia contents to the same ratio, thereby achieving unified adjustment of the size ratio of the multimedia contents, improving the adjustment efficiency before the multimedia content is released, and avoiding the problem of a cumbersome adjustment process caused by adjusting individual multimedia contents one by one.
[0171] It should be noted that the multimedia content adjustment device provided in the above embodiment is merely illustrated by the division of the aforementioned functional modules. In actual applications, the aforementioned functions can be assigned to different functional modules as needed, i.e., the internal structure of the device can be divided into different functional modules to perform all or part of the functions described above. Furthermore, the multimedia content adjustment device provided in the above embodiment and the multimedia content adjustment method embodiment are based on the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0172] Figure 15 The following is a block diagram of a terminal 1500 according to an exemplary embodiment of the present invention. Terminal 1500 may be a smartphone, tablet computer, MP3 player (Moving Picture Experts Group Audio Layer III), MP4 player (Moving Picture Experts Group Audio Layer IV), laptop computer, or desktop computer. Terminal 1500 may also be referred to as user equipment, portable terminal, laptop terminal, desktop terminal, or other similar names.
[0173] Typically, the terminal 1500 includes a processor 1501 and a memory 1502 .
[0174] The processor 1501 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1501 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), or PLA (Programmable Logic Array). The processor 1501 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 1501 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1501 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0175] Memory 1502 may include one or more computer-readable storage media, which may be non-transitory. Memory 1502 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices and flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in memory 1502 is used to store at least one instruction, which is executed by processor 1501 to implement the multimedia content adjustment method provided in the method embodiment of the present application.
[0176] In some embodiments, terminal 1500 may optionally include a peripheral device interface 1503 and at least one peripheral device. The processor 1501, memory 1502, and peripheral device interface 1503 may be connected via a bus or signal lines. Each peripheral device may be connected to peripheral device interface 1503 via a bus, signal lines, or circuit boards. Specifically, the peripheral device may include at least one of a radio frequency circuit 1504, a touchscreen display 1505, a camera 1506, an audio circuit 1507, a positioning component 1508, and a power supply 1509.
[0177] The peripheral device interface 1503 can be used to connect at least one I / O (Input / Output)-related peripheral device to the processor 1501 and the memory 1502. In some embodiments, the processor 1501, the memory 1502, and the peripheral device interface 1503 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1501, the memory 1502, and the peripheral device interface 1503 can be implemented on separate chips or circuit boards, which is not limited in this embodiment.
[0178] RF circuit 1504 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. RF circuit 1504 communicates with communication networks and other communication devices via electromagnetic signals. RF circuit 1504 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. RF circuit 1504 may optionally include an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. RF circuit 1504 may communicate with other terminals via at least one wireless communication protocol. Such wireless communication protocols include, but are not limited to, the World Wide Web, metropolitan area networks, intranets, various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and / or WiFi (Wireless Fidelity) networks. In some embodiments, RF circuit 1504 may also include circuitry related to Near Field Communication (NFC), although this application does not limit this.
[0179] The display screen 1505 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 1505 is a touch screen display, the display screen 1505 also has the ability to collect touch signals on the surface or above the surface of the display screen 1505. The touch signal can be input as a control signal to the processor 1501 for processing. In this case, the display screen 1505 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, there can be one display screen 1505, which is set on the front panel of the terminal 1500; in other embodiments, there can be at least two display screens 1505, which are respectively set on different surfaces of the terminal 1500 or in a folding design; in still other embodiments, the display screen 1505 can be a flexible display screen, which is set on the curved surface or folding surface of the terminal 1500. In fact, the display screen 1505 can also be set as a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 1505 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).
[0180] The camera assembly 1506 is used to capture images or videos. Optionally, the camera assembly 1506 includes a front camera and a rear camera. Typically, the front camera is arranged on the front panel of the terminal, and the rear camera is arranged on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 1506 may also include a flash. The flash can be a single-color temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.
[0181] The audio circuit 1507 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals that are input into the processor 1501 for processing, or input into the radio frequency circuit 1504 to achieve voice communication. For the purpose of stereo sound collection or noise reduction, there may be multiple microphones, each located in different parts of the terminal 1500. The microphone may also be an array microphone or an omnidirectional collection microphone. The speaker is used to convert electrical signals from the processor 1501 or the radio frequency circuit 1504 into sound waves. The speaker may be a traditional thin film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert electrical signals into sound waves audible to humans, but also convert electrical signals into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 1507 may also include a headphone jack.
[0182] The positioning component 1508 is used to locate the current geographical location of the terminal 1500 to implement navigation or LBS (Location Based Service).
[0183] Power supply 1509 is used to power various components in terminal 1500. Power supply 1509 can be AC power, DC power, a disposable battery, or a rechargeable battery. When power supply 1509 includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is charged via a wired line, while a wireless rechargeable battery is charged via a wireless coil. The rechargeable battery can also support fast charging technology.
[0184] In some embodiments, the terminal 1500 further includes one or more sensors 1510 , including but not limited to: an acceleration sensor 1511 , a gyroscope sensor 1512 , a pressure sensor 1513 , a fingerprint sensor 1514 , an optical sensor 1515 , and a proximity sensor 1516 .
[0185] The accelerometer 1511 can detect the magnitude of acceleration along the three coordinate axes of the coordinate system established by the terminal 1500. For example, the accelerometer 1511 can be used to detect the components of gravity acceleration along the three coordinate axes. The processor 1501 can control the touch screen display 1505 to display the user interface in a landscape or portrait view based on the gravity acceleration signal collected by the accelerometer 1511. The accelerometer 1511 can also be used to collect game or user motion data.
[0186] The gyroscope sensor 1512 can detect the orientation and rotation angle of the terminal 1500. It can work in conjunction with the accelerometer 1511 to collect the user's 3D movements on the terminal 1500. Based on the data collected by the gyroscope sensor 1512, the processor 1501 can implement the following functions: motion sensing (for example, changing the UI based on the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
[0187] The pressure sensor 1513 can be provided on the side frame of the terminal 1500 and / or below the touch screen display 1505. When the pressure sensor 1513 is provided on the side frame of the terminal 1500, it can detect the user's gripping signal of the terminal 1500, and the processor 1501 can perform left and right hand recognition or shortcut operations based on the gripping signal collected by the pressure sensor 1513. When the pressure sensor 1513 is provided below the touch screen display 1505, the processor 1501 controls the operable controls on the UI interface based on the user's pressure operation on the touch screen display 1505. The operable controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
[0188] The fingerprint sensor 1514 is used to collect the user's fingerprint. The processor 1501 identifies the user's identity based on the fingerprint collected by the fingerprint sensor 1514, or the fingerprint sensor 1514 identifies the user's identity based on the collected fingerprint. When the user's identity is identified as a trusted identity, the processor 1501 authorizes the user to perform relevant sensitive operations, such as unlocking the screen, viewing encrypted information, downloading software, making payments, and changing settings. The fingerprint sensor 1514 can be set on the front, back, or side of the terminal 1500. When a physical button or manufacturer logo is set on the terminal 1500, the fingerprint sensor 1514 can be integrated with the physical button or manufacturer logo.
[0189] Optical sensor 1515 is used to detect ambient light intensity. In one embodiment, processor 1501 can control the display brightness of touchscreen display 1505 based on the ambient light intensity detected by optical sensor 1515. Specifically, when the ambient light intensity is high, the display brightness of touchscreen display 1505 is increased; when the ambient light intensity is low, the display brightness of touchscreen display 1505 is decreased. In another embodiment, processor 1501 can also dynamically adjust the shooting parameters of camera assembly 1506 based on the ambient light intensity detected by optical sensor 1515.
[0190] Proximity sensor 1516, also known as a distance sensor, is typically located on the front panel of terminal 1500. Proximity sensor 1516 is used to detect the distance between the user and the front of terminal 1500. In one embodiment, when proximity sensor 1516 detects that the distance between the user and the front of terminal 1500 is gradually decreasing, processor 1501 controls touchscreen display 1505 to switch from the screen-on state to the screen-off state. When proximity sensor 1516 detects that the distance between the user and the front of terminal 1500 is gradually increasing, processor 1501 controls touchscreen display 1505 to switch from the screen-off state to the screen-on state.
[0191] Those skilled in the art will understand that Figure 15 The structure shown in the figure does not constitute a limitation on the terminal 1500, and the terminal 1500 may include more or fewer components than shown in the figure, or combine certain components, or adopt a different component arrangement.
[0192] Optionally, the computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a solid-state drive (SSD), or an optical disk. Among them, the random access memory may include a resistance random access memory (ReRAM) and a dynamic random access memory (DRAM). The serial numbers of the above embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0193] Those skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware, or by a program to instruct the relevant hardware, and the program may be stored in a computer-readable storage medium, which may be a read-only memory, a disk, or an optical disk, etc.
[0194] The above description is merely an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
Claims
1. A method for adjusting multimedia content, characterized in that: The method comprises: receiving a multimedia content selection operation, wherein the multimedia content selection operation is used to select n multimedia contents to be edited, wherein the content type of the multimedia contents is at least one of an image type and a video type, and n≥2; Displaying an editing interface for the multimedia content, wherein the editing interface includes the n multimedia contents selected by the multimedia content selection operation; the editing interface includes a preview area and n reduced display areas; Obtaining a content size ratio of the i-th multimedia content in the editing interface, where 1≤i≤n; the i-th multimedia content is displayed in a preview area of the editing page, an adjustment control is displayed on the corresponding i-th multimedia content in the preview area, and the content size ratio is obtained by adjusting the ratio on the adjustment control; the multimedia content is sorted in descending order according to their original size ratios; the content size ratio is within a size ratio range, the size ratio range including a range between a first size ratio and a second size ratio; if the ratio obtained by the ratio adjustment operation is less than the first size ratio, the content size ratio is the first size ratio; if the ratio obtained by the ratio adjustment operation is greater than the second size ratio, the content size ratio is the second size ratio; The other multimedia contents in the n multimedia contents are cropped in the same proportion according to the content size ratio, the reduced display area is used to display the adjusted styles of the n multimedia contents, and the n reduced display areas are fully displayed on the editing interface; The adjusting the other multimedia contents in the n multimedia contents in the same proportion according to the content size ratio includes: For target multimedia content among the other multimedia contents, obtaining the aspect ratio and width-to-height ratio of the target multimedia content; In response to a first approximation between the aspect ratio and the content size ratio being greater than a second approximation between the aspect ratio and the content size ratio, the aspect ratio is adjusted in proportion to the content size ratio; or, in response to the first approximation between the aspect ratio and the content size ratio being less than the second approximation between the aspect ratio and the content size ratio, the aspect ratio is adjusted in proportion to the content size ratio; in the process of adjusting the aspect ratio or the aspect ratio, the target multimedia content is cropped.
2. The method according to claim 1, characterized in that An adjustment control is displayed on the i-th multimedia content; The obtaining of the content size ratio of the i-th multimedia content in the editing interface includes: receiving a proportional adjustment operation on the adjustment control; The target size ratio obtained by the ratio adjustment operation is determined as the content size ratio of the i-th multimedia content.
3. The method according to claim 2, characterized in that Determining the target size ratio obtained by the ratio adjustment operation as the content size ratio of the i-th multimedia content includes: In response to the target size ratio being within the size ratio range, the target size ratio obtained by the ratio adjustment operation is determined as the content size ratio of the i-th multimedia content.
4. The method according to claim 3, characterized in that The size ratio range includes a range between the first size ratio and the second size ratio; The method further comprises: In response to a size ratio of the i-th multimedia content being smaller than the first size ratio, using the first size ratio as the content size ratio of the i-th multimedia content; or, In response to the size ratio of the i-th multimedia content being greater than the second size ratio, the second size ratio is used as the content size ratio of the i-th multimedia content.
5. The method according to claim 2, characterized in that The editing interface includes a preview area, and the preview area is used to display the multimedia content to be edited; Before receiving the proportional adjustment operation on the adjustment control, the method further includes: receiving a selection operation on the i-th multimedia content; The i-th multimedia content is displayed in the preview area, and the adjustment control is displayed on a side of the preview area corresponding to the i-th multimedia content.
6. The method according to any one of claims 1 to 5, characterized in that: After adjusting the other multimedia contents in the n multimedia contents in the same proportion according to the content size ratio, the method further includes: receiving a display area adjustment operation for the kth multimedia content, where 1≤k≤n; Under the content size ratio, a display area of the k-th multimedia content is determined to obtain a cropping result of the k-th multimedia content.
7. A multimedia content adjustment device, characterized in that: The device comprises: a receiving module, configured to receive a multimedia content selection operation, wherein the multimedia content selection operation is configured to select n multimedia contents to be edited, wherein the content type of the multimedia contents is at least one of an image type and a video type, and n≥2; a display module configured to display an editing interface for the multimedia content, wherein the editing interface includes the n multimedia contents selected by the multimedia content selection operation; the editing interface includes a preview area and n reduced display areas; an acquisition module, configured to acquire a content size ratio of the i-th multimedia content in the editing interface, where 1≤i≤n; the i-th multimedia content is displayed in a preview area of the editing page; an adjustment control is displayed on the corresponding i-th multimedia content in the preview area, and the content size ratio is adjusted based on a ratio adjustment operation performed on the adjustment control; the multimedia content is arranged in descending order according to their original size ratios; the content size ratio is within a size ratio range, the size ratio range including a range between a first size ratio and a second size ratio; if the ratio obtained by the ratio adjustment operation is less than the first size ratio, the content size ratio is the first size ratio; and if the ratio obtained by the ratio adjustment operation is greater than the second size ratio, the content size ratio is the second size ratio; an adjustment module, configured to crop other multimedia contents in the n multimedia contents in the same proportion according to the content size ratio, and the reduced display area is used to display the adjusted styles of the n multimedia contents; The adjusting the other multimedia contents in the n multimedia contents in the same proportion according to the content size ratio includes: For target multimedia content among the other multimedia contents, obtaining the aspect ratio and width-to-height ratio of the target multimedia content; In response to a first approximation between the aspect ratio and the content size ratio being greater than a second approximation between the aspect ratio and the content size ratio, the aspect ratio is adjusted in proportion to the content size ratio; or, in response to the first approximation between the aspect ratio and the content size ratio being less than the second approximation between the aspect ratio and the content size ratio, the aspect ratio is adjusted in proportion to the content size ratio; in the process of adjusting the aspect ratio or the aspect ratio, the target multimedia content is cropped.
8. The device according to claim 7, characterized in that An adjustment control is displayed on the i-th multimedia content; The receiving module is further configured to receive a proportional adjustment operation on the adjustment control; The adjustment module is further configured to determine the target size ratio obtained by the ratio adjustment operation as the content size ratio of the i-th multimedia content.
9. The device according to claim 8, characterized in that The adjustment module is further configured to, in response to the target size ratio being within a size ratio range, determine the target size ratio obtained by the ratio adjustment operation as the content size ratio of the i-th multimedia content.
10. The device according to claim 9, characterized in that The size ratio range includes a range between the first size ratio and the second size ratio; The adjustment module is further configured to, in response to a size ratio of the i-th multimedia content being smaller than the first size ratio, use the first size ratio as the content size ratio of the i-th multimedia content; or, The adjustment module is further configured to, in response to a size ratio of the i-th multimedia content being greater than the second size ratio, use the second size ratio as the content size ratio of the i-th multimedia content.
11. The device according to claim 7, characterized in that The editing interface includes a preview area, and the preview area is used to display the multimedia content to be edited; The receiving module is further configured to receive a selection operation on the i-th multimedia content before receiving the proportional adjustment operation on the adjustment control; The display module is further configured to display the i-th multimedia content in the preview area, and to display the adjustment control on a side of the preview area corresponding to the i-th multimedia content.
12. The device according to any one of claims 7 to 11, characterized in that The receiving module is further configured to receive a display area adjustment operation for the kth multimedia content, where 1≤k≤n; The device further includes a determining module configured to determine a display area of the kth multimedia content under the content size ratio, and obtain a cropping result of the kth multimedia content.
13. A computer device, characterized in that: The computer device includes: a processor and a memory, wherein the memory stores at least one instruction, at least one program, code set, or instruction set, and the at least one instruction, at least one program, code set, or instruction set is loaded and executed by the processor to implement the multimedia content adjustment method according to any one of claims 1 to 6.
14. A computer-readable storage medium, characterized in that The storage medium stores at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by the processor to implement the multimedia content adjustment method according to any one of claims 1 to 6.
15. A computer program product, characterized in that When the computer program product is run on a computer, the computer is enabled to execute the multimedia content adjustment method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Method and device for editing image
CN105096363A
Picture modification method and device
CN107092428A
Multimedia editing method and intelligent terminal
CN110494833A