But I can’t think of a better solution yet. This is not only slow but also kind of stupid. rm -rf /home/pi/MagicMirror/modules/MMM-BackgroundSlideshow/ImagesJPEG/* My workaround is that I clear the pictures folder in MM every time and fill it all over again after a new sync. A simple synchronization does not work, because in the google folder are heic files and in my MM are now the converted JPEGs. My problem is now, I want to delete the deleted images in google Drive also on the pi. I then specified this location as the image path in MMM-BackgroundSlideshow. In the code it looks like this: mogrify -path /home/pi/MagicMirror/modules/MMM-BackgroundSlideshow/ImagesJPEG -format jpeg -resize 2560x1440 /home/pi/Pictures/*Īll images in all formats that can be found in /home/pi/Pictures/* will be converted to JPEG in 2560x1440 pixels and saved to /home/pi/MagicMirror/modules/MMM-BackgroundSlideshow/ImagesJPEG. Now begins the part where I’m not 100% happy yet. If you delete a picture in the google-drive it will be deleted on the pi the next time you run the script. Now you have all pictures synced in pi/Pictures. Rclone sync googleDrive:MagicMirror /home/pi/Pictures/ You have to use your own google client-id for rclone, see here:.Use rclone to synchronize between Raspberry and google drive:.Create a dedicated MM folder on my Google drive.Feedback and improvements are very welcome though. I’m also writing this a bit for me as a doc so I can get it installed again in the future. the converted photos are displayed as background in MM.the photos are converted to the right format (resolution and file format) on the Raspberry.Google-Drive synchronizes with a folder on the Raspberry.the google drive is accessible to the family. ![]() copy the photos from the cellphone to a google drive.I have the following idea and attempted solutions and am posting them here for discussion. I also want other family members to be able to save photos. In other words, HEIC should help you future-proof your memories.My plan is to use my phone to get photos on my MM as easily as possible to display in the background. Space savings aside, the technical advantages of HEIC images can play a factor years down the road. Unless you have severe compatibility issues among your devices, we recommended sticking to HEIC over JPG. Similar options should also be present on other HEIC (or HEIF) supported photo capture devices. On the iPhone, for example, head over to Settings > Camera > Formats and select Most Compatible to change the camera’s capture setting from HEIC to JPEG. You can still switch back to shooting in the JPEG format. On the iPhone, that should automatically happen while sharing images without you even noticing. But, it’s relatively easy to convert HEIC files to JPG as and when needed. You do have compatibility issues to deal with. You get incredibly lower-sized images at nearly, if not better, quality than JPEGs. HEIC is the superior format in almost every way. That should help it gain more traction over time. On another positive note, newer versions of photo-editing software such as Adobe Lightroom, GIMP, and Pixelmator have begun supporting the HEIC format. Due to licensing issues, though, the HEVC codec needed to decode HEIC images costs $0.99. In Windows 10, for example, you must download the relevant codecs separately from Microsoft. But, there are lots of asterisks involved. Most platforms outside the Apple ecosystem also support the format. JPG – CompatibilityĪny iPhone or Mac running iOS 11 or macOS High Sierra can open HEIC images. On the other hand, the JPG version of a Live Photo comprises a still image and a 3-second MOV video clip that uses up more storage space. ![]() With Apple’s Live Photos, for example, the format can save subtle differences in frames instead of capturing separate images. HEIC is also much better at capturing image sequences. Still, you end up with terrific-looking images at just half the file size. Apple’s smartphone cameras, for example, are limited to capturing images in 10-bit color. The features above apply to the HEIF format in general and not necessarily to the HEIC variant of images shot on the iPhone. 16-bit colors (as opposed to JPEG’s 8-bit color profile). ![]()
0 Comments
Leave a Reply. |