Recently started using Google Cloud platform bucket to store all my wordpress images. As many of you know wordpress creates many thumbnails from the original image that was uploaded.
I have been able to link the image from the google bucket to wordpress. But from time to time I update the image. I thought it would have automatically updated the thumbnails as well. But this is not the case.
Scenario - I upload main image into wordpress media library. It creates two other images plus original eg Image.jpg; Image-510x383.jpg; Image-115x85.jpg
Only the Image.jpg is visible in the Google Bucket. Should I reupload the image with a change using gsutil. The main full scale image changes on wordpress live site but the thumbnails remain the old versions.
How do you find were these thumbnailed images are in Google bucket so I can resync them easily as well.
Thanks for any assistance.
Check out the WP-Stateless plugin - it's free. https://wordpress.org/plugins/wp-stateless/
It will manage the process of uploading your images and other files (PDFs, MP3s, etc) to Google Cloud Storage, including all the thumbnails WordPress generates. It supports several modes, including a mode that will delete the local file since it is no longer needed.
Related
I have a lot of pictures on my homepage. Of course, this also requires a lot of disk space. Now I got the glorious idea that I don't store the images on the website, but on an external source (like Dropbox or Google Drive). There I can then also manage my own folder structure and do not have to use this stupid structure of Wordpress.
So the idea is that I can display images on my wordpress page, that are stored on an external source. Is this possible and how?
Actually you can achieve that but with a little bit different approach. Since you can't get public links to the images in your Dropbox or Google Drive, you might wanna try AWS S3 or Google Cloud Storage instead.
I want to use Google Cloud Storage (GCS) to share my videos on my WordPress LMS, for that, I am using WP-Stateless which during setup which requires to provide public access to my GCS bucket.
Now my issue is that I want my users to be able to view the media files but not be able to download them.
Is there any way to do that?
There is no way to prevent users from downloading images from your website. In fact when users view your images in a browser, they are downloaded to your browser cache. You can take some measures like:
Prevent right click
Disable hotlinking
Add a watermark
Add a copyright notice etc etc...
But realistically there is not much you can do. Everything you do to protect your images can be bypassed. You could also use a plugin to convert your images to webp format. Most people do not like downloading webp. They prefer jpg and png :)
I have a wordpress site, and it has more that 30k posts.
Every post has own feature image, and each feature image has 10 responsive sizes.
#10076 post has 13 thumbnails
So there are about 300k image files, and this reaches to the File Usage Limit(inode limit) of hosting service.
File Usage Indicator
How can I reduce the number of thumbnails?
For example, when we use 2~3 thumbnails, we can store 120k~180k posts.
Well, are there any other hosting services which can store more than 300k files?
Sure, it is possible. There are several plugins in the WP repository that will automatically push uploads to S3 or some other CDN (e.g. WP Offload S3 Lite).
But the biggest challenge you'll face is in migrating the huge collection of images you already have. Anything you run from a web browser will almost certainly die trying. WP-CLI is the only real option for large-scale maintenance tasks. Take a look at S3-Uploads.
Alternatively you could push files to S3 manually and dynamically rewrite media URLs in WordPress by hooking into post_thumbnail_html or some such. You could build a cachable "does this exist?" check into your filter so it only rewrites image URLs that can actually be found at Amazon.
empty your trash folder in File Manager and file usage will drop significantly.
I'm trying to make a gallery photo on website and my client need to upload these photos unto dropbox or google drive.
I've embed a gallery from google drive in my website and it works perfectly (which means I can see the photos). But, when I click on a photos, it redirects me on google drive and its not a good rendering.
I've also try this solution : pull and display images in website gallery from dropbox directory. It seems to be a good solution but unfortunatly, nothing appears on my website.
Anyone has a solution? I really need my client to manage himself is gallery photo without having to put it on FTP.
Thanks
Take a look at the Google Drive SDK and API, which allows you to get the list of files in a Drive folder and URLs that can be used to view the image directly. Depending on your needs, you can turn this into a gallery, use a lightbox to display the image, or whatever you specifically need.
You may also want to take a look at using Drive to publish website content. You may still need to write some code to create the gallery portion, but this provides an easy public place to store and manage the uploaded images.
I am using a wordpress site, and using the Formidable Pro plugin to create forms for users to submit pictures frontend as posts.
As the form is created using formidable, any pictures uploaded by user goes to a upload folder in the formidable directory in my FTP.
I want to use Amazon S3 to host all the images uploaded by users and also for these images to be shown in posts like how it was supposed to work.
How do I go about doing this? Must I use a W3 total cache plugin or super cache plugin? Is there another alternative?
There is the S3 and Cloudfront plugin you can try
http://wordpress.org/plugins/amazon-s3-and-cloudfront/
The only caveat to this, is that the images are loaded onto your server first, then uploaded to S3.
You may need to install a plugin to do this for you.
For example, there this plugin that's allows you to put a shortcode on any post/page to show S3 files: http://codecanyon.net/item/wordpress-aws-s3-browser/6470423
Check out the Live DEMO here: http://www.awss3.redwanhilali.net/?page_id=5#
You can use a service like img.vision.
It has a plugin at wordpress.org: https://wordpress.org/plugins/img-vision-button/
Steps:
Upload images at img.vision
Install plugin into your wordpress (you'll need to grab your api key from img.vision)
Create pages or posts and use the Img.vision button to add images from your account
Disclaimer: I created this service and after the 30 day trial you need to pay for a max image limit. NO need to pay for S3 or CDN bandwidth separately.