Wechat development, photo uploadRegarding the photo upload in WeChat development, the following are some related processes and precautions:
** 1. Basic photo-taking process **
1. ** Before taking photos **: Show the cancel and take photos buttons.
2. ** After taking a picture **: Show the previews and the buttons to retake, cancel, take a picture, and upload.
- He clicked on the retake button, and the previews were replaced by the photo interface.
- He clicked on upload and uploaded the pictures for the previews.
- He clicked cancel and returned to the previous interface.
** 2. Development environment related (if it involves the development of webpages or Mini programs and other related photo uploading functions)**
1. ** In terms of technical support **
- If the development of the Mini programs involved functions such as photo uploading, it was developed based on the HMTL5 technology, and the Mini programs server provided services for data storage, transmission, and processing, which was the core part of the Mini programs. At the same time, the WeChat Android was the technical interface provided by the official WeChat to the developers, which helped the developers better use the Mini programs on WeChat and provided a rich functional interface to quickly build the Mini programs.
- In the development environment, such as vue.js, native h5 input file, Weixin Official Accounts webpage:
- In terms of installation, if there was a problem with the direction of the photo taken under the IOS-OS, exif-js was needed to read the photo information and rotate it;axios was used to request support in an synchronous manner;vuex was mainly used to store progress information and execute the "npm install exif-js--save" command.
2. ** Code-related (the code logic of the photo-uploading function in the example)**
- In photoHandle.js, there is a related method:
- There was an image upload method called "uploadImg", which accepted an input node "dom" to get the image and a configuration object "config". In this method, the image would be analyzed, such as obtaining the node through "document. queryListener (dom)", obtaining the file "file = $c.files(0)", constructing the FormData object "param = new FormData()", and using the operations such as "reader = new FormReader ()" to prepare for subsequent image processing. The following methods included compressing the image "imageCompress" method, converting the compressed base64 string into a blob file stream object "dataURItoBlob" method, and aja upload "upload" method.
3. ** Problems and solutions that may be encountered (parts related to photo upload, such as photo orientation problems)**
- During the development process, if it involves taking photos under the OS, there may be problems with the direction of the photo. You can use exif-js to read the photo information and rotate it.
<a href="/?from=ask_words" style="color:red" target="_blank">Read more exciting novels for free</a>
Intermediary card, photo uploadIf the intermediary took photos and uploaded relevant information when applying for the card, there was a certain risk. Some unscrupulous agents might cheat information and collect all personal information, including identity information, work, education, family, relatives and friends, etc., for sale. If the intermediary claimed to help apply for a credit card and asked for card information (such as the expiration date, the last three security verification codes on the back, the transaction password, etc.), they might use this information to transfer funds online. There were also unscrupulous agents who asked for scanned ID cards or remote Face Recognition, original savings cards, etc. in the name of card application. It might be to swindle the savings card and then sell it or carry out illegal activities such as money laundering.
However, when a formal intermediary handles business, they will protect the customer's information security according to the prescribed procedures and bear certain legal responsibilities. However, when selecting an intermediary, they still need to carefully evaluate their reputation and service level, clearly inform the other party of the purpose and scope of information use and ensure information security.
<a href="/?from=ask_words" style="color:red" target="_blank">Read more exciting novels for free</a>
There was a problem with the photo assignmentIf there was a problem with the photoshoot, there might be the following situations:
- ** Picture shooting problem **:
- ** The paper is not flat **: There may be a concave or protruding part in the middle of the picture, which will affect the aesthetics and reading.
- ** Hand trembling **: causes the handwriting to be blurred and difficult to read.
- ** Shadows **: If the shadow of a mobile phone or a person appears on the screen, it will interfere with the viewing of the homework content.
- ** There is junk on the screen **: Too much junk in the screen will distract attention and reduce the cleanliness of the screen.
- ** Not rotated correctly **: The job was not uploaded in the positive direction, which does not conform to the viewing habits.
- ** Light Distortion **: For example, the color of the handwriting will fade or change, affecting the clarity.
- ** Not in focus **: Part of the content is blurred.
- ** Content-related problems **: There may be situations where the homework content does not meet the correct uploading standards, or there may be formalism problems, such as ignoring the quality of the homework content itself in order to complete the work of leaving marks such as taking photos and videos.
<a href="/?from=ask_words" style="color:red" target="_blank">Read more exciting novels for free</a>
Mobile phone photo upload plug-inIn the development of the Ionic mobile terminal, the following plug-ins can be used to upload photos:
1. Activating the camera plug-in on his phone:
- Link: <strongionicframework.com/docs/native/camera
- node installation: ion cornova pluginadd cornova-plugin-camera, npm install @ ionic-native/camera
- Introduction: import {CameraOption} from '@ ionic-native/camera/ngx'; use it in the construct function through construct (private camera: CameraOption) {}.
2. The upload plug-in, File Transfer:
- Link: <strong></strongionicframework.com/docs/native/file></strong>
- node installation: ion cornova plug add cornova-plug- file - transfer, npm install @ ionic-native/file - transfer
- Introduction: import {FiletTransfer, FiletUploadOption, FiletTransferObject} from '@ ionic-native/file - transfer/ngx'; import { File } from'@ ionic-native/file '; Use it in the construct function through the construct (private transfer: FiletTransfer, private file: File) {}.
In addition, Ionic's project can also use the ng-file- upload plug-in to select pictures or photos from the phone's photo album and upload them to the server. You can download the ng-file- upload plug-in through bower, introduce 'ngFilupload' in the app, and set the corresponding settings in the browser and controller to achieve the function.
<a href="/?from=ask_words" style="color:red" target="_blank">Read more exciting novels for free</a>
Can I upload a photo to my story?Sure! Usually, in many social media apps or websites, there's an option to upload photos to your story. Just look for the 'upload' or 'add photo' button.
How can I upload a photo to a story?The process can vary depending on the platform. But generally, you need to find the specific upload feature for the story. It might be in a menu, or maybe there's a plus sign to indicate adding something. Once you click that, browse your files to select the photo you want to upload.
How can I upload a photo on Story?It's usually quite simple. Just look for the upload icon or option within the Story feature and follow the prompts.
2 answers
2024-10-13 14:41
How to upload a mobile phone photo to the TVThere are several ways to upload photos to the TV:
1. Use Wi-Fi to connect your phone and TV. Open the Wi-Fi settings on the phone, find the connected Wi-Fi network, select the corresponding network on the TV, and then download and install the corresponding application on the phone to realize the photo transfer.
2. He connected the phone to the TV with an HD cable. Plugging in the Bluetooth cable to the corresponding ports of the phone and TV, then opening the corresponding application on the phone, you can transfer the photos.
3. Use the cloud storage service to upload the photos to the cloud and access and view them on the TV.
4. If it was a Xiaomi TV, first make sure that it and the phone are connected to the same Wi-Fi network in the local area network. Then, in the app store of the Xiaomi TV,(Mi Store) to search for and download an application called "shared album". After opening the application, a QR code or device name will be displayed, indicating that it is waiting for a connection; Then, he opened the "photo album" application on his phone and made sure that the phone and TV were on the same Wi-Fi network. He navigated to the photo or video option, selected the file he wanted to upload, and clicked the share icon. The phone would automatically search for devices in the local area network. After finding the Xiaomi TV and clicking its name, the phone would generate a connection code. After confirming that the connection code displayed on the TV matched it, he could choose the file type and folder to upload to the TV and start transferring.
5. Prepare a USB data cable, plug the USB plug into the USB port of the TV, and plug the other end into the charging port of the mobile phone; start the TV; press the "signal source" button; find the USB mode in the signal source menu, select it, and press the confirm button to enter the file storage interface of the mobile phone; after entering the file storage interface of the mobile phone, find the folder where the picture file is stored, open the folder, find the picture file, and press the confirm button to start playing.
6. For a TV that can be plugged into a USB flash drive, you can put the photos in the phone in the USB flash drive first, plug it into the TV, and select the USB function to view them. If the TV is a smart TV, the phone can download a "Multi-screen interaction" software. As long as the phone and the TV are in the same Wifi environment, you can watch it through this software. If the TV is connected to a box and the box is in the same Wifi environment as the phone, you can cast it on the TV through the box.
<a href="/?from=ask_words" style="color:red" target="_blank">Read more exciting novels for free</a>