Image sharing method, apparatus, and electronic device
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- OPPO CHONGQING INTELLIGENT TECH CO LTD
- Filing Date
- 2019-09-10
- Publication Date
- 2026-08-07
AI Technical Summary
而目前的电子设备中直接从相册中分享给其他用户的图像通常是经过压缩处理的图像,造成其他用户的阅览体验不佳
Smart Images

Figure CN110618975B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and more specifically, to an image sharing method, apparatus, and electronic device. Background Technology
[0002] As communication between end users becomes increasingly frequent, more users want to share their images with others. However, images shared directly from the photo album on current electronic devices are often compressed, resulting in a poor viewing experience for other users. Furthermore, the current sharing process needs improvement. Summary of the Invention
[0003] In view of the above problems, this application proposes an image sharing method, apparatus, and electronic device to improve the above problems.
[0004] In a first aspect, this application provides an image sharing method applied to an electronic device. The method includes: acquiring an image to be shared, wherein the image to be shared is an image selected in the photo album of the electronic device; if an original image sharing operation of the image to be shared is detected, triggering the launch of an application corresponding to the original image sharing operation to display an image sharing configuration area; in the image sharing configuration area, triggering the application to select the image to be shared and select the original image sharing effect based on a simulated click, so that the application can share the image to be shared in the sharing area.
[0005] Secondly, this application provides an image sharing device operating on an electronic device. The device includes: an image acquisition unit for acquiring an image to be shared, wherein the image to be shared is an image selected in the photo album of the electronic device; a program launch unit for triggering the launch of an application corresponding to the original image sharing operation to display an image sharing configuration area if an original image sharing operation is detected on the image to be shared; and an image sharing operation unit for triggering the application to select the image to be shared and select the original image sharing effect in the image sharing configuration area, so that the application can share the image to be shared in the sharing area.
[0006] Thirdly, this application provides an electronic device including a processor and a memory; one or more programs are stored in the memory and configured to be executed by the processor to implement the above-described method.
[0007] Fourthly, this application provides a computer-readable storage medium storing program code, wherein the above-described method is executed when the program code is run by a processor.
[0008] This application provides an image sharing method, apparatus, and electronic device. After acquiring a selected image to be shared from the photo album of the electronic device, if an original image sharing operation is detected on the image to be shared, an application corresponding to the original image sharing operation is triggered to launch and display an image sharing configuration area. In the image sharing configuration area, the application is triggered to display an image selection interface including the image acquired from the photo album based on a simulated click. In the image selection interface, the image to be shared is selected based on a simulated click, and the original image sharing effect is selected. This allows the application to share the image to be shared in the sharing area corresponding to the image sharing configuration area after detecting the original image sharing control applied to the image selection interface. Through this method, after selecting an image in the photo album, the original image sharing operation can be directly triggered, thereby realizing the direct sharing of original images from the photo album to the application, greatly improving the convenience of original image sharing. Attached Figure Description
[0009] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0010] Figure 1 A flowchart of an image sharing method according to an embodiment of this application is shown;
[0011] Figure 2 This illustration shows a diagram of an image selection interface in an album in an image sharing method according to an embodiment of this application, where an image is selected.
[0012] Figure 3 This illustration shows a schematic diagram of an image sharing method according to an embodiment of this application, where no image is selected in the image selection interface of the album;
[0013] Figure 4 This illustration shows a schematic diagram of the image selection interface in an application within a photo album in an image sharing method according to an embodiment of this application;
[0014] Figure 5 A flowchart of an image sharing method according to another embodiment of this application is shown;
[0015] Figure 6 This illustration shows a schematic diagram of an image display position change in an image sharing method according to another embodiment of this application;
[0016] Figure 7This illustration shows another schematic diagram of a change in image display position in an image sharing method according to another embodiment of this application;
[0017] Figure 8 This illustration shows a schematic diagram of another image display position change in an image sharing method according to another embodiment of this application;
[0018] Figure 9 A schematic diagram of an original image sharing control in an image sharing method according to another embodiment of this application is shown;
[0019] Figure 10 A schematic diagram of multiple original image sharing controls in an image sharing method according to another embodiment of this application is shown;
[0020] Figure 11 This illustration shows a schematic diagram of another original image sharing control in an image sharing method according to another embodiment of this application;
[0021] Figure 12 A flowchart of an image sharing method according to another embodiment of this application is shown;
[0022] Figure 13 A schematic diagram of a session list in an image sharing method according to another embodiment of this application is shown;
[0023] Figure 14 This illustration shows a schematic diagram of the session content interface in an image sharing method according to another embodiment of this application;
[0024] Figure 15 A flowchart of an image sharing method according to another embodiment of this application is shown;
[0025] Figure 16 This paper shows a structural block diagram of an image sharing device according to an embodiment of this application;
[0026] Figure 17 A structural block diagram of an image sharing device according to another embodiment of this application is shown;
[0027] Figure 18 This invention illustrates a structural block diagram of an electronic device for performing an image sharing method according to an embodiment of this invention;
[0028] Figure 19 This is a storage unit in this application embodiment for storing or carrying program code that implements the image sharing method according to this application embodiment. Detailed Implementation
[0029] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.
[0030] As communication between end users becomes increasingly frequent, more users want to share their images with other users. For example, users can share pictures or videos from their albums with other users via instant messaging through social media apps. In addition, they can also share pictures or videos from their albums with other users through Moments or Qzone.
[0031] Currently, images shared directly from the photo album on electronic devices are usually compressed, resulting in a poor viewing experience for other users. If a user wants to share uncompressed images or videos from their album, they must first select them from the album, then manually trigger the selection interface within the social networking application, and finally select the original image or video before sending it, making the sharing process overly inconvenient.
[0032] After discovering the aforementioned problems during their research, the inventors proposed the image sharing method, apparatus, and electronic device described in this application, which can improve upon these problems. By directly selecting an image from the album, the original image sharing operation can be triggered, thus enabling direct sharing of original images from the album to the application, greatly improving the convenience of original image sharing and enhancing the user experience.
[0033] The embodiments of this application will now be described in detail with reference to the accompanying drawings.
[0034] Please see Figure 1 This application provides an image sharing method applied to an electronic device, the method comprising:
[0035] Step S110: Obtain the image to be shared, which is the image selected in the photo album of the electronic device.
[0036] Understandably, in this embodiment, users can first select images from their photo album that they intend to share directly as original images later. During the image selection process, the selected images can be marked to facilitate their inclusion as images to be shared.
[0037] Step S120: If an original image sharing operation is detected for the image to be shared, the application corresponding to the original image sharing operation is triggered to start and display the image sharing configuration area.
[0038] In this embodiment, the electronic device can provide multiple methods to trigger the sharing operation of the image to be shared. Correspondingly, the user can also trigger the original image sharing operation of the image to be shared in multiple ways.
[0039] In one approach, an electronic device can, upon detecting that an image has been selected as a shareable image in its photo album, display a floating image manipulation control independent of the album. This control contains image manipulation options, including an original image sharing option. In this case, if the original image sharing option is touched, it is determined that an original image sharing operation has been detected, thereby triggering the launch of the application corresponding to the original image sharing operation to display the image sharing configuration area.
[0040] Optionally, in addition to the original image sharing option, the image manipulation control can be configured with other options, such as deletion and beautification options. Optionally, to avoid interfering with the user's image selection and browsing in the album, the image manipulation control can move or change its transparency in response to user actions.
[0041] It's important to note that in this method, the image manipulation control is independent of the photo album. Therefore, to facilitate operations on images within the album, the image manipulation control can communicate with the album via inter-process communication. For example, if the image manipulation control detects that the user has selected a delete option, it will send a delete command to the album via inter-process communication to remove the currently selected image. Furthermore, if the album detects that the user has deselected a previously selected image, it will also send a cancel display command to the image manipulation control to remove it from the album.
[0042] For example, such as Figure 2 As shown, an exemplary display style for an image manipulation control is illustrated. Figure 2 The image manipulation control 99 shown includes options for sharing the original image and deleting it. Furthermore, in... Figure 2 In the image, a checkmark with a circle in the lower right corner indicates that the image has been selected by the user and is to be shared. So, what happens if an image that has already been selected by the user is then deselected by the user? Figure 3 As shown, the previous image manipulation control 99 will also disappear.
[0043] Understandably, configuring image manipulation controls separately allows for direct sharing of original images from the album without altering the album's configuration interface. Furthermore, the simplicity of the image manipulation controls' interface and functionality facilitates future maintenance.
[0044] Alternatively, the photo album can include a sharing control. Upon detecting the application of this sharing control, it's determined that a share operation on the original image of the image to be shared has been detected, triggering the launch of the application corresponding to the original image share operation to display the image sharing configuration area.
[0045] Based on the above method, the application can be triggered to display the image sharing configuration area. It can be understood that the application here is the one that will be used for image sharing later.
[0046] Step S130: In the image sharing configuration area, the application is triggered to select the image to be shared and select the original image sharing effect based on a simulated click, so that the application can share the image to be shared in the sharing area.
[0047] Understandably, the image sharing configuration area is used by applications that need to share images to retrieve images previously selected by the user in their photo album. Therefore, as a method that eliminates the need for manual user intervention, electronic devices can trigger the application to display the image selection interface based on simulated operation.
[0048] Understandably, electronic devices can pre-record the locations of controls in the application's image sharing configuration area that trigger the display of the image selection interface, using these locations as markers. Then, when the electronic device detects that the application is displaying the image configuration area, it can simulate clicking these marker locations to trigger the display of the image selection interface.
[0049] It's important to note that, taking the Android operating system as an example, the simulated operations are all based on the Android control layer, primarily involving Widgets and WebView. During the simulated operation, various services provided by Android are used to obtain the view information of the current window. Then, the target control (i.e., the control that triggers the image selection interface in the image sharing configuration area) is located within the current view, and the coordinates of the target control's center point are calculated based on its attribute information. This is then used to construct an Android Input event to simulate the operation of the target control, achieving the same effect as a user manually touching the target control. For example, this can be based on the Uiautomator framework. In this approach, Hierarchyview combined with monkey mode can be used. Specifically, Hierarchyview establishes a connection with the device-side ViewServer via socket, port 4939. Next, the control attribute information is obtained using the command "dump-1". This information is stored in the ViewNode. Third, based on the ViewNode information, the control tree is traversed to find the target control, and its center point coordinates are calculated based on its bounds information.
[0050] One approach is to define the image configuration operation area of an application as an interface within that application. Electronic devices can detect whether the currently displayed foreground interface is an image configuration operation area by pre-marking the interface that serves as such. For example, optionally, each application capable of sharing images can pre-register interfaces that serve as image configuration operation areas. One approach is for the electronic device to pre-create a list, storing a mapping between application identifiers and interface identifiers that serve as image configuration operation areas. When an interface is running, the electronic device can first obtain the interface identifier of the currently running foreground interface, then search within the list. If a match is found, it indicates that an interface serving as an image configuration operation area is displayed in the foreground, and the corresponding application to which that interface belongs can also be identified.
[0051] If the electronic device is an Android device, it can obtain the foreground running interface using the getRunningActivityName() method.
[0052] In one approach, within the image sharing configuration area, triggering the application to select the image to be shared and selecting the original image sharing effect based on a simulated click, so that the application can share the image to be shared in the sharing area, includes:
[0053] The application is triggered to display an image selection interface. The image displayed in the image selection interface is obtained from the album. The image to be shared is selected in the image selection interface by means of simulated click and the original image sharing effect is selected. After the application detects the original image sharing control in the image selection interface, it shares the image to be shared in the sharing area corresponding to the image sharing configuration area.
[0054] Once the image selection interface is displayed, the electronic device can then continue to simulate user touchscreen operations to select previously chosen images from the album to be shared. Of course, selecting an image to share in the image selection interface will also select the option to share the original image.
[0055] exist Figure 4 The image selection interface 98 shown displays images read from the album, and the electronic device selects images that have been previously selected by the user in the album based on simulated operation, and also checks the sharing control that sets the sharing effect to the original image through simulated operation.
[0056] It should be noted that, in this embodiment, the image sharing method provided can be executed by the photo album or by a program independent of the photo album. If executed by the photo album, the process of triggering the application corresponding to the original image sharing operation to launch and display the image sharing configuration area is directly executed by the photo album. However, if, in this embodiment, the image sharing method is executed by a program independent of the photo album, that independent program is responsible for triggering the application corresponding to the original image sharing operation to launch and display the image sharing configuration area.
[0057] This application provides an image sharing method. After acquiring a selected image to be shared from the photo album of an electronic device, if an original image sharing operation is detected, the application corresponding to the original image sharing operation is triggered to launch and display an image sharing configuration area. In the image sharing configuration area, the application is triggered to display an image selection interface including the image acquired from the photo album based on a simulated click. In the image selection interface, the image to be shared is selected based on a simulated click, and the original image sharing effect is selected. This allows the application to share the image to be shared in the sharing area corresponding to the image sharing configuration area after detecting the original image sharing control applied to the image selection interface. Through this method, after selecting an image in the photo album, the original image sharing operation can be directly triggered, thus enabling direct sharing of the original image from the photo album to the application, greatly improving the convenience of original image sharing.
[0058] Please see Figure 5 This application provides an image sharing method applied to an electronic device, the method comprising:
[0059] Step S210: Obtain the selected image from the photo album of the electronic device as the image to be shared.
[0060] Step S220: Configure the selected image display position to a specified position.
[0061] It's understandable that when users select images from their photo album, the images they choose may not be recently taken or downloaded. They might be images from the previous day, several days ago, or even longer ago, meaning the images selected by the user could be distributed across multiple areas of the album.
[0062] In this embodiment, as a way to facilitate accurate and quick retrieval of images selected by the user in the album in the application's image selection interface, the display position of the selected images in the album can be configured to a specified position. For example, they can be configured to be displayed in close proximity in the sorting order. In this way, after the selected images are sorted to the top, in the subsequent application's image selection interface, the top-ranked images can be directly selected as the images to be shared using a simulated click.
[0063] For example, such as Figure 6 As shown, in Figure 6 The images shown on the left are from the photo album interface, while the images on the right are from the application's image selection interface. Figure 6 In the album interface on the left, it's clear that the user has selected image A and image C. Therefore, in this mode, images A and C will be displayed in the first two positions. Correspondingly... Figure 6 In the application's image selection interface on the right, images A and C will be displayed as the first two in the sorted list. For example, ... Figure 7 As shown, the user has selected images A, C, and D. Therefore, in this configuration, images A, C, and D will be displayed as the first three images. Correspondingly... Figure 7 In the image selection interface of the application on the right, images A, C, and D will be displayed as the first three in the sorted list. It can be understood that in this method, the electronic device configures the display position of the user-selected images to be among the first few positions.
[0064] In addition to directly reconfiguring the display position, you can also copy the user-selected image to a newly created folder. In this way, when the application subsequently displays the image selection interface, it will directly read the image from that newly created folder. For example, as... Figure 8 As shown, the user has selected images A, C, and D. In this method, images A, C, and D will be copied to a new folder. In this method, as... Figure 8 As shown in the image on the right, the application will only read images from newly created folders in this album, and thus only display images from newly created folders in this album in its image display interface.
[0065] It should be noted that in the method of copying the image selected by the user to a newly created folder, after a subsequent touch operation on the original image sharing control is detected, the electronic device will update the default album reading address and point the updated album reading address to the address of the newly created file, so that the images in the newly created folder can be directly read in the future.
[0066] Step S230: Display the original image sharing control of the album.
[0067] Optionally, if a share trigger control in the photo album is detected to be touched, the electronic device will display the original image share control of the photo album. For example, as Figure 9 As shown, in Figure 9 As shown, a share trigger control 97 is displayed in the album interface. If a touch operation is detected on the share trigger control 97, the detailed sharing interface 96 shown in the figure will be displayed, and the original image share control 95 is displayed in the detailed sharing interface 96.
[0068] Step S240: If a touch operation is detected on the original image sharing control, the application corresponding to the original image sharing control is triggered to start and display the image sharing configuration area.
[0069] It should be noted that, in the embodiments of this application, the original image sharing control can be implemented in various ways.
[0070] In one approach, there is at least one original image sharing control, and each original image sharing control is bound to a corresponding application. In this approach, the step of triggering the application corresponding to the original image sharing control to launch and display the image sharing configuration area if a touch operation is detected on the original image sharing control includes: if a touch operation is detected on the original image sharing control, triggering the application bound to the original image sharing control to launch and display the image sharing configuration area.
[0071] For example, such as Figure 10 As shown, in Figure 10 The interface shown contains multiple original image sharing controls, and each original image sharing control is bound to its own application. For example, as... Figure 10 In this configuration, original image sharing control 95 is bound to application A, original image sharing control 94 is bound to application B, and original image sharing control 93 is bound to application C. Therefore, in this configuration, if a touch operation is detected on the original image sharing control 95, application A corresponding to the original image sharing control 95 will be launched to display the image sharing configuration area. If a touch operation is detected on the original image sharing control 94, application B corresponding to the original image sharing control 94 will be launched to display the image sharing configuration area. If a touch operation is detected on the original image sharing control 93, application C corresponding to the original image sharing control 93 will be launched to display the image sharing configuration area.
[0072] It's important to note that in this method, the application bound to the original image sharing control displayed in the sharing details interface is an application that has been pre-marked as supporting original image sharing. One approach is to pre-create a list to record applications that have been pre-marked as supporting original image sharing. When a new application is installed or an application is updated, it checks if the newly installed application is on the list. If so, the corresponding original image sharing control is added to the sharing details interface. Conversely, if an updated application is detected as being on the list, the corresponding original image sharing control is added to the sharing details interface. For example, if the electronic device detects that application E has been newly installed, it checks if application E is on the aforementioned list of applications that support original image sharing. If so, the original image sharing control for application E is added to the sharing details interface.
[0073] Furthermore, when an application is detected to have been deleted, the electronic device will also check whether the deleted application is on the list of applications that support original image sharing. If so, the original image sharing control corresponding to the deleted application will be removed from the sharing details interface.
[0074] It's important to note that electronic devices store a corresponding configuration file for their photo albums. This configuration file records which applications' original image sharing controls should be displayed on the detailed sharing interface. Therefore, adding or deleting original image sharing controls can be understood as manipulating this configuration file.
[0075] Alternatively, there is only one original image sharing control. In this method, the step of triggering the launch of the application corresponding to the original image sharing control to display the image sharing configuration area if a touch operation is detected on the original image sharing control includes: detecting a touch operation on the original image sharing control, displaying the identifier of at least one application for the user to select; obtaining the application selected by the user from the identifiers of the at least one application, and triggering the launch of the selected application to display the image sharing configuration area.
[0076] For example, such as Figure 11 As shown, in this method, the original image sharing control displayed in the sharing details interface is not bound to an application. Therefore, when an application is detected... Figure 11 After the original image sharing control is touched, the electronic device will display interface 91, allowing the user to select which specific application to trigger to display the image sharing configuration area.
[0077] Step S250: In the image sharing configuration area, the application is triggered to display an image selection interface based on a simulated click. The image displayed in the image selection interface is obtained from the album.
[0078] Step S260: In the image selection interface, select the image to be shared from the specified position based on simulated click and select the original image sharing effect, so that after the application detects the original image sharing control acting on the image selection interface, it shares the image to be shared in the sharing area corresponding to the image sharing configuration area.
[0079] This application provides an image sharing method that, through the aforementioned approach, allows users to directly trigger the original image sharing operation after selecting an image in the album, thereby enabling direct sharing of original images from the album to the application, greatly improving the convenience of original image sharing. Furthermore, this implementation displays an original image sharing control, allowing users to easily trigger subsequent operations directly from the original image sharing control in the album after selecting an image, enhancing user convenience. Moreover, the selected image's display position is configured to a specified location, so that when selecting a previously selected image in the image selection interface based on simulated operation, the image to be shared can be directly selected from the specified location by simulated click, improving selection efficiency and convenience.
[0080] Please see Figure 12 This application provides an image sharing method applied to an electronic device, the method comprising:
[0081] Step S310: Obtain the image to be shared, which is the image selected in the photo album of the electronic device.
[0082] Step S320: If an original image sharing operation is detected for the image to be shared, the application corresponding to the original image sharing operation is triggered to start and display the session list.
[0083] In this embodiment, the image to be shared is in a scenario where it is shared to a session. Therefore, when the electronic device triggers the launch of an application that subsequently needs to share the image, it will display the session list after the application launches. In this approach, to facilitate prompting the user to select a session, it can be done as follows: Figure 13 The image displays a prompt message. Specifically, as shown... Figure 13 As shown, the conversation list includes group chat A, group chat B, and group chat C. Correspondingly, a prompt box will appear on the interface, displaying the message "Please select a conversation".
[0084] Step S330: After detecting that a target session has been determined from the session list, the session content interface of the target session is displayed as the image sharing configuration area.
[0085] It's understandable that some image-sharing applications are third-party applications, and electronic devices may not be able to control or read information from these applications. For example, electronic devices may not be able to directly determine whether a user has shared an image through information exchange. Figure 13 The target session was selected. Therefore, as one method, when a touch operation is detected acting on a session in the session list, it can be determined that the target session has been identified from the session list.
[0086] Step S340: Display the trigger control floating within the session content interface of the target session.
[0087] It's understandable that the floating trigger control displayed within the target session's content interface can serve as a switch for the user to initiate subsequent operations. Therefore, in this approach, upon detecting a touch operation on the trigger control, the subsequent display of the image selection interface can be triggered. For example, as... Figure 14 As shown, the trigger control 90 is displayed in a floating manner.
[0088] In one approach, the touch control displays a preview image of the image to be shared. The preview image can be implemented in several ways. Optionally, if the user selects only one image to share in the album, the preview image mentioned in this embodiment can be a thumbnail of that single image. Furthermore, optionally, if the user selects multiple images to share in the album, the preview image mentioned in this embodiment can be a thumbnail of all the images, or a thumbnail of a portion of the multiple images.
[0089] Step S350: If a touch operation of the trigger control is detected, the application is triggered to display an image selection interface in the image sharing configuration area based on a simulated click. The image displayed in the image selection interface is obtained from the album.
[0090] Step S360: In the image selection interface, select the image to be shared by means of simulated click and select the original image sharing effect, so that after the application detects the original image sharing control acting on the image selection interface, it shares the image to be shared in the sharing area corresponding to the image sharing configuration area.
[0091] In addition to the session list, as another method, the step of triggering the application corresponding to the original image sharing operation to display the image sharing configuration area when an original image sharing operation is detected includes: if an original image sharing operation is detected, triggering the application corresponding to the original image sharing operation to display the social information sending configuration interface, wherein the social information sending configuration interface is the image sharing configuration area.
[0092] This application provides an image sharing method that, through the aforementioned approach, allows users to directly select an image from their photo album and trigger the original image sharing operation. This enables direct sharing of original images from the photo album to the application, greatly improving the convenience of original image sharing. Furthermore, in this implementation, after triggering the application launch, a session list interface is directly displayed, allowing users to directly select a target session and subsequently share the selected image directly within that target session.
[0093] Please see Figure 15 This application provides an image sharing method applied to an electronic device, the method comprising:
[0094] Step S410: If an original image sharing operation is detected in the album, the application corresponding to the original image sharing operation is launched to display the image sharing configuration area, and the selected image in the album of the electronic device is used as the image to be shared.
[0095] Step S420: In the image sharing configuration area, the application is triggered to display an image selection interface based on a simulated click. The image displayed in the image selection interface is obtained from the album.
[0096] Step S430: In the image selection interface, select the image to be shared by means of simulated click and select the original image sharing effect, so that after the application detects the original image sharing control acting on the image selection interface, it shares the image to be shared in the sharing area corresponding to the image sharing configuration area.
[0097] This application provides an image sharing method that allows users to directly select an image from their photo album and trigger the original image sharing operation. This enables users to directly share the original image from their photo album to the application, greatly improving the convenience of sharing the original image.
[0098] Please see Figure 16 This application provides an image sharing device 400, which operates in an electronic device. The device 400 includes:
[0099] Image acquisition unit 410 is used to acquire an image to be shared, wherein the image to be shared is an image selected in the photo album of the electronic device.
[0100] The program startup unit 420 is used to, if a sharing operation of the original image of the image to be shared is detected, trigger the application corresponding to the original image sharing operation to start and display the image sharing configuration area.
[0101] As a way, such as Figure 17 As shown, the program startup unit 420 specifically includes:
[0102] The control display subunit 421 is used to display the original image sharing control of the album.
[0103] The startup subunit 422 is used to trigger the application corresponding to the original image sharing control to display the image sharing configuration area if a touch operation is detected on the original image sharing control.
[0104] In one approach, the program startup unit 420 is specifically configured to, if an original image sharing operation on the image to be shared is detected, trigger the application corresponding to the original image sharing operation to display a session list; after detecting that a target session has been determined from the session list, display the session content interface of the target session as the image sharing configuration area.
[0105] Optionally, the program launch unit 420 is specifically used to display a trigger control floating within the session content interface of the target session; if a touch operation of the trigger control is detected, the application is triggered to display an image selection interface in the image sharing configuration area based on a simulated click. The touch control displays a preview image of the image to be shared.
[0106] Optionally, at least one of the original image sharing controls is provided, and each original image sharing control is bound to a corresponding application. In this manner, the startup subunit 422 is specifically used to, if a touch operation is detected on the original image sharing control, trigger the application bound to the original image sharing control to start and display the image sharing configuration area.
[0107] The image sharing operation unit 430 is used to trigger the application to select the image to be shared and select the original image sharing effect based on a simulated click in the image sharing configuration area, so that the application can share the image to be shared in the sharing area.
[0108] In one manner, the image sharing operation unit 430 is specifically used to trigger the application to display an image selection interface in the image sharing configuration area based on a simulated click. The image displayed in the image selection interface is obtained from the album. The application selects the image to be shared and selects the original image sharing effect in the image selection interface based on a simulated click. This is so that after the application detects the original image sharing control acting on the image selection interface, it shares the image to be shared in the sharing area corresponding to the image sharing configuration area.
[0109] In one embodiment, the image acquisition unit 410 is specifically used to acquire a selected image from the photo album of the electronic device as an image to be shared; and configure the display position of the selected image to a specified position. The image sharing operation unit 430 is specifically used to select the image to be shared from the specified position in the image selection interface based on a simulated click.
[0110] It should be noted that the device embodiments in this application correspond to the aforementioned method embodiments. The specific principles in the device embodiments can be found in the content of the aforementioned method embodiments, and will not be repeated here.
[0111] The following will combine Figure 18 This application describes an electronic device.
[0112] Please see Figure 18Based on the image sharing method and apparatus described above, this application also provides another electronic device 200 capable of executing the aforementioned image sharing method. The electronic device 200 includes one or more (only one shown in the figure) processors 102, a memory 104, and a network module 106 coupled together. The memory 104 stores programs capable of executing the contents of the aforementioned embodiments, and the processors 102 can execute the programs stored in the memory 104.
[0113] The processor 102 may include one or more cores for processing data. The processor 102 connects to various parts of the electronic device 200 using various interfaces and lines, and performs various functions and processes data by running or executing instructions, programs, code sets, or instruction sets stored in the memory 104, and by calling data stored in the memory 104. Optionally, the processor 102 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 102 may integrate one or more of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the displayed content; and the modem handles wireless communication. It is understood that the modem may also not be integrated into the processor 102 and may be implemented separately using a communication chip.
[0114] The memory 104 may include random access memory (RAM) or read-only memory (ROM). The memory 104 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 104 may include a program storage area and a data storage area. The program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as touch functionality, sound playback functionality, image playback functionality, etc.), and instructions for implementing the various method embodiments described below. The data storage area may also store data created by the terminal 100 during use (such as phonebook data, audio and video data, chat log data, etc.).
[0115] The network module 106 is used to receive and transmit electromagnetic waves, realizing the mutual conversion between electromagnetic waves and electrical signals, thereby communicating with communication networks or other devices, such as audio playback devices. The network module 106 may include various existing circuit elements for performing these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption / decryption chips, user identity modules (SIM cards), memory, etc. The network module 106 can communicate with various networks such as the Internet, corporate intranets, and wireless networks, or communicate with other devices through wireless networks. The aforementioned wireless networks may include cellular telephone networks, wireless local area networks (WLANs), or metropolitan area networks (MANs). For example, the network module 106 can interact with base stations.
[0116] Please refer to Figure 19 This diagram illustrates a structural block diagram of a computer-readable storage medium provided in an embodiment of this application. The computer-readable medium 1100 stores program code that can be called by a processor to execute the methods described in the above method embodiments.
[0117] The computer-readable storage medium 1100 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read-Only Memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium 1100 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 1100 has storage space for program code 810 that performs any of the method steps described above. This program code can be read from or written to one or more computer program products. The program code 1110 may, for example, be compressed in a suitable form.
[0118] This application provides an image sharing method, apparatus, and electronic device. After acquiring a selected image to be shared from the photo album of the electronic device, if an original image sharing operation is detected on the image to be shared, an application corresponding to the original image sharing operation is triggered to launch and display an image sharing configuration area. In the image sharing configuration area, the application is triggered to display an image selection interface including the image acquired from the photo album based on a simulated click. In the image selection interface, the image to be shared is selected based on a simulated click, and the original image sharing effect is selected. This allows the application to share the image to be shared in the sharing area corresponding to the image sharing configuration area after detecting the original image sharing control applied to the image selection interface. Through this method, after selecting an image in the photo album, the original image sharing operation can be directly triggered, thereby realizing the direct sharing of original images from the photo album to the application, greatly improving the convenience of original image sharing.
[0119] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.
Claims
1. An image sharing method, characterized in that, Applied to electronic devices, the method includes: Retrieve images selected by the user from the photo album on their electronic device as images to be shared; When an image is selected as the image to be shared, the display position of the selected image is configured to a specified position, which is the position at the very beginning of the album; When an image is detected as a shareable image in the album, an image manipulation control independent of the album is displayed in a floating manner. The image manipulation control includes an original image sharing option. If the shareable image is deselected by the user, the display of the image manipulation control is canceled. If a touch operation is detected that affects the original image sharing option, the application corresponding to the original image sharing option is launched to display the image sharing configuration area; In the image sharing configuration area, the application is triggered to display an image selection interface, and the image displayed in the image selection interface is obtained from the album; In the image selection interface, the image at the foremost position is selected based on a simulated click to obtain the image to be shared, and the original image is selected based on a simulated click to share the image to be shared in the sharing area by the application.
2. The method according to claim 1, characterized in that, The method further includes: If a sharing operation of the original image of the image to be shared is detected, the application corresponding to the original image sharing operation is triggered to start and display the session list; After detecting that a target session has been identified from the session list, the session content interface of the target session is displayed as the image sharing configuration area.
3. The method according to claim 2, characterized in that, The step of triggering the application to display the image selection interface in the image sharing configuration area based on simulated clicks includes: A trigger control is displayed floating within the session content interface of the target session; If a touch operation of the trigger control is detected, the application is triggered to display the image selection interface in the image sharing configuration area based on a simulated click.
4. The method according to claim 3, characterized in that, The touch control displays a preview image of the image to be shared.
5. The method according to claim 1, characterized in that, The method further includes: If a sharing operation of the original image of the image to be shared is detected, the application corresponding to the original image sharing operation is triggered to start and display the social information sending configuration interface, wherein the social information sending configuration interface is the image sharing configuration area.
6. An image sharing device, characterized in that, Operating in an electronic device, the device includes: An image acquisition unit is used to acquire an image selected by the user in the photo album of an electronic device as an image to be shared; when an image is selected as an image to be shared, the display position of the selected image is configured to a specified position, wherein the specified position is the first position in the photo album; The program launch unit is used to display an image operation control independent of the album when it is detected that an image has been selected as a shareable image in the album. The image operation control includes an original image sharing option. If the image to be shared is deselected by the user, the display of the image operation control is canceled. If a touch operation is detected on the original image sharing option, the application corresponding to the original image sharing option is launched to display the image sharing configuration area. An image sharing operation unit is configured to trigger the application to display an image selection interface in the image sharing configuration area, wherein the image displayed in the image selection interface is obtained from the album; to select the image at the frontmost position in the image selection interface based on simulated click to obtain the image to be shared, and to select the original image for sharing effect based on simulated click, so that the application can share the image to be shared in the sharing area.
7. An electronic device, characterized in that, Including the processor and memory; One or more programs are stored in the memory and configured to be executed by the processor to implement the method of any one of claims 1-5.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores program code, wherein the program code, when executed by a processor, performs the method according to any one of claims 1-5.
Citation Information
Patent Citations
Method and server for providing picture data for computing terminal
CN102984151A
Photo sharing apparatus and method
CN105897564A
Color image authentication method based on palette compression technique
US20190213711A1
Methods and devices of sharing image content
CN107908337A