• Abhimanyu

    (@princeeternity)


    Suppose I upload an image in the folder “domain.com/htdocs/wp-content/uploads/2015/01”

    Now, that image should show up in Library, right? It doesn’t.

    Although I use the plugin Add from Server to add pictures that ARE NOT uploaded to WordPress default folders (the year folders: 2013, 2014, 2014, etc.), I think addition in the Media Library should be automatic when I add the image in one of the default folders.

    I need the image I uploaded to 2015/01 manually with FTP to be displayed when I click on Add Media and select January 2015 from the drop-down. Is there any way to do this?

    Extra note: Actually I dislike how WordPress makes different versions of any image you upload, therefore I’m using FTP and adding direct links to my posts (without the “/htdocs” part in the URL, the URL works). So if there’s some good reason behind WordPress making different formats, I would like to know and would stop using FTP. If it’s not important, then how can I stop this behaviour?

Viewing 4 replies - 1 through 4 (of 4 total)
  • please use media library to upload in that case.

    Actually I dislike how WordPress makes different versions of any image you upload

    they are made for a reason,to be used as thumbnails of various sizes, else original image is displayed with size options , which feels waste of resources.

    if you dont want that you can create a child theme and add following code in child theme’s function.php

    function change_image_size_limit() {
    return 0;
    }
    add_filter('wp_thumbnail_creation_size_limit','change_image_size_limit');

    EDITED – cross-posted :)! See above.

    WP won’t “see” images uploaded via FTP – not expected to work that way.

    WP makes different sizes of images so they can be easily used by themes displaying the various sizes on your site.

    Thread Starter Abhimanyu

    (@princeeternity)

    Okay now I imported some FTP uploaded files to the Media Library after adding the code in the functions.php file. I still get a lot of image variants.

    Btw, my theme doesn’t use multiple variants anywhere, in short, I really don’t need them and on analysing, I’ve seen that all those sizes together more than double the file size, so if I’m uploading 1GB of images, my server is being crammed with 2GB, 50% of which is plain useless for me.

    Here’s a screenshot of this: https://i.imgur.com/RhaCiL4.png

    that is lot of images. normal wordpress dont generate so much of different sized thumbnails.

    did you tried above code? try it and then upload a new image and see how much thumbnail it creates.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Adding images via FTP to 2015/01 but image not displaying in Media Library’ is closed to new replies.