Join the Soledad Facebook Users Group here
for Share, assistance, discussion, and Updates related to Soledad WordPress Theme.

If you can't create a new ticket - you can send us an email via our contact form and we will get back to you.

Okay
  Public Ticket #1340872
Sizes and total number of theme's created images
Closed

Comments

  • panospan started the conversation

    Hi,

    in the theme that I am using right now, I use only three (3) sizes for my images, and these are:

    Thumbnail: 100x150
    Medium:    300x450
    Large:     700x1050
    Full Size: 700x1050

    So the images that are being created for every image that I upload are only four (4). The original one (full size), which is 700x1050 and the other three (3).

    In your theme I intend to use the same size for the original one, which is 700x1050, and I already have created the design that I want to use. When I tried to upload a picture to the media gallery of my testing site, I realized that I can get the sizes of the thumbnail and medium images, but not the large size of it.

    Much more, the impact on the storage folder of my images, on the host server of my site, was huge I think, because for the upload of just one (1) image, I got back totally 14. You can see the attached image of mine, where you can see also that there isn't any large image 700x1050, except of course the original one, (redhead-illusion-fashion-blog-by-menia-bet-and-malfie-silk-scarf-01.jpg).

    In the functions file of your theme I found out the below code:

    // Post thumbnails
    add_theme_support( 'post-thumbnails' );
    add_image_size( 'penci-full-thumb', 1170, 0, true );
    add_image_size( 'penci-slider-thumb', 1170, 663, true );
    add_image_size( 'penci-magazine-slider', 780, 516, true );
    add_image_size( 'penci-slider-full-thumb', 1920, 800, true );
    add_image_size( 'penci-thumb', 585, 390, true );
    add_image_size( 'penci-masonry-thumb', 585, 99999, false );
    add_image_size( 'penci-thumb-square', 585, 585, true );
    add_image_size( 'penci-thumb-vertical', 480, 650, true );
    add_image_size( 'penci-thumb-small', 263, 175, true );

    Could you please tell me what do I have to change, so as to get the result that I want, without to clutter the storage of my site with unwanted images?

    You can visit the test site of mine (www.redheadillusion.com/testred1) if you want,  to get an idea of the size of the images that I use. 

    Best regards,

    Panos

     

  •  2,697
    PenciDesign replied

    Hi,

    If so, I think you can remove this code:

    add_image_size( 'penci-full-thumb', 1170, 0, true );
    add_image_size( 'penci-slider-thumb', 1170, 663, true );
    add_image_size( 'penci-magazine-slider', 780, 516, true );
    add_image_size( 'penci-slider-full-thumb', 1920, 800, true );
    add_image_size( 'penci-thumb', 585, 390, true );
    add_image_size( 'penci-masonry-thumb', 585, 99999, false );
    add_image_size( 'penci-thumb-square', 585, 585, true );
    add_image_size( 'penci-thumb-vertical', 480, 650, true );
    add_image_size( 'penci-thumb-small', 263, 175, true );

    From functions.php file.

    Don't delete this code:

    add_theme_support( 'post-thumbnails' );

    Best Regards,

    PenciDesign

  • panospan replied

    Hi, 

    I did what you suggested me to do and I don't get these additional sizes anymore!

    But for some reason I don't get the large size of the image, which is 700x1050 and instead I get an image with size 640x640, which I don't know where it comes from.

    I tried to regenerated but the result was the same.

    Of course there is no large size to choose, when I try to insert media in the post.

    The test link with the new images is www.redheadillusion.com/testred1/inspire-your-style-bet-and-malfie-scarf-6569

    On the site I want to use the large size of the images, even though large and full size images have the same size, because on the large size of the image I put a water mark, and I keep the full image intact.

    I do hope that somehow you will come up with an idea, why this is happening and I will manage to empty my mind from this additional "load". :-)

    Best regards,

    Panos

    * I am sending you 3 attached images hoping that they will help you to figure out the solution to this behavior. 

  •  2,697
    PenciDesign replied

    Hi,

    Seem you have more a plugin has this size. Please deactivate all plugins and re-upload it to try.

    After it work, let's enable each plugin to check the plugin caused this issue.

    Best Regards,

    PenciDesign

  • panospan replied

    Hi,

    It seems that I have to look somewhere else, but I really don't know where.

    I have deactivated all plugins and I re-uploaded one image, the redhead-illusion-fashion-blog-by-menia-bet-and-malfie-silk-scarf-01.jpg, which is 700x1050. As you can see in my attached image the large size, according to my wordpress media settings, is not generated.

    Then I changed the theme to twenty eleven and I re-uploaded another image, the redhead-illusion-fashion-blog-by-menia-bet-and-malfie-silk-scarf-02.jpg, but again the large size is not generated too.

    Have you ever noticed something like that? Any other idea would me more than welcome.

    Best regards,

    Panos

  •  2,697
    PenciDesign replied

    Hi,


    I checked our theme and I didn't see anywhere we using that image size.

    Very strange. I think you're wrong somewhere.

    Best Regards,

    PenciDesign

  • panospan replied

    Hi, 

    according to this link https://wordpress.stackexchange.com/questions/199494/wordpress-resizes-image-to-the-same-size-as-uploaded

    it seems that the newer versions of wordpress do not generate images with the same size for eliminating storage size problems. The wordpress version on my live site is an older one and I think that's why I can get a large image with the same size with the full one.

    Now the problem that I'am facing is that I do want to get an image with the same size as the original one (eg. copy-full), so as to use it for watermarking, but still have the full original one, in case that I will want to regenerate the image sizes.

    Is it possible to have a line in functions.php file like the one below,

    add_image_size( 'copy-full-thumb', 700, 1050, true );

    and have the ability to chose this image in the drop down box, when I want to insert a media file into my post? And if yes how I could achieve that?

    I do hope that you will guide me to the right direction to find a solution to this.

    Best regards,

    Panos

  •  2,697
    PenciDesign replied

    Hi,

    I think you can go to admin > Settings > Media > change the size you want for medium size like example.

    After that, use medium size for your insert.

    Best Regards,

    PenciDesign

  • panospan replied

    Hi.

    I can understand that you are getting tired. Sorry for spending your time.

    I cannot use the 700x1050 size in media settings, because the wordpress core understands that it is the same size with the original image and does not create it, no matter where I decide to put it, medium or large.

    The point is, if there is a way to tell the wordpress to create an image the same size  as the original one or in these new versions of it that ability has been vanished.

    If this is the point, then from now on I have to upload bigger size images, so as to get back the sizes that I want, but I don't know if I will have issues with the ones that I have already uploaded in my posts, whenever I will decide to update them in the future.

    Best regards,

    Panos

  •  2,697
    PenciDesign replied

    Hi,

    If so, you can try use this plugin.

    https://wordpress.org/plugins/simple-image-sizes/


    Best Regards,

    PenciDesign

  • panospan replied

    Hi,

    I tried it, but the result is that the new core of the wordpress not allow images of the same size with the uploaded one to be created.

    So the alternative and only solution that I have to follow is to upload a larger size image than the one that I want to get as a Large Size image in Media Settings.

    Thank you very much for your help and much more for the time that you spent on me.

    Have a beautiful night.

    Best regards,

    Panos