Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
First, terms referred to in the embodiments of the present application are briefly described:
multimedia content: refers to the information data content presented in the form of images or videos. Alternatively, the multimedia content may be stored in a user terminal and further applied, such as: and storing the information in the user terminal and issuing the information in an information interaction platform installed in the user terminal. Alternatively, the multimedia content may be acquired by the terminal itself, such as: the shooting is carried out through a terminal camera, and the shooting can also be obtained through terminal downloading. Optionally, an information interaction platform corresponds to the terminal, and the target account logged in the terminal can publish the multimedia Content on the information interaction platform in the form of User Generated Content (UGC), where the information interaction platform may 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, and this is not limited in this embodiment of the present application. Optionally, the target account may also perform editing on the multimedia content before the multimedia content is released, such as editing operations of size clipping, filter adding, color tone adjustment, and the like. Optionally, other accounts on the information interaction platform can read the multimedia content published by the target account, and the other accounts may be accounts having an association relationship with the target account, or accounts paying attention to the target account unilaterally.
Optionally, the information interaction platform may be implemented as a social platform in the form of a circle of friends, a microblog, a video number, or the like, in this embodiment, the information interaction platform is implemented as a video number, and the video number is a platform provided in an instant messaging application program and used for sharing UGC content in a focused form, that is, after the account a focuses on the account B, the UGC content published by the account B can be read on the platform of the video number, and optionally, the UGC content published by the account C that is not focused on by the account a may randomly appear on the platform of the video number of the account a, or may appear on the platform of the video number of the account a in a form of popular content.
Optionally, the UGC content distributed in the video number includes at least one of multimedia content and description content, and when the UGC content includes multimedia content, the UGC content may include video-type multimedia content, and may also include image-type multimedia content.
It should be noted that, in the above example, the example that the target account distributes the multimedia content in the information interaction platform is taken as an example for explanation, the target account may also send the multimedia content to the friend account, and only the friend account that receives the multimedia content can read the multimedia content; or, the target account can also send the multimedia content to a chat group, and only the group account in the chat group can read the multimedia content.
Optionally, in this embodiment of the application, the UGC content issued by the target account includes at least two multimedia contents, such as: the UGC content issued by the target account comprises 3 images, and when at least two multimedia contents are edited, the at least two multimedia contents are adjusted to the same size proportion in a synchronous adjustment mode according to the size proportion of the at least two multimedia contents, namely, when the size proportion of a single multimedia content is adjusted, other multimedia contents are adjusted to the same size proportion synchronously.
Fig. 1 shows a block diagram of a computer system provided in an exemplary embodiment of the present application, where the computer system 100 includes: a first terminal 120, a server 140, and a second terminal 160.
The first terminal 120 runs an information interaction platform supporting the distribution of multimedia contents, and the first terminal 120 is a terminal used by a first user. Optionally, the first user enters the information interaction platform by logging in the first account, the first user may edit the multimedia content in an editing interface of the multimedia content in the information interaction platform, and the published multimedia content may be browsed by other user accounts, or the published multimedia content may be browsed only by the first account. Optionally, the account capable of viewing the multimedia content can interact with the first account based on the multimedia content, such as: comment or like. Optionally, the multimedia content is obtained by the first terminal 120 through camera shooting, or the multimedia content is obtained by downloading in the first terminal 120.
The first terminal 120 is connected to the server 140 through a wireless network or a wired network.
The server 140 includes at least one of a server, a plurality of servers, a cloud computing platform, and a virtualization center. Illustratively, the server 140 includes a processor 144 and a memory 142, the memory 142 in turn including a display module 1421, a receiving module 1422, and an obtaining module 1423. The server 140 is configured to provide background services for the social program, such as a multimedia content selection service, a multimedia content editing service, a multimedia content storage service, an information publishing and obtaining service, and the like.
The second terminal 160 is connected to the server 140 through a wireless network or a wired network.
Alternatively, the server 140 undertakes primary computational work and the first and second terminals 120, 160 undertake secondary computational work; alternatively, the server 140 undertakes the secondary computing work and the first terminal 120 and the second terminal 160 undertakes the primary computing work; alternatively, the server 140, the first terminal 120, and the second terminal 160 perform cooperative computing by using a distributed computing architecture.
The second terminal 160 operates an information interaction platform supporting the distribution of multimedia contents, and the second terminal 160 is a terminal used by a 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 in the information interaction platform through a second account, and the second account and the first account are in an association relationship, a non-association relationship or a temporary communication relationship in the information interaction platform. Optionally, the second account may view the multimedia content published by the first account on the information interaction platform, or the second account may also publish the multimedia content on the information interaction platform.
The first terminal 120 may generally refer to one of a plurality of terminals, and the second terminal 160 may generally refer to one of a plurality of terminals, and this embodiment is only illustrated by the first terminal 120 and the second terminal 160. Optionally, the device types of the first terminal 120 and the second terminal 160 are the same or different. The device types include: at least one of a smartphone, a tablet, an e-book reader, an MP3 player, an MP4 player, a laptop portable computer, and a desktop computer. The following embodiments are illustrated with the terminal including a smart hand and a personal computer.
Those skilled in the art will appreciate that the number of terminals described above may be greater or fewer. For example, the number of the terminals may be only one, or several tens or hundreds of the terminals, or more. The number of terminals and the type of the device are not limited in the embodiments of the present application.
Fig. 2 is a flowchart of a method for adjusting multimedia content according to an exemplary embodiment of the present application, which is described by taking the method as an example for being applied to a terminal, and as shown in fig. 2, the method includes:
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 is greater than or equal to 2.
Optionally, the multimedia content selection operation comprises at least one of the following selection operations:
firstly, selecting n multimedia contents from the stored multimedia contents in the terminal as multimedia contents to be edited;
optionally, the multimedia content stored in the terminal may be multimedia content acquired by the terminal itself, or multimedia content acquired by the terminal through downloading, transmission and other manners, and optionally, the multimedia content is stored in a terminal album, and the terminal album is called in a content publishing interface of the information interaction platform, so that the multimedia content in the terminal album is read, and n pieces of multimedia content are selected.
Referring to fig. 3, a content publishing control 310 is selected in a content publishing interface 300 of an information interaction platform, so that a 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, a terminal album is called, a multimedia content selection interface 330 is displayed, and n multimedia contents are selected in the multimedia content selection interface 330, so that the n multimedia contents are used as multimedia contents to be edited.
Secondly, selecting n multimedia contents issued by other accounts in the information interaction platform;
optionally, the n multimedia contents published by the other accounts are selected in a forwarding form, or the n multimedia contents published by the other accounts are selected in a direct selection form. Optionally, the n multimedia contents may be multimedia contents issued by the same account, or multimedia contents issued by at least two different accounts. Optionally, when the n multimedia contents are the multimedia contents issued by the same account, the n multimedia contents may be the multimedia contents issued by other accounts in a single UGC content, or the multimedia contents issued by other accounts in a plurality of UGC contents.
Optionally, the content type of the n multimedia contents to be edited includes at least one of an image type and a video type, that is, all of the n multimedia contents may be images, all of the n multimedia contents may be videos, a part of the n multimedia contents may be images, and the other part of the n multimedia contents may be videos, which is not limited in the embodiment of the present application.
Step 202, displaying an editing interface of the multimedia content, wherein the editing interface comprises n multimedia contents selected by the multimedia content selection operation.
Optionally, the editing interface of the multimedia content is configured to perform an editing operation on the multimedia content, where the editing operation includes at least one of a size scaling operation, a zooming operation, a resolution adjusting operation, a filter setting operation, and an image parameter adjusting operation.
Optionally, the editing interface of the multimedia content includes a preview area and n reduced display areas, where 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 contents, and optionally, the n reduced display areas may be completely displayed in the editing interface or may be flowingly displayed in the editing interface in a sliding switching manner.
Optionally, when a selection operation on a target reduced display area in the n reduced display areas is received, that is, when a selection operation on one multimedia content of the n multimedia contents is received, the selected multimedia content is displayed in the preview area, so that the selected multimedia content can be edited in the preview area, that is, when an ith multimedia content is selected, the ith multimedia content is displayed in the preview interface, so that the ith multimedia content is edited, and i is greater than or equal to 1 and less than or equal to n.
Optionally, the editing operation on the ith multimedia content may be synchronized to other multimedia contents, that is, the same editing operation is performed on other multimedia contents, or a part of the editing operation may be synchronized to other multimedia contents. Illustratively, in the embodiment of the present application, the resizing operation is synchronized to other multimedia contents, and the resizing operation is performed in the same proportion as the ith multimedia content.
Optionally, the n multimedia contents may be sequentially arranged in the editing interface according to a selected sequence, may also be arranged in a random sequence, and may also be sequentially arranged according to an original size ratio.
Step 203, obtaining the content size proportion of the ith multimedia content in the editing interface, wherein i is more than or equal to 1 and less than or equal to n.
Alternatively, the content size ratio of the ith multimedia content may be an adjusted size ratio or an unadjusted size ratio.
Optionally, the ith multimedia content may be a first multimedia content of the n multimedia contents, a last multimedia content of the n multimedia contents, a random multimedia content of the n multimedia contents, or a selected multimedia content of the n multimedia contents.
Optionally, a content size ratio of the ith multimedia content is obtained. Optionally, when the size ratio of the ith multimedia content is in the size ratio range, acquiring the size ratio of the ith multimedia content as the content size ratio, optionally, when the size ratio range includes a range between the first size ratio and the second size ratio, and when the size ratio of the ith multimedia content is smaller than the first size ratio, taking the first size ratio as the content size ratio of the ith multimedia content; or, in response to that the size proportion of the ith multimedia content is larger than the second size proportion, taking the second size proportion as the content size proportion of the ith multimedia content, wherein when the first size proportion is taken as the content size proportion of the ith multimedia content, the middle part content of the ith multimedia content is obtained by cutting in the first size proportion in a cutting mode; and when the second size proportion is used as the content size proportion of the ith multimedia content, the middle part content of the ith multimedia content is obtained by cutting in the second size proportion in a cutting mode.
Alternatively, the size ratio of the ith multimedia content may be a ratio adjusted by the scaling operation. Namely, an adjusting control is displayed on the ith multimedia content, the scale adjusting operation on the adjusting control is received, and the target size proportion obtained by adjusting the scale adjusting operation is determined as the content size proportion of the ith multimedia content. Optionally, in response to the target size being within the size scale range, the target size scale obtained by the scaling operation is determined as the content size scale of the ith multimedia content.
Illustratively, the size ratio range is 3: 3.5 to 16:9, when the target size is 1: 1, mixing 1: 1 is determined as a content size ratio of the ith multimedia content. Alternatively, the scaling operation can only scale the ith multimedia content within the size scale.
And step 204, adjusting other multimedia contents in the n multimedia contents in the same proportion according to the content size proportion.
Optionally, the other multimedia content is scaled down in a content size scale, or cropped in a content size scale.
In the embodiment of the present application, the example of clipping other multimedia contents according to the content size ratio is described, that is, the other multimedia contents are clipped to the same size ratio according to the content size ratio. Optionally, when the other multimedia content is cut, the maximum area in proportion to the size of the content may be obtained by cutting with the center point of the multimedia content as a cutting center, or the maximum area in proportion to the size of the content may be obtained by cutting with any point in the multimedia content as a cutting center.
In summary, according to the method for adjusting multimedia content provided by this embodiment, when the editing interface of the multimedia content includes n multimedia contents to be edited, the size ratio of the ith multimedia content is obtained, and other multimedia contents are adjusted in the same ratio, so that the size ratio of the multimedia contents is uniformly adjusted, the adjustment efficiency before the multimedia contents are issued is improved, and the problem that the adjustment process is complicated due to sequential adjustment of a single multimedia content is avoided.
Schematically, fig. 4 is a schematic diagram of uniformly adjusting the size ratio of multimedia content according to an exemplary embodiment of the present application, as shown in fig. 4, an information interaction platform is run on a terminal, taking the example that the multimedia content published on the information interaction platform by a user includes pictures, after the user selects a target picture, the information interaction platform enters a multimedia content preview interface, as shown in fig. 4, a cropping flag 401, a picture 402, a thumbnail 403 corresponding to the picture 402, thumbnails 404 of other selected pictures, and a serial number 405 of a current picture are displayed on a multimedia content preview interface 400. In the preview interface 400, the user may edit the picture to be uploaded, such as adjusting the size ratio of the picture. The user can custom adjust the size ratio of the picture 402 by pressing the cropping flag 401, for example, when the user adjusts the size ratio of the picture 402 to 16:9, the other three selected pictures are cropped at the size ratio of 16: 9.
Optionally, when the size ratio of the picture selected by the user exceeds the maximum size ratio displayable by the information interaction platform, the information interaction platform cuts the picture according to the maximum size ratio; and when the size proportion of the picture selected by the user is smaller than the minimum size proportion displayable by the information interaction platform, the information interaction platform cuts the picture according to the minimum size proportion.
As shown in fig. 4, in the preview interface 410, a sequence number 407 of the selected picture and a finish control 408 are displayed. Illustratively, the size ratio of the selected picture 406 is consistent with that of the picture 402, and after the user performs a trigger operation on the completion control 408, four pictures can be published on the information interaction platform.
In an alternative embodiment, before determining the content size ratio of the ith multimedia content, a selection operation is first performed on the ith multimedia content, fig. 5 is a flowchart of a method for adjusting multimedia content according to another exemplary embodiment of the present application, which is described by taking as an example that the method is applied to a terminal, as shown in fig. 5, the method includes:
step 501, receiving a multimedia content selection operation, where the multimedia content selection operation is used to select n multimedia contents to be edited, where n is greater than or equal to 2.
Optionally, the multimedia content selection operation comprises at least one of the following selection operations:
firstly, selecting n multimedia contents from the stored multimedia contents in the terminal as multimedia contents to be edited;
and secondly, selecting n multimedia contents issued by other accounts in the information interaction platform.
Step 502, displaying an editing interface of the multimedia content, wherein the editing interface comprises n multimedia contents selected by the multimedia content selection operation.
Optionally, the editing interface of the multimedia content is configured to perform an editing operation on the multimedia content, where the editing operation includes at least one of a size scaling operation, a zooming operation, a resolution adjusting operation, a filter setting operation, and an image parameter adjusting operation.
Optionally, the editing interface of the multimedia content includes a preview area and n reduced display areas, where 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 contents, and optionally, the n reduced display areas may be completely displayed in the editing interface or may be flowingly displayed in the editing interface in a sliding switching manner.
Step 503, receiving the selected operation for the ith multimedia content, i is more than or equal to 1 and less than or equal to n.
Alternatively, the operation of selecting the ith multimedia content may be to select a reduced display area corresponding to the ith multimedia content from the n reduced display areas, or to slide the reduced display area in the preview area, so as to select the ith multimedia content from the n multimedia contents.
Optionally, sequentially arranging the n multimedia contents in the selected order, thereby determining the selected ith multimedia content; or, the n multimedia contents are sequentially arranged in a random order, so that the selected ith multimedia content is determined; or, sequentially arranging the n multimedia contents in the arrangement sequence in the terminal album, thereby determining the selected ith multimedia content; or, sequentially arranging the n multimedia contents according to the original size proportion, such as: and sorting the selected ith multimedia content according to the original size proportion in a descending order.
And 504, displaying the ith multimedia content in the preview area, wherein an adjusting control is displayed on the side edge of the preview area corresponding to the ith multimedia content.
Optionally, the editing interface includes a preview area, and the preview area is used for displaying the multimedia content to be edited. Optionally, the adjusting control is used for adjusting the content size proportion of the ith multimedia content in a cutting mode.
Optionally, the adjustment controls are located on two opposite sides of the ith multimedia content, or the adjustment controls are located on two adjacent sides of the ith multimedia content, or the adjustment controls are located on any one side of the ith multimedia content, or the adjustment controls are located on each side of the ith multimedia content, and the display position of the adjustment controls is not limited in the embodiment of the present application.
And 505, receiving a proportion adjusting operation on the adjusting control.
Optionally, the dragging operation of the adjustment control is used as the proportional adjustment operation of the ith multimedia content, illustratively, the position of the adjustment control is adjusted by dragging the adjustment control, so that the multimedia content outside the range of the position area where the adjustment control is located is cut, and the multimedia content within the range of the position area where the adjustment control is located is reserved as the cut ith multimedia content.
Referring to fig. 6, an editing interface 600 includes a preview area 610, an image 620 to be edited is displayed in the preview area 610, an adjusting control 621 is displayed on a side of the preview area 610 corresponding to the image 620, and a dragging operation on the adjusting control 621 is received, so as to adjust a content size ratio of the image 620.
Step 506, the target size ratio obtained by the adjustment of the ratio adjustment operation is determined as the content size ratio of the ith multimedia content.
Optionally, in response to that the target size ratio is within the size ratio range, determining the target size ratio adjusted by the scaling operation as the content size ratio of the ith multimedia content.
Optionally, the size scale range includes a range between a first size scale and a second size scale, and in response to the target size scale being less than the first size scale, the first size scale is taken as a content size scale of the ith multimedia content; or, in response to the target size ratio being greater than the second size ratio, the second size ratio is taken as the content size ratio of the ith multimedia content.
In step 507, the other multimedia contents in the n multimedia contents are adjusted in the same proportion according to the content size proportion.
Optionally, for a target multimedia content in other multimedia contents, acquiring a horizontal-vertical ratio and a vertical-horizontal ratio of the target multimedia content, and optionally, in response to a first approximation degree of the horizontal-vertical ratio and the content size ratio being greater than a second approximation degree of the vertical-horizontal ratio and the content size ratio, performing same-scale adjustment on the horizontal-vertical ratio in the content size ratio; or, in response to a first similarity of the aspect ratio to the content size ratio being less than a second similarity of the aspect ratio to the content size ratio, scaling the aspect ratio by the content size ratio.
Illustratively, the content size ratio is 3: 2, the horizontal and vertical proportion of the target multimedia content is 2: 1, i.e. the aspect ratio of the target multimedia content is 1: therefore, the horizontal and vertical proportion of the target multimedia content is adjusted to 3: optionally, in the process of adjusting the horizontal-vertical ratio, the target multimedia content is cut to obtain a horizontal-vertical ratio of 3: 2 as a cropping result of the target multimedia content.
Similarly, the content size ratio is 3: 2, the horizontal and vertical proportion of the target multimedia content is 1: 2, i.e. the aspect ratio of the target multimedia content is 2: 1, therefore, the aspect ratio of the target multimedia content is adjusted to 3: optionally, in the process of adjusting the aspect ratio, the target multimedia content is cut to obtain an aspect ratio of 3: 2 as a cropping result of the target multimedia content.
In summary, according to the method for adjusting multimedia content provided by this embodiment, when the editing interface of the multimedia content includes n multimedia contents to be edited, the size ratio of the ith multimedia content is obtained, and other multimedia contents are adjusted in the same ratio, so that the size ratio of the multimedia contents is uniformly adjusted, the adjustment efficiency before the multimedia contents are issued is improved, and the problem that the adjustment process is complicated due to sequential adjustment of a single multimedia content is avoided.
In the method provided by the embodiment, after the ith multimedia content is selected, the content size proportion of the ith multimedia content is obtained, and other multimedia contents are uniformly adjusted in the same proportion, so that the adjustment efficiency before the multimedia content is issued is improved.
In an alternative embodiment, after performing scaling adjustment on other multimedia content, the display area of the multimedia content may also be adjusted, fig. 7 is a flowchart of an adjusting method of multimedia content according to another exemplary embodiment of the present application, which is described by taking the method as an example applied to a terminal, and as shown in fig. 7, the method includes:
step 701, receiving a multimedia content selection operation, where the multimedia content selection operation is used to select n multimedia contents to be edited, where n is greater than or equal to 2.
Optionally, the multimedia content selection operation comprises at least one of the following selection operations:
firstly, selecting n multimedia contents from the stored multimedia contents in the terminal as multimedia contents to be edited;
and secondly, selecting n multimedia contents issued by other accounts in the information interaction platform.
Step 702, displaying an editing interface of the multimedia content, wherein the editing interface comprises n multimedia contents selected by the multimedia content selection operation.
Optionally, the editing interface of the multimedia content is configured to perform an editing operation on the multimedia content, where the editing operation includes at least one of a size scaling operation, a zooming operation, a resolution adjusting operation, a filter setting operation, and an image parameter adjusting operation.
Optionally, the editing interface of the multimedia content includes a preview area and n reduced display areas, where 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 contents, and optionally, the n reduced display areas may be completely displayed in the editing interface or may be flowingly displayed in the editing interface in a sliding switching manner.
Step 703, obtaining the content size proportion of the ith multimedia content in the editing interface, wherein i is more than or equal to 1 and less than or equal to n.
Alternatively, the content size ratio of the ith multimedia content may be an adjusted size ratio or an unadjusted size ratio.
Alternatively, the size ratio of the ith multimedia content may be a ratio adjusted by the scaling operation. Namely, an adjusting control is displayed on the ith multimedia content, the scale adjusting operation on the adjusting control is received, and the target size proportion obtained by adjusting the scale adjusting operation is determined as the content size proportion of the ith multimedia content. Optionally, in response to the target size being within the size scale range, the target size scale obtained by the scaling operation is determined as the content size scale of the ith multimedia content.
In step 704, the other multimedia contents of the n multimedia contents are scaled in the same content size ratio.
Optionally, the other multimedia content is scaled down in a content size scale, or cropped in a content size scale.
In the embodiment of the present application, the example of clipping other multimedia contents in a content size ratio is described.
Step 705, receiving the adjustment operation of the display area of the kth multimedia content, where k is greater than or equal to 1 and less than or equal to n.
Alternatively, the display region adjusting operation may be implemented as at least one of a resolution adjusting operation and a content dragging operation. That is, receiving a resolution adjustment operation for the kth multimedia content, the resolution adjustment operation being used to adjust a display area of the multimedia content by setting a display resolution of the kth multimedia content; and/or receiving a content dragging operation for the kth multimedia content, wherein the content dragging operation is used for adjusting the display area of the kth multimedia content.
Step 706, determining the display area of the kth multimedia content in the content size ratio, and obtaining the cutting result of the kth multimedia content.
First, a resolution adjustment operation, which can be adjusted by directly inputting a resolution or by scaling an image, is described, as shown in fig. 8, which shows an interface diagram of adjusting a resolution by scaling according to an exemplary embodiment of the present application, an editing interface 800 includes a preview area 810, an image 811 is displayed in the preview area 810, and the image 811 is enlarged in an arrow direction to adjust the resolution of the image 811, and a portion in an adjustment frame 820 is used as a cropping result of the image 811.
Next, a content drag operation is schematically described, and as shown in fig. 9, which shows an interface schematic diagram of a content drag operation provided in an exemplary embodiment of the present application, a preview area 910 is included in the editing interface 900, an image 911 is displayed in the preview area 910, a portion of the image 911 within the adjustment frame 920 is adjusted by dragging the image 911, and the portion within the adjustment frame 920 is used as a trimming result of the image 911.
Optionally, the n multimedia contents are multimedia contents to be distributed in the information interaction platform, after the n multimedia contents are edited, a user can edit the description contents of the UGC content, and preview the edited multimedia contents, for example, referring to fig. 10, a preview image 1020 of the n multimedia contents is displayed in the description content editing interface 1010, the user can edit the description contents in the description content editing area 1030, when the user selects the preview image 1020, the preview interface 1040 is displayed, and the preview interface 1040 can switch and preview among the multiple multimedia contents in a sliding manner.
Optionally, after the UGC content is edited, the user clicks the publishing control to publish the UGC content to the information interaction platform, and referring to fig. 11 schematically, after the user edits the description content in the description content editing interface 1110, the user clicks the publishing control 1111, so that the UGC content including the multimedia content is published to the information interaction platform.
In summary, according to the method for adjusting multimedia content provided by this embodiment, when the editing interface of the multimedia content includes n multimedia contents to be edited, the size ratio of the ith multimedia content is obtained, and other multimedia contents are adjusted in the same ratio, so that the size ratio of the multimedia contents is uniformly adjusted, the adjustment efficiency before the multimedia contents are issued is improved, and the problem that the adjustment process is complicated due to sequential adjustment of a single multimedia content is avoided.
According to the method provided by the embodiment, after the size proportion is synchronously adjusted, the display area of a single multimedia content can be adjusted, so that each part of the multimedia content to be displayed is displayed under the condition that the size proportion of the multimedia content is consistent, and the adjustment efficiency of the multimedia content is improved.
Fig. 12 is a flowchart of a method for adjusting multimedia content according to another exemplary embodiment of the present application, which is described by taking an example that the process is applied to a terminal, and as shown in fig. 12, the process includes:
step 1201, take video/photo as multimedia content.
Optionally, in this embodiment, the content acquired by taking the multimedia content as the terminal is taken as an example for explanation, that is, the terminal takes a picture through the camera, or the terminal takes a video through the camera.
Step 1202, selecting the video/photo to be added in the photo album.
Optionally, at least two multimedia contents to be added are selected from the album, and the at least two multimedia contents may be both videos and photos, or part of the at least two multimedia contents may be video and part of the at least two multimedia contents may be photos, which is not limited in this embodiment of the application.
Step 1203, enter an editing interface.
Optionally, the editing interface is configured to edit the selected multimedia content, where the editing modes include a size ratio adjustment mode, a filter adjustment mode, a resolution adjustment mode, a color tone adjustment mode, and the like.
Step 1204, determine whether the first multimedia content exceeds 16:9 to 3: a range of 3.5.
Step 1205, if the ratio is less than 3: 3.5, automatically cutting to 3: 3.5 ratio, if it exceeds 16:9, automatically cutting into 16: and 9 proportion.
In step 1206, if at 16:9 to 3: 3.5, according to the actual proportion.
Alternatively, the size ratio range is only an illustrative example, and in actual practice, the size ratio range may also be implemented as other ranges, and the size ratio range is a preset range.
Step 1207, receive a resize operation on the resize button.
Optionally, the other multimedia contents are subjected to the same-scale adjustment according to the operation of scaling the size of the first multimedia content, and the specific adjustment manner is already described in the embodiments shown in fig. 2, fig. 5, and fig. 7, and is not described herein again.
And step 1208, clicking to finish, and entering a publication page.
Optionally, the user can edit the descriptive content in the UGC content in the publication page.
Step 1209, publish.
In summary, according to the method for adjusting multimedia content provided by this embodiment, when the editing interface of the multimedia content includes n multimedia contents to be edited, the size ratio of the ith multimedia content is obtained, and other multimedia contents are adjusted in the same ratio, so that the size ratio of the multimedia contents is uniformly adjusted, the adjustment efficiency before the multimedia contents are issued is improved, and the problem that the adjustment process is complicated due to sequential adjustment of a single multimedia content is avoided.
Fig. 13 is a block diagram of a multimedia content adjusting apparatus according to an exemplary embodiment of the present application, which is described by taking the apparatus as an example for being applied to a terminal, and as shown in fig. 13, the apparatus includes: a receiving module 1310, a displaying module 1320, an obtaining module 1330, and an adjusting module 1340;
a receiving module 1310, configured to receive a multimedia content selection operation, where the multimedia content selection operation is used to select n multimedia contents to be edited, a content type of the multimedia contents includes at least one of an image type and a video type, and n is greater than or equal to 2;
a display module 1320, configured to display an editing interface of the multimedia content, where the editing interface includes n pieces of the multimedia content selected by the multimedia content selection operation;
an obtaining module 1330 configured to obtain a content size ratio of the ith multimedia content in the editing interface, where i is greater than or equal to 1 and is less than or equal to n;
the adjusting module 1340 is configured to perform a same-scale adjustment on other multimedia contents of the n multimedia contents according to the content size scale.
In an alternative embodiment, an adjustment control is displayed on the ith multimedia content;
the receiving module 1310 is further configured to receive a scale adjustment operation on the adjustment control;
the adjusting module 1340 is further configured to determine the target size ratio obtained by adjusting the ratio adjusting operation as the content size ratio of the ith multimedia content.
In an optional embodiment, the adjusting module 1340 is further configured to determine the target size ratio adjusted by the scaling operation as the content size ratio of the ith multimedia content in response to the target size ratio being within a size ratio range.
In an alternative embodiment, the range of size ratios includes a range between a first size ratio and a second size ratio;
the adjusting module 1340 is further configured to, in response to the size ratio of the ith multimedia content being smaller than the first size ratio, take the first size ratio as the content size ratio of the ith multimedia content;
or the like, or, alternatively,
the adjusting module 1340 is further configured to, in response to the size ratio of the ith multimedia content being greater than the second size ratio, take the second size ratio as the content size ratio of the ith multimedia content.
In an optional embodiment, the editing interface includes a preview area, and the preview area is used for displaying the multimedia content to be edited;
the receiving module 1310 is further configured to receive a selected operation on the ith multimedia content;
the display module 1320 is further configured to display the ith multimedia content in the preview area, where the adjustment control is displayed on a side of the preview area corresponding to the ith multimedia content, and the adjustment control is used to adjust the content size ratio of the ith multimedia content in a cutting manner.
In an optional embodiment, the obtaining module 1330 is further configured to, for a target multimedia content of the other multimedia contents, obtain a horizontal-vertical ratio and a vertical-horizontal ratio of the target multimedia content;
the adjusting module 1340 is further configured to adjust the horizontal-vertical ratio by the content size ratio in response to a first approximation of the horizontal-vertical ratio to the content size ratio being greater than a second approximation of the horizontal-vertical ratio to the content size ratio; or, in response to the first approximation of the aspect ratio to the content size ratio being less than the second approximation of the aspect ratio to the content size ratio, scaling the aspect ratio by the content size ratio.
In an optional embodiment, the receiving module 1310 is further configured to receive a display area adjustment operation on the kth multimedia content, where k is greater than or equal to 1 and less than or equal to n;
as shown in fig. 14, the apparatus further includes:
a determining module 1350, configured to determine, according to the content size ratio, a display area of the kth multimedia content, so as to obtain a cropping result of the kth multimedia content.
In an optional embodiment, the receiving module 1310 is further configured to receive a resolution adjustment operation on the kth multimedia content, where the resolution adjustment operation is used to adjust the display area of the multimedia content by setting a display resolution of the kth multimedia content.
In an optional embodiment, the receiving module 1310 is further configured to receive a content dragging operation on the kth multimedia content, where the content dragging operation is used to adjust the display area of the kth multimedia content.
In summary, according to the multimedia content adjusting apparatus provided in this embodiment, when the editing interface of the multimedia content includes n multimedia contents to be edited, the size ratio of the ith multimedia content is obtained, and the other multimedia contents are adjusted in the same ratio, so that the size ratio of the multimedia contents is uniformly adjusted, the adjusting efficiency before the multimedia contents are issued is improved, and the problem that the adjusting process is complicated due to sequential adjustment of a single multimedia content is avoided.
It should be noted that: the multimedia content adjusting apparatus provided in the foregoing embodiment is only illustrated by dividing the functional modules, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the adjusting apparatus for multimedia content and the adjusting method for multimedia content provided in the foregoing embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments and are not described herein again.
Fig. 15 shows a block diagram of a terminal 1500 according to an exemplary embodiment of the present invention. The terminal 1500 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio layer iii, motion video Experts compression standard Audio layer 3), an MP4 player (Moving Picture Experts Group Audio layer IV, motion video Experts compression standard Audio layer 4), a notebook computer, or a desktop computer. Terminal 1500 may also be referred to as user equipment, a portable terminal, a laptop terminal, a desktop terminal, or other names.
In general, terminal 1500 includes: a processor 1501 and memory 1502.
Processor 1501 may include one or more processing cores, such as a 4-core processor, an 8-core processor, or the like. The processor 1501 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). Processor 1501 may also include a main processor and a coprocessor, where the main processor is a processor for processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a 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 required to be displayed on the display screen. In some embodiments, processor 1501 may also include an AI (Artificial Intelligence) processor for processing computational operations related to machine learning.
The memory 1502 may include one or more computer-readable storage media, which may be non-transitory. The memory 1502 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in the memory 1502 is used to store at least one instruction for execution by the processor 1501 to implement the method of adjusting multimedia content provided by the method embodiments of the present application.
In some embodiments, the terminal 1500 may further include: a peripheral interface 1503 and at least one peripheral. The processor 1501, memory 1502, and peripheral interface 1503 may be connected by buses or signal lines. Various peripheral devices may be connected to peripheral interface 1503 via buses, signal lines, or circuit boards. Specifically, the peripheral device includes: at least one of radio frequency circuitry 1504, touch screen display 1505, camera 1506, audio circuitry 1507, positioning assembly 1508, and power supply 1509.
The peripheral interface 1503 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 1501 and the memory 1502. In some embodiments, the processor 1501, memory 1502, and peripheral 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 interface 1503 may be implemented on separate chips or circuit boards, which is not limited in this embodiment.
The Radio Frequency circuit 1504 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuitry 1504 communicates with communication networks and other communication devices via electromagnetic signals. The radio frequency circuit 1504 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1504 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuit 1504 can communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: the world wide web, metropolitan area networks, intranets, generations of mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the radio frequency circuit 1504 may also include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 1505 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 1505 is a touch display screen, the display screen 1505 also has the ability to capture touch signals on or over the surface of the display screen 1505. The touch signal may be input to the processor 1501 as a control signal for processing. In this case, the display screen 1505 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, display 1505 may be one, providing the front panel of terminal 1500; in other embodiments, display 1505 may be at least two, each disposed on a different surface of terminal 1500 or in a folded design; in still other embodiments, display 1505 may be a flexible display disposed on a curved surface or a folded surface of terminal 1500. Even further, the display 1505 may be configured in a non-rectangular irregular pattern, i.e., a shaped screen. The Display 1505 can be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), and other materials.
The camera assembly 1506 is used to capture images or video. Optionally, the camera assembly 1506 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 1506 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuitry 1507 may include a microphone and speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 1501 for processing or inputting the electric signals to the radio frequency circuit 1504 to realize voice communication. For stereo capture or noise reduction purposes, multiple microphones may be provided, each at a different location of the terminal 1500. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 1501 or the radio frequency circuit 1504 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, the audio circuitry 1507 may also include a headphone jack.
The positioning component 1508 is used to locate a current geographic position of the terminal 1500 to implement navigation or LBS (location based Service). The positioning component 1508 may be a positioning component based on the GPS (global positioning System) in the united states, the beidou System in china, or the galileo System in russia.
Power supply 1509 is used to power the various components in terminal 1500. The power supply 1509 may be alternating current, direct current, disposable or rechargeable. When the power supply 1509 includes a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. The wired rechargeable battery is a battery charged through a wired line, and the wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, the terminal 1500 also includes one or more sensors 1510. The one or more sensors 1510 include, but are not limited to: acceleration sensor 1511, gyro sensor 1512, pressure sensor 1513, fingerprint sensor 1514, optical sensor 1515, and proximity sensor 1516.
The acceleration sensor 1511 may detect the magnitude of acceleration on three coordinate axes of the coordinate system established with the terminal 1500. For example, the acceleration sensor 1511 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 1501 may control the touch screen display 1505 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1511. The acceleration sensor 1511 may also be used for acquisition of motion data of a game or a user.
The gyroscope sensor 1512 can detect the body direction and the rotation angle of the terminal 1500, and the gyroscope sensor 1512 and the acceleration sensor 1511 cooperate to collect the 3D motion of the user on the terminal 1500. The processor 1501 may implement the following functions according to the data collected by the gyro sensor 1512: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
Pressure sensor 1513 may be disposed on a side bezel of terminal 1500 and/or underneath touch display 1505. When the pressure sensor 1513 is disposed on the side frame of the terminal 1500, the holding signal of the user to the terminal 1500 may be detected, and the processor 1501 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 1513. When the pressure sensor 1513 is disposed at a lower layer of the touch display 1505, the processor 1501 controls the operability control on the UI interface according to the pressure operation of the user on the touch display 1505. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 1514 is configured to capture a fingerprint of the user, and the processor 1501 identifies the user based on the fingerprint captured by the fingerprint sensor 1514, or the fingerprint sensor 1514 identifies the user based on the captured fingerprint. Upon recognizing that the user's identity is a trusted identity, the processor 1501 authorizes the user to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings, etc. The fingerprint sensor 1514 may be disposed on the front, back, or side of the terminal 1500. When a physical key or vendor Logo is provided on the terminal 1500, the fingerprint sensor 1514 may be integrated with the physical key or vendor Logo.
The optical sensor 1515 is used to collect ambient light intensity. In one embodiment, processor 1501 may control the brightness of the display on touch screen 1505 based on the intensity of ambient light collected by optical sensor 1515. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 1505 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 1505 is turned down. In another embodiment, the processor 1501 may also dynamically adjust the shooting parameters of the camera assembly 1506 based on the ambient light intensity collected by the optical sensor 1515.
A proximity sensor 1516, also known as a distance sensor, is typically provided on the front panel of the terminal 1500. The proximity sensor 1516 is used to collect the distance between the user and the front surface of the terminal 1500. In one embodiment, when the proximity sensor 1516 detects that the distance between the user and the front surface of the terminal 1500 gradually decreases, the processor 1501 controls the touch display 1505 to switch from the bright screen state to the dark screen state; when the proximity sensor 1516 detects that the distance between the user and the front surface of the terminal 1500 gradually becomes larger, the processor 1501 controls the touch display 1505 to switch from the breath screen state to the bright screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 15 does not constitute a limitation of terminal 1500, and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components may be employed.
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 disc. The Random Access Memory may include a resistive Random Access Memory (ReRAM) and a Dynamic Random Access Memory (DRAM). The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present application and should not be taken as limiting, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.