Forums

[resolved] WordPress is saving the same image multiple times (22 posts)

  1. saqib13
    Member
    Posted 7 months ago #

    Recently I noticed that my hosting file size just went up to 17000. I was quite shocked since I've only uploaded around 2000 images.

    When I checked my upload folder in wordpress I noticed that the same images are being saved multiple times in multiple resolutions.

    For example:
    X-Men-Destiny-Character.jpg
    X-Men-Destiny-Character-36x36.jpg
    X-Men-Destiny-Character-620x250.jpg
    X-Men-Destiny-Character-640x250.jpg

    The same image has been saved three times but in four different resolutions. Is this a problem with my theme?

    How can I fix this?

  2. esmi
    Theme Diva & Forum Moderator
    Posted 7 months ago #

    No - that's normal. See Settings->Media.

  3. saqib13
    Member
    Posted 7 months ago #

    So what do i do to stop it from saving the images in three different versions?

  4. esmi
    Theme Diva & Forum Moderator
    Posted 7 months ago #

    Try setting the dimensions for all of the images in Settings ->Media so that they are much larger than the images you will be uploading.

  5. saqib13
    Member
    Posted 7 months ago #

    tried with dimensions 0 and then 2000 (larger than my images). Didn't work. It's still making multiple versions of the same image.

  6. saqib13
    Member
    Posted 7 months ago #

    anyone else who can tell me how to disable the multiple version of images I upload?

  7. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 7 months ago #

    You will always get multiple images.

    1) Thumbnail
    2) Medium
    3) Large (IF and only if the size of your image is larger than the largest dimensions).
    4) Original image.

    This is by design.

  8. saqib13
    Member
    Posted 7 months ago #

    ah crap.. this way i'll be reaching my hosting's limit :(

  9. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 7 months ago #

    Your host has a limit on the number of files you can have?

  10. saqib13
    Member
    Posted 7 months ago #

    yes.. 50,000.

  11. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 7 months ago #

    Get a new host.

    That's ... I can see it being done per FOLDER, but not total number of files. That would screw up so many apps!

    ETA Wait, are you talking about GoDaddy?

    http://community.godaddy.com/godaddy/announcing-a-new-shared-hosting-file-limit-policy/

    That's actually 500,000 files.

  12. lindafar
    Member
    Posted 7 months ago #

    I too do not want multiple sizes of images being stored on my server - I have an image-intensive site and I upload the exact size images I'm using.

    Would it cause WP database problems if one removes the extra, unwanted, unnecessary images by FTP?

    IMHO - The "by design" thing should have an option NOT to have multiple images created because that's a lot of unnecessary bloat for some of us.

  13. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 7 months ago #

    lindafar - Remember WP was designed as a CMS, not just a Gallery, and cannot presume that you'll only want one image size. By uploading smaller sizes, it allows for more flexibility. Many themes are built with this in mind, and removing it at this date just isn't going to happen.

    Also, with the concept of decisions, not options, it's easier and more sustainable to have it set so you get three images sizes:

    Thumnail
    Medium
    Original (provided you set your 'large' size to the exact size you're uploading)

    The images are compressed, and shouldn't take up too much room, especially not in today's era. Back when 10megs was normal for upload space, yeah, that would be a problem.

    If you delete the resized images, the DB will be fine, but you may run into issues with themes.

  14. lindafar
    Member
    Posted 7 months ago #

    Thanks for letting me know about the potential theme issues. BTW, I don't have a gallery, just that every post has an image and I have a lot of posts.

  15. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 7 months ago #

    Every post I make has an image, too. :) 600x400 for the front page slider, then it also uses the thumbnail for archives. Sometimes I use the thumbnail or medium sized image inside the post for style.

    This is good. This means a browser never has to resize an image and thus draw more load/data off my server. It means I use the right image size in the right place :)

    It's good webdesign.

  16. Theo F
    Member
    Posted 6 months ago #

    I have got the same problem as Saqib and Linda and unfortunately I do not think that this can be explained by the three sizes set under Media. Quite a few png-files that I uploaded now exist in 25 different resolutions.
    This happened when I imported my blog after I changed host provider. With my previous host my blog only used 12 MB diskspace. After the import this suddenly became over 300 MB diskspace. The size of the MySQL database on both servers is about the same.
    If anybody knows why this happens (and how I can change this) I would sure appreciate it.

  17. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 6 months ago #

    Are you uploading more images?

    These should never exist in 25 sizes, unless your theme or a plugin is doing that.

  18. Theo F
    Member
    Posted 6 months ago #

    Ipstenu, you probably mean did I upload several copies of the same image. No, I did not. Like I said: this happened during my import. All those image(copies) that cause the increase in used disk space were uploaded/created in the 2 or 3 minutes that it took for the import to take place. It's probably the WordPress Importer plugin that is the cause and I have signaled this problem at plugin page.

  19. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 6 months ago #

    I dont think that could happen (I've used that importer a lot, no issues when importing images).

    Assuming you DID NOT adjust your media sizes before importing, it's possible that you got this:

    image.jpg
    image-largexlarge.jpg
    image-medxmed.jpg
    image-smallxsmall.jpg

    Those you'd expect. BUT if you have different image sizes on the new site, you may also get:

    image-oldlargexoldlarge.jpg

    and so on.

    But double check the EXACT number per image. 25 seems exceptionally high. 7 I could see, easily.

    And I will repeat this: No decent host is going to limit your files to 50,000 total (or to LESS than 100megs). The LOW end hosting on my host ($15 a month) comes with five gigs of space. GoDaddy's $5/month crap hosting is 10 Gigs.

    Diskspace is cheap. If you're getting less than a Gig, move.

  20. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 6 months ago #

    I dont think that could happen (I've used that importer a lot, no issues when importing images).

    Assuming you DID NOT adjust your media sizes before importing, it's possible that you got this:

    image.jpg
    image-largexlarge.jpg
    image-medxmed.jpg
    image-smallxsmall.jpg

    Those you'd expect. BUT if you have different image sizes on the new site, you may also get:

    image-oldlargexoldlarge.jpg

    and so on.

    But double check the EXACT number per image. 25 seems exceptionally high. 7 I could see, easily.

    And I will repeat this: No decent host is going to limit your files to 50,000 total (or to LESS than 100megs). The LOW end hosting on my host ($15 a month) comes with five gigs of space. GoDaddy's $5/month crap hosting is 10 Gigs.

    Diskspace is cheap. If you're getting less than a Gig, move.

  21. Theo F
    Member
    Posted 6 months ago #

    Ipstenu, bit odd that you think that you know better than me how many image(copies) I found on the server. Agree that 25 is exceptionally high. But there are 25 copies and they got created during the import. I also think that you should look at the experience of others with this plugin and not assume that because you did not have any problems others don't. Visit the plugin page and see the recent experience of other users.

    Why you are rambling about the limit is lost to me. Nothing in my message about this. If you are reacting to the earlier message of someone else it's good forum practise to make that clear in your reply.

    Must say that I am amazed by your reply because you're assuming things which have nothing to do with the facts and going on a tangent about limits set by the host and the quality of a host which also have nothing to do with the actual situation and what was in my message.

  22. Ipstenu
    Half-Elf Support Rogue & Mod
    Posted 6 months ago #

    Of note - The original posts (by saqib13) in this topic had to do with space and number of images. You're the one who tangented :)

    And I didn't intend to imply I knew what was on your server, I was expressing surprise at the number and (politely) asking you double check they're all the same name etc because in my experience, that's really weird. I like to have the evidence :)

    Actually, the more I review and think about your post, the less it has to do with the OP, which was clearly a question about why he got 4 images for each upload (by design). You have a similar, but different issue, and you correctly made a new post here: http://wordpress.org/support/topic/plugin-wordpress-importer-import-results-in-25-different-resolutions-of-same-image-file?replies=1

    Which is exactly what you SHOULD do, thank you :) So this topic, really, is resolved. Adding 3 to 4 images per upload is by design. Adding 25 is wildly not. But this should be continued in your topic, to be polite to everyone.

Reply

You must log in to post.

About this Topic

Tags

No tags yet.