Whatever is in the wp-content/uploads
directory is not source, it is data, some of it is automatically generated. Images related to source code, like images used in CSS should “live” in the theme or plugin files.
It is possible to use the likes of GIT over that directory, but the results will lack any sensible versioning information (no comments on why a file got there, not way to associate that channge with a new post being published etc) which degrade the whole thing into just a not very efficient backup system.
P.S. If you are doing any change on production which needs to go into version control, then you are doing it wrong. Changes need to be tested on development or staging servers, pushed into git and only then pulled into production (git or just FTP or maybe composer, whatever works for you).
Related Posts:
- Image quality based on image size
- What is a good alternative to using $content_width for image optimization?
- Can I attach image to post without adding it to post?
- How to avoid WordPress stripping EXIF metadata when resizing images?
- Navigate with keyboard in Gallery shortcode
- wp_get_attachment_image_src problem
- Can WordPress resize BMP files?
- How to include externally hosted images into a gallery block
- Insert Images at Master Uniform Height
- Link to File URL by default
- How to Display an Image Uploaded through a Meta Box in a Template?
- Responsive background images added inline
- How to make programmatic image upload generate thumbnail and sizes?
- Editing built in Gallery shortcode to filter by categories
- How to remove buttons from gutenberg toolbar
- Random popup image per user with no repeat
- Speed of the slider images should be increased in wordpress
- Get full image array
- attach unattached featured images to respective posts
- Display number of images actually posted
- Confusion about arguments sent to add_image_size
- Is it possible to pull and display a single landscape oriented image
- Remove image classes from post thumbnail output
- change the $content_width
- Different image sizes for home and post pages
- Show full image thumbnail
- upload featured image in custom post type from frontend
- Make medium_large images available to insert into post
- WooCommerce-like featured gallery
- Removing height and width from images with a caption
- Creating a thumbnail from an image already on the server?
- Images not showing on blog
- Alter the image, before save, of a particular image size
- Why does Google Image Search still display my images?
- Dynamic tagged image galleries
- Image auto resize
- WP fails to upload files to media library, /wp-admin/async-upload.php 403 forbidden
- Empty alt/title form check in media library
- Images stopped loadding after adding SSl
- How To Get The File Extension Of Images Having Different Extensions In A Directory?
- GoDaddy Number of Image Files Per Directory Exceeded
- Post and featured image have the same name, why is the attachment (image) is showing and not the post?
- add_image_size wont work after get_intermediate_image_sizes
- Ways to show multiple, separate galleries per post?
- Stop WordPress from cropping images using url parameters
- How to get the image-URL from Media-Upload in a post?
- How to get the Gallery form/section just like in Gutenberg block?
- One of my image sizes isn’t showing up in srcset
- Conflict with single and double quotes
- Featured Image Cetegory Not Shown In WordPress
- How do I get a smaller size of an avatar image
- download link for uploaded images for wordpress
- Force default OG:Image – Yoast SEO [closed]
- after migration, newly uploaded images won’t show up
- Why do I have blury images in WordPress
- Disable save as image on smartphones using all browsers ( chrome, firefox, ie, cm, opera )
- How to get the title of the random images from media library?
- How To Display Author Photo In WordPress without any plugin?
- Alter the image used for a user who has not uploaded a custom image yet
- Allow users to upload multiple images to their profile
- how to change format jpg to webp?
- User uploads image as “Featured Image” but WordPress resizes it?
- Allow a specific user role I have created to only upload one image to his media library
- Implementing a modal(lightbox) for all images in all post-gallery posts
- Hide Title tag on image Hover
- how to regenerate webp et-pb-portfolio-image
- How to increase media image scale limit?
- How do I avoid color distortion of uploaded images?
- Where to put code that customizes API
- Force WordPress to always generate a thumbnail for original image
- How to get the best resolution of image from srcset
- How to auto add image caption from image alt?
- File upload size limit in wordpress and php.ini limit
- How to add php to theme to show alt attributes
- Display Title/Description/Caption of custom images on homepage
- Blank image thumbnails in media library
- Getting extra image links in code with wp_get_attachment_image
- featured image in custom poste type (backend)
- Unable to delete images in Media Library
- How to show only one image in homepage
- Broken imges after moving wordpress website from localhost to server [closed]
- click on Gallery picture but pictures doesn’t appear
- How to Generate Custom Image Size in Uploads Folder?
- set specific dimension or minimum upload size [duplicate]
- Select image and display from textfield?
- Content around featured image
- Getting featured image of blog page rather than post image
- Upload button in metabox not working
- Add custom version to an image
- (Dynamically) Decrease the actual image size for downloads
- wordpress images not display [closed]
- How to get customable image header?
- Get content from one WordPress website to another
- How to import external media items into wordpress media library (without using storage)
- I am having trouble displaying an image at the top of a widget area [closed]
- How to return responsive images from a sanitize_callback?
- How to disable Right Click on a image? [closed]
- Can’t upload svg files in WordPress
- Images uploaded in customized gallery do not link to media
- WordPress Site Broken and it gives Headers Already sent error