CN107920015B - Method and device for publishing picture - Google Patents

Method and device for publishing picture Download PDF

Info

Publication number
CN107920015B
CN107920015B CN201711143831.4A CN201711143831A CN107920015B CN 107920015 B CN107920015 B CN 107920015B CN 201711143831 A CN201711143831 A CN 201711143831A CN 107920015 B CN107920015 B CN 107920015B
Authority
CN
China
Prior art keywords
picture
publishing
layout information
typesetting
blank area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711143831.4A
Other languages
Chinese (zh)
Other versions
CN107920015A (en
Inventor
叶星瑞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201711143831.4A priority Critical patent/CN107920015B/en
Publication of CN107920015A publication Critical patent/CN107920015A/en
Application granted granted Critical
Publication of CN107920015B publication Critical patent/CN107920015B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/52User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail for supporting social networking services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/01Social networking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/08Annexed information, e.g. attachments
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/10Multimedia information

Abstract

The disclosure relates to a method for publishing pictures, which is applied to a social application program and comprises the following steps: determining first publishing layout information of a first picture to be published; acquiring the blank area of a first picture after typesetting and publishing according to first publishing and typesetting information; if the area of the blank area is larger than 0, adjusting the first publishing layout information to be second publishing layout information, and enabling the area of the blank area of the first picture after being typeset and published according to the second publishing layout information to be 0; and publishing the first picture according to the second publishing typesetting information. According to the embodiment of the disclosure, the first publishing layout information is adjusted to the second publishing layout information, so that the blank area of the first picture after being typeset and published according to the second publishing layout information is 0, the first picture can be typeset and published according to the second publishing layout information, and the blank area does not exist in the typesetting interface, so that the viewing effect of the picture is improved.

Description

Method and device for publishing picture
Technical Field
The present disclosure relates to the field of display technologies, and in particular, to a method for publishing a picture, an apparatus for publishing a picture, an electronic device, and a computer-readable storage medium.
Background
Most of the current social network applications support functions such as picture uploading and displaying, but the typesetting mode of uploaded pictures is fixed.
For example, the layout supported by the interface of part of the social networking application is a nine-square grid, that is, a maximum of 9 pictures are displayed, and every 3 pictures are located in the same row. In this case, if the number of pictures uploaded by the user is not a multiple of 3, the complete row cannot be filled, for example, if the number of pictures uploaded by the user is 5, a blank area of the picture area exists at the end of the second row, which affects the viewing effect of the picture.
Disclosure of Invention
The present disclosure provides a method of publishing pictures, an apparatus for publishing pictures, an electronic device, and a computer-readable storage medium to solve the disadvantages of the related art.
According to a first aspect of the embodiments of the present disclosure, there is provided a method for publishing a picture, which is applied to a social application program, the method including:
determining first publishing layout information of a first picture to be published;
acquiring the blank area of the first picture after typesetting and publishing according to the first publishing and layout information;
if the blank area is larger than 0, adjusting the first publishing layout information to be second publishing layout information, so that the blank area of the first picture after being typeset and published according to the second publishing layout information is 0;
and publishing the first picture according to the second publishing typesetting information.
Optionally, the adjusting the first publishing layout information to be the second publishing layout information includes:
detecting a target operation indicating a second picture selected among the first pictures;
in response to the detection of the target operation, obtaining second publishing typesetting information by adjusting display parameters of a third picture;
wherein the third picture comprises the second picture, and the display parameters comprise: the size parameter is displayed.
Optionally, the third picture further includes: and the other fourth pictures except the second picture in the first picture.
Optionally, the obtaining the second publishing layout information by adjusting the display parameter of the third picture includes:
determining the ratio of the length to the width of the blank area;
adjusting the ratio of the length to the width of the third picture according to the ratio by any one of the following methods:
adjusting the size of the whole picture;
intercepting a picture of a local area;
and splicing with other pictures.
Optionally, the display parameters further comprise at least one of: displaying the attitude parameters and the position parameters.
According to a second aspect of the embodiments of the present disclosure, there is provided an apparatus for publishing pictures, which is applied in a social application program, the method including:
the layout determining module is configured to determine first layout information of a first picture to be published;
the area acquisition module is configured to acquire the blank area of the first picture after typesetting and publishing according to the first publishing and typesetting information;
the layout adjusting module is configured to adjust the first layout information to second layout information if the blank area is larger than 0, so that the blank area of the first picture after being laid and published according to the second layout information is 0;
and the picture publishing module is configured to publish the first picture according to the second publishing typesetting information.
Optionally, the layout adjusting module includes:
a detection sub-module configured to detect a target operation indicating a second picture selected among the first pictures;
the response submodule is configured to respond to the detection of the target operation, and obtain the second publishing typesetting information by adjusting display parameters of a third picture;
wherein the third picture comprises the second picture, and the display parameters comprise: the size parameter is displayed.
Optionally, the third picture further includes: and the other fourth pictures except the second picture in the first picture.
Optionally, the response submodule is configured to determine a ratio of a length and a width of the white space region; adjusting the ratio of the length to the width of the third picture according to the ratio by any one of the following methods:
adjusting the size of the whole picture;
intercepting a picture of a local area;
and splicing with other pictures.
Optionally, the display parameters further comprise at least one of: displaying the attitude parameters and the position parameters.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic device applied in a social application, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
determining first publishing layout information of a first picture to be published;
acquiring the blank area of the first picture after typesetting and publishing according to the first publishing and layout information;
if the blank area is larger than 0, adjusting the first publishing layout information to be second publishing layout information, so that the blank area of the first picture after being typeset and published according to the second publishing layout information is 0;
and publishing the first picture according to the second publishing typesetting information.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium, for use in a social application, having a computer program stored thereon, which when executed by a processor, performs the steps of:
determining first publishing layout information of a first picture to be published;
acquiring the blank area of the first picture after typesetting and publishing according to the first publishing and layout information;
if the blank area is larger than 0, adjusting the first publishing layout information to be second publishing layout information, so that the blank area of the first picture after being typeset and published according to the second publishing layout information is 0;
and publishing the first picture according to the second publishing typesetting information.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
according to the embodiment, the first publishing layout information is adjusted to the second publishing layout information, so that the blank area of the first picture after being typeset and published according to the second publishing layout information is 0, the first picture after being typeset and published according to the second publishing layout information can be typeset and published, and the blank area does not exist in the typesetting interface, so that the viewing effect of the picture is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a schematic flow chart diagram illustrating a method of publishing pictures in accordance with an exemplary embodiment.
FIG. 2 is a schematic diagram illustrating a blank area in accordance with an example embodiment.
Fig. 3 is a diagram illustrating distribution of a first picture according to second distribution composition information according to an exemplary embodiment.
Fig. 4 is a schematic flowchart illustrating adjustment of the first distribution layout information to the second distribution layout information according to an exemplary embodiment.
Fig. 5 is a diagram illustrating another publishing of a first picture according to second publishing layout information according to an exemplary embodiment.
Fig. 6 is another schematic flow chart illustrating adjustment of the first distribution layout information to the second distribution layout information according to an exemplary embodiment.
Fig. 7 is a schematic block diagram illustrating an apparatus for distributing pictures in accordance with an example embodiment.
Fig. 8 is a schematic block diagram illustrating another apparatus for distributing pictures in accordance with an example embodiment.
Fig. 9 is a schematic block diagram illustrating an apparatus for distributing pictures in accordance with an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a schematic flow chart diagram illustrating a method of publishing pictures in accordance with an exemplary embodiment. The method for publishing the picture, which is shown in the embodiment, can be applied to social network applications, such as WeChat and microblog, wherein the social network applications can be run on electronic devices, such as a mobile phone, a tablet computer, a notebook computer and a television. Embodiments of the present disclosure are exemplified below primarily in the context of social networking applications running on a cell phone.
As shown in fig. 1, the method for publishing pictures in this embodiment may include the following steps.
In step S1, first publishing layout information of a first picture to be published is determined.
In step S2, the blank area of the first picture after being typeset and published according to the first publishing layout information is obtained.
In one embodiment, the first picture may include one picture or multiple pictures, for example, in a case that the first picture includes multiple pictures, the first distribution layout information of the multiple pictures may be different according to the number of the pictures.
FIG. 2 is a schematic diagram illustrating a blank area in accordance with an example embodiment.
In one embodiment, as shown in fig. 2, for example, the first picture includes A, B, C, D, E pictures with the same shape and the same area, then the first layout information may be that 3 pictures are displayed in each row, the 5 pictures are laid out in the first row and the second row, and there is a blank area of the picture area in the second row, for example, the blank area may be located at the end of the second row (or may be located elsewhere in the second row).
In step S3, if the blank area is greater than 0, adjusting the first publishing layout information to be second publishing layout information, so that the blank area of the first picture after being typeset and published according to the second publishing layout information is 0;
in step S4, the first picture is published according to the second publishing layout information.
In an embodiment, when the area of the blank area is greater than 0, it is described that typesetting the first picture according to the first publishing layout information may cause the blank area to exist in the typesetting interface where the published first picture is located, so that the first publishing layout information may be adjusted to the second publishing layout information.
The first publishing layout information can be automatically adjusted to the second publishing layout information, and the first publishing layout information can also be adjusted to the second publishing layout information when an operation instruction of a user is received. The selection can be specifically carried out according to the needs.
In one embodiment, the first publishing layout information of the first picture may be changed into the second publishing layout information by adjusting one or more of the first pictures.
For example, in the case that the first picture includes multiple pictures, one or more of the pictures may be adjusted so that the sum of the areas of the adjusted picture and the unadjusted picture is equal to the sum of the areas of the multiple pictures and the blank area before adjustment, so that the area of the blank area after the first picture is typeset and published according to the second publishing typesetting information is 0.
In an embodiment, the first publishing layout information is adjusted to the second publishing layout information, so that the area of the blank area of the first picture after being published according to the second publishing layout information is 0, the first picture published according to the second publishing layout information can be published, and the blank area does not exist in the publishing interface, thereby improving the viewing effect of the picture.
Fig. 3 is a diagram illustrating distribution of a first picture according to second distribution composition information according to an exemplary embodiment.
As shown in fig. 3, based on the embodiment shown in fig. 2, for example, by adjusting the picture B in the plurality of pictures, the first publishing layout information of the first picture becomes the second publishing layout information. Therefore, in the layout interface for publishing the first picture according to the second publishing layout information, when the adjusted picture B is displayed, the picture a and the adjusted picture B occupy the first row, the areas of the pictures C, D and E are unchanged, and the area of the determined blank area is equal to the area of one picture, so that the adjusted picture B and the pictures A, C, D and E to be displayed completely occupy two rows, and the area of the blank area of the first picture after being typeset and published according to the second publishing layout information is 0.
Fig. 4 is a schematic flowchart illustrating adjustment of the first distribution layout information to the second distribution layout information according to an exemplary embodiment. As shown in fig. 4, on the basis of the embodiment shown in fig. 1, the adjusting the first publishing layout information to the second publishing layout information includes:
in step S31, a target operation indicating a second picture selected among the first pictures is detected.
In one embodiment, the target operation may be a touch operation, a voice operation, or the like.
In step S32, in response to detecting the target operation, obtaining the second publishing layout information by adjusting display parameters of a third picture; wherein the third picture comprises the second picture, and the display parameters comprise: the size parameter is displayed.
In one embodiment, a second picture may be selected from the first pictures according to the target operation, and then the first publishing layout information of the first picture may be changed into the second publishing layout information by adjusting a third picture including the second picture. The third picture may only include the second picture, or may include other pictures other than the second picture.
In one embodiment, the display parameters of the third picture may be adjusted, wherein the display parameters include a display size parameter. For example, when the third picture is rectangular, the length and/or width of the third picture may be adjusted; for example, when the third picture is a triangle, the bottom and/or height of the third picture may be adjusted; for example, when the third picture is a circle, the radius of the third picture may be adjusted.
In one embodiment, based on the embodiment shown in fig. 2, for example, in the case that the third picture only includes the second picture, where the second picture is picture B, since the area of the blank region is equal to the area of one picture, the area of picture B may be adjusted to the areas of two pictures.
For example, as shown in fig. 3, the area of picture B can be adjusted to the area of two pictures by adjusting the length of picture B to be twice. In the layout interface for publishing the first picture according to the second publishing layout information, when the adjusted picture B is displayed, the picture a and the adjusted picture B occupy the first row, and the areas of the pictures C, D and E are unchanged, so that the adjusted picture B and the pictures A, C, D and E to be displayed completely occupy two rows, and the area of the blank area of the first picture after being typeset and published according to the second publishing layout information is ensured to be 0.
Optionally, the third picture further includes: and the other fourth pictures except the second picture in the first picture.
In one embodiment, the third picture may further include, on the basis of the second picture, other pictures in the first picture except for the second picture.
Fig. 5 is a diagram illustrating another publishing of a first picture according to second publishing layout information according to an exemplary embodiment.
In an embodiment, for example, as shown in fig. 5, the third picture may include a second picture B and a fourth picture a, and the second publishing layout information may be obtained by adjusting the display parameter of the third picture, where the adjusting may include adjusting the length of the second picture B to be 1.5 times of the original length and adjusting the length of the fourth picture a to be 1.5 times of the original length, so that the adjusted second picture B and the fourth picture a completely occupy one row, and the areas of the pictures C, D and E are unchanged, so that the adjusted picture B and the pictures A, C, D and E to be displayed completely occupy two rows, and it is ensured that the area of a blank area of the first picture after being published according to the second publishing layout information is 0.
Fig. 6 is another schematic flow chart illustrating adjustment of the first distribution layout information to the second distribution layout information according to an exemplary embodiment. As shown in fig. 6, on the basis of the embodiment shown in fig. 4, the obtaining of the second publishing layout information by adjusting the display parameter of the third picture includes:
in step S321, the ratio of the length and the width of the blank area is determined.
In one embodiment, the shape of the blank area is related to the number and shape of the first picture and the first layout information, for example, the first picture includes a plurality of square pictures, and each row can display 3 pictures, so if the first picture includes 5 pictures, the area of the blank area is equal to the area of one picture, that is, the ratio of the length to the width of the blank area is 1:1 (for example, the embodiment shown in fig. 2); if the first picture comprises 4 pictures, the area of the blank area is equal to the areas of the two pictures, i.e. the ratio of the length to the width of the blank area is 2:1 or 1: 2.
In step S322, the ratio of the length and the width of the third picture is adjusted according to the ratio by any one of the following ways:
adjusting the size of the whole picture;
intercepting a picture of a local area;
and splicing with other pictures.
In one embodiment, the size of the picture (e.g., picture B) included in the third picture may be adjusted according to the ratio of the length to the width of the blank area. The size of the whole second picture B included in the third picture may be adjusted, for example, 1 may be added to a numerator of a ratio of the length to the width of the blank region as an adjustment multiple, for example, based on the embodiment shown in fig. 2, if the ratio of the length to the width of the blank region is 1:1, then the ratio of the numerator added to 1 is 2:1, so that the length of the second picture B may be extended to 2 times of the original length.
In an embodiment, a local region may be truncated in a picture (e.g., picture B) included in the third picture according to a ratio of the length to the width of the blank region, for example, a numerator of the ratio of the length to the width of the blank region plus 1 may be used as a truncation ratio. For example, based on the embodiment shown in fig. 2, if the ratio of the length to the width of the blank area is 1:1, then the ratio of the length to the width of the blank area is 2:1 after adding 1 to the numerator, and a local area with the ratio of the length to the width equal to 2:1 may be cut out from picture B included in the third picture; for example, if the ratio of the length to the width of the blank area is 2:1, and the ratio of the numerator added to 1 is 3:1, a local area with the ratio of the length to the width equal to 3:1 can be cut out from the picture B included in the third picture.
In one embodiment, the other pictures to be spliced with the picture (e.g., picture B) included in the third picture may be set according to the ratio of the length to the width of the blank region, for example, the numerator of the ratio of the length to the width of the blank region may be added by 1 as the set ratio, and then the other pictures to be spliced may be set for picture B, so that the ratio of the length to the width of the pictures after splicing the other pictures with picture B is equal to the set ratio. For example, based on the embodiment shown in fig. 2, if the ratio of the length to the width of the blank area is 1:1, and the ratio of the length to the width of the blank area after adding 1 to the numerator is 2:1, another image with the ratio of the length to the width equal to 1:1 may be set for the image B, so that the ratio of the length to the width of the image after splicing with the image B is equal to 2: 1; for example, if the ratio of the length to the width of the blank area is 2:1, and the ratio of the length to the width of the blank area is 3:1 after adding 1 to the numerator, the other with the ratio of the length to the width equal to 2:1 can be set for the picture B, so that the ratio of the length to the width of the picture after splicing with the other picture B is equal to 3: 1.
In one embodiment, other pictures may be spliced on one side of the picture B or spliced on both sides of the picture B. Other pictures can be used as the decorative area, and the patterns of the decorative area can be selected according to the requirements, such as patterns of cartoon flowers and plants. Accordingly, the adjusted picture B can be more prominent by setting the decoration area, and a user can conveniently set the picture needing highlighting.
Optionally, the display parameters further comprise at least one of: displaying the attitude parameters and the position parameters.
In one embodiment, the display parameters may include a display posture parameter and/or a display position parameter in addition to the display size parameter, that is, when the target operation is detected, the posture and/or the position of the picture in the third picture may be adjusted. For example, if the target operation is a rotation operation, the display direction of the picture in the third picture may be changed (e.g., displayed horizontally, i.e., the length of the picture in the row direction is greater than the length of the picture in the column direction; e.g., displayed vertically, i.e., the length of the picture in the column direction is greater than the length of the picture in the row direction). For example, if the target operation is a drag operation, the display position of the picture in the third picture may be changed (for example, moving from the first row to the second row display).
Corresponding to the embodiment of the method for publishing the picture, the disclosure also provides an embodiment of a device for publishing the picture.
Fig. 7 is a schematic block diagram illustrating an apparatus for distributing pictures in accordance with an example embodiment. The apparatus shown in this embodiment may be applied to a social application program, as shown in fig. 7, the apparatus includes:
the layout determining module 1 is configured to determine first layout information of a first picture to be published;
the area obtaining module 2 is configured to obtain the blank area of the first picture after being typeset and published according to the first publishing and layout information;
the layout adjusting module 3 is configured to adjust the first layout information to second layout information if the blank area is larger than 0, so that the blank area of the first picture after being laid and published according to the second layout information is 0;
and the picture publishing module 4 is configured to publish the first picture according to the second publishing layout information.
Fig. 8 is a schematic block diagram illustrating another apparatus for distributing pictures in accordance with an example embodiment. As shown in fig. 8, on the basis of the embodiment shown in fig. 7, the layout adjusting module 3 includes:
a detection sub-module 31 configured to detect a target operation indicating a second picture selected among the first pictures;
a response submodule 32, configured to, in response to the detection of the target operation, obtain the second publishing layout information by adjusting a display parameter of a third picture;
wherein the third picture comprises the second picture, and the display parameters comprise: the size parameter is displayed.
Optionally, the third picture further includes: and the other fourth pictures except the second picture in the first picture.
Optionally, the response submodule is configured to determine a ratio of a length and a width of the white space region; adjusting the ratio of the length to the width of the third picture according to the ratio by any one of the following methods:
adjusting the size of the whole picture;
intercepting a picture of a local area;
and splicing with other pictures.
Optionally, the display parameters further comprise at least one of: displaying the attitude parameters and the position parameters.
With regard to the apparatus in the above embodiments, the specific manner in which each module performs operations has been described in detail in the embodiments of the related method, and will not be described in detail here.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, wherein the modules described as separate parts may or may not be physically separate, and the parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the disclosed solution. One of ordinary skill in the art can understand and implement it without inventive effort.
The present disclosure further provides an electronic device applied to a social application program, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
determining first publishing layout information of a first picture to be published;
acquiring the blank area of the first picture after typesetting and publishing according to the first publishing and layout information;
if the blank area is larger than 0, adjusting the first publishing layout information to be second publishing layout information, so that the blank area of the first picture after being typeset and published according to the second publishing layout information is 0;
and publishing the first picture according to the second publishing typesetting information.
The present disclosure also proposes a computer-readable storage medium, on which a computer program is stored, for application in a social application, which program, when executed by a processor, performs the steps of:
determining first publishing layout information of a first picture to be published;
acquiring the blank area of the first picture after typesetting and publishing according to the first publishing and layout information;
if the blank area is larger than 0, adjusting the first publishing layout information to be second publishing layout information, so that the blank area of the first picture after being typeset and published according to the second publishing layout information is 0;
and publishing the first picture according to the second publishing typesetting information.
Fig. 9 is a schematic block diagram illustrating an apparatus 900 for distributing pictures in accordance with an example embodiment. For example, the apparatus 900 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 9, apparatus 900 may include one or more of the following components: processing component 902, memory 904, power component 906, multimedia component 908, audio component 910, input/output (I/O) interface 912, sensor component 914, and communication component 916.
The processing component 902 generally controls overall operation of the device 900, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Processing component 902 may include one or more processors 920 to execute instructions to perform all or a portion of the steps of the methods described above. Further, processing component 902 can include one or more modules that facilitate interaction between processing component 902 and other components. For example, the processing component 902 can include a multimedia module to facilitate interaction between the multimedia component 908 and the processing component 902.
The memory 904 is configured to store various types of data to support operation at the apparatus 900. Examples of such data include instructions for any application or method operating on device 900, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 904 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 906 provides power to the various components of the device 900. The power components 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 900.
The multimedia component 908 comprises a screen providing an output interface between the device 900 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 908 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 900 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 910 is configured to output and/or input audio signals. For example, audio component 910 includes a Microphone (MIC) configured to receive external audio signals when apparatus 900 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 904 or transmitted via the communication component 916. In some embodiments, audio component 910 also includes a speaker for outputting audio signals.
I/O interface 912 provides an interface between processing component 902 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 914 includes one or more sensors for providing status assessment of various aspects of the apparatus 900. For example, sensor assembly 914 may detect an open/closed state of device 900, the relative positioning of components, such as a display and keypad of device 900, the change in position of device 900 or a component of device 900, the presence or absence of user contact with device 900, the orientation or acceleration/deceleration of device 900, and the change in temperature of device 900. The sensor assembly 914 may include a proximity sensor configured to detect the presence of a nearby object in the absence of any physical contact. The sensor assembly 914 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 914 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 916 is configured to facilitate communications between the apparatus 900 and other devices in a wired or wireless manner. The apparatus 900 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 916 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 900 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the methods shown in any of the above embodiments.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 904 comprising instructions, executable by the processor 920 of the apparatus 900 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (8)

1. A method for publishing pictures is applied to a social application program, and comprises the following steps:
determining first publishing layout information of a first picture to be published;
acquiring the blank area of the first picture after typesetting and publishing in the typesetting interface of the social application program according to the first publishing and typesetting information;
if the blank area is larger than 0, adjusting the first publishing layout information to be second publishing layout information, so that the blank area in the publishing interface after the first picture is typeset and published according to the second publishing layout information is 0, including: detecting a target operation indicating a second picture selected among the first pictures; in response to the detection of the target operation, obtaining second publishing typesetting information by adjusting display parameters of a third picture; wherein the third picture comprises the second picture and a fourth picture except the second picture, and the display parameters comprise: displaying the size parameter;
and publishing the first picture in the typesetting interface according to the second publishing typesetting information.
2. The method according to claim 1, wherein the obtaining the second publishing layout information by adjusting the display parameter of the third picture comprises:
determining the ratio of the length to the width of the blank area;
adjusting the ratio of the length to the width of the third picture according to the ratio by any one of the following methods:
adjusting the size of the whole picture;
intercepting a picture of a local area;
and splicing with other pictures.
3. The method of claim 1, wherein the display parameters further comprise at least one of: displaying the attitude parameters and the position parameters.
4. An apparatus for publishing pictures, applied to a social application, the apparatus comprising:
the layout determining module is configured to determine first layout information of a first picture to be published;
the area obtaining module is configured to obtain the area of a blank area of the first picture after typesetting and publishing in the typesetting interface of the social application program according to the first publishing and typesetting information;
the layout adjusting module is configured to adjust the first layout information to second layout information if the blank area is larger than 0, so that the blank area in the layout interface after the first picture is laid out and published according to the second layout information is 0; the typesetting adjustment module comprises: a detection submodule and a response submodule; the detection sub-module is configured to detect a target operation, wherein the target operation indicates a second picture selected from the first pictures; the response submodule is configured to obtain the second publishing layout information by adjusting display parameters of a third picture in response to the detection of the target operation; wherein the third picture comprises the second picture and a fourth picture except the second picture, and the display parameters comprise: displaying the size parameter;
and the picture publishing module is configured to publish the first picture in the composition interface according to the second publishing composition information.
5. The apparatus of claim 4, wherein the response submodule is configured to determine a ratio of a length and a width of the white space region; adjusting the ratio of the length to the width of the third picture according to the ratio by any one of the following methods:
adjusting the size of the whole picture;
intercepting a picture of a local area;
and splicing with other pictures.
6. The apparatus of claim 4, wherein the display parameters further comprise at least one of: displaying the attitude parameters and the position parameters.
7. An electronic device, applied to a social application, includes:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
determining first publishing layout information of a first picture to be published;
obtaining the blank area of the first picture in the composition interface of the social application program after composition publishing is carried out on the first picture according to the first layout information;
if the blank area is larger than 0, adjusting the first publishing layout information to be second publishing layout information, so that the blank area in the publishing interface after the first picture is typeset and published according to the second publishing layout information is 0, including: detecting a target operation indicating a second picture selected among the first pictures; in response to the detection of the target operation, obtaining second publishing typesetting information by adjusting display parameters of a third picture; wherein the third picture comprises the second picture and a fourth picture except the second picture, and the display parameters comprise: displaying the size parameter;
and publishing the first picture in the typesetting interface according to the second publishing typesetting information.
8. A computer-readable storage medium, on which a computer program is stored, for use in a social application, which program, when executed by a processor, performs the steps of:
determining first publishing layout information of a first picture to be published;
obtaining the blank area of the first picture in the composition interface of the social application program after composition publishing is carried out on the first picture according to the first layout information;
if the blank area is larger than 0, adjusting the first publishing layout information to be second publishing layout information, so that the blank area in the publishing interface after the first picture is typeset and published according to the second publishing layout information is 0, including: detecting a target operation indicating a second picture selected among the first pictures; in response to the detection of the target operation, obtaining second publishing typesetting information by adjusting display parameters of a third picture; wherein the third picture comprises the second picture and a fourth picture except the second picture, and the display parameters comprise: displaying the size parameter;
and publishing the first picture in the typesetting interface according to the second publishing typesetting information.
CN201711143831.4A 2017-11-17 2017-11-17 Method and device for publishing picture Active CN107920015B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711143831.4A CN107920015B (en) 2017-11-17 2017-11-17 Method and device for publishing picture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711143831.4A CN107920015B (en) 2017-11-17 2017-11-17 Method and device for publishing picture

Publications (2)

Publication Number Publication Date
CN107920015A CN107920015A (en) 2018-04-17
CN107920015B true CN107920015B (en) 2021-11-09

Family

ID=61896595

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711143831.4A Active CN107920015B (en) 2017-11-17 2017-11-17 Method and device for publishing picture

Country Status (1)

Country Link
CN (1) CN107920015B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110032701B (en) * 2019-04-04 2021-07-09 网易(杭州)网络有限公司 Image display control method and device, storage medium and electronic equipment
CN111161149B (en) * 2019-12-30 2023-11-17 上海连尚网络科技有限公司 Image display method and device

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9021045B2 (en) * 2006-11-30 2015-04-28 Red Hat, Inc. Sharing images in a social network
CN101873341A (en) * 2010-05-17 2010-10-27 孙煜 Information issuing method, virtual show method, system, terminal and server
US8732255B2 (en) * 2011-09-09 2014-05-20 Facebook, Inc. Dynamically created shared spaces
CN103455475B (en) * 2012-06-01 2016-12-14 腾讯科技(深圳)有限公司 Composition method, equipment and system
WO2014031899A1 (en) * 2012-08-22 2014-02-27 Goldrun Corporation Augmented reality virtual content platform apparatuses, methods and systems
JP5979396B2 (en) * 2014-05-27 2016-08-24 パナソニックIpマネジメント株式会社 Image photographing method, image photographing system, server, image photographing device, and image photographing program
CN105573638B (en) * 2014-10-13 2019-02-19 阿里巴巴集团控股有限公司 A kind of picture dissemination method and device
CN104820549B (en) * 2015-04-15 2018-10-19 小米科技有限责任公司 Sending method, device and the terminal of social networking application message
CN105068984B (en) * 2015-08-04 2018-04-20 时代数媒科技股份有限公司 A kind of automatic picture mosaic composition method
CN105912519B (en) * 2016-05-27 2019-01-25 北京京东尚科信息技术有限公司 A kind of composition method and composing device of electronic document
CN106126686B (en) * 2016-06-29 2020-06-05 北京金山安全软件有限公司 Picture combination method and device and electronic equipment
CN106294642A (en) * 2016-08-03 2017-01-04 天梯头条传媒(苏州)有限公司 There is the information issuing system of greek version function
CN106657579B (en) * 2016-09-29 2020-12-11 泾县谷声信息科技有限公司 Content sharing method and device and terminal
CN106780401B (en) * 2017-01-12 2018-12-04 维沃移动通信有限公司 A kind of method and mobile terminal of picture processing
CN106933794B (en) * 2017-03-14 2018-07-13 掌阅科技股份有限公司 Picture layout method and device, electronic equipment, computer storage media

Also Published As

Publication number Publication date
CN107920015A (en) 2018-04-17

Similar Documents

Publication Publication Date Title
CN106527867B (en) Method and device for moving suspension layer interface
US10095377B2 (en) Method and device for displaying icon badge
CN106657780B (en) Image preview method and device
CN107888984B (en) Short video playing method and device
CN105487805B (en) Object operation method and device
CN105094578B (en) Method and device for adjusting position of desktop icon
CN106651777B (en) Image processing method and device and electronic equipment
EP3001305A1 (en) Method and device for controlling display of video
EP3032482A1 (en) Page display method and apparatus
EP3770859B1 (en) Image processing method, image processing apparatus, and storage medium
JP2017527832A (en) Picture display method and apparatus
CN104850643B (en) Picture comparison method and device
CN107219989B (en) Icon processing method and device and terminal
CN107920015B (en) Method and device for publishing picture
CN109783171B (en) Desktop plug-in switching method and device and storage medium
CN110876014B (en) Image processing method and device, electronic device and storage medium
CN106773750B (en) Equipment image display method and device
CN112905135A (en) Screen brightness processing method, electronic device and storage medium
CN110782510A (en) Sticker generation method and device
CN108829473B (en) Event response method, device and storage medium
CN106354464B (en) Information display method and device
CN113066452B (en) Display control method and device, electronic equipment and computer readable storage medium
CN110891131A (en) Camera module, processing method and device, electronic equipment and storage medium
CN109389547B (en) Image display method and device
CN114913818A (en) Backlight brightness adjusting method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant