Reputation:
We're setting up a WordPress site. Currently, it has approximately 50 images in its media gallery. I noticed when uploading WordPress seems to create multiple copies of the images in various sizes (small, medium, large). Most of those we aren't going to use.
So I got to wondering about just uploading the images elsewhere on our server and referencing them through a relative URL.
The one distinct advantage that would give us is we could easily control the folder structure around the images.
What I was wondering if anyone can suggest advantages and disadvantages of using the file system and referencing the images through a relative URL directly vs from the Media Gallery?
So instead of uploading and having WordPress store them in:
/public_html/wp-content/uploads/2016/07
we would reference them from our web folder:
/public_html/images/travel/
and
/public_html/images/interests/
and so on and so forth.
Thanks!
Upvotes: 0
Views: 481
Reputation: 135
Advantage:
As you've mentioned, better structure and control over the images.
Disadvantage:
Some Wordpress core features may not work as intended. For example, the build-in gallery uses those resized images for thumbnails. Also, various plugin may also use them. It's not a big deal, if you are using completely customized WP.
Possible Workaround: You can still use the "wp-content/uploads" folder without the ugly categorization by dates. Go to Settings > Media, un-check the following option "Organize my uploads into month- and year-based folders". New images that you upload through your Wordpress Media section will go directly to "wp-content/uploads". Take note that old images will not be affected by this option.
Upvotes: 1