Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #21354

    So I took a look at my uploads folder and I happened to see WordPress (or angular settings?) automatically creates various image sizes from a single image that has been uploaded. I know this is for thumbnails and large/medium/small images but I don’t need any of that — all I need is the original image that was uploaded. So with that said, how do I stop wordpress (or angular?) from creating multiple image sizes from a single image? Thanks.

    I tried going to Settings > Media and setting all the values to 0 that I could and saved the settings, then uploaded a test image, didn’t work. Anything I could do in functions.php? Or is this angular creating various image sizes just in case if the theme may need it? Thanks.

    #111487

    Hi Aaron,

    The theme needs to create theme for use with the portfolio, blog, widgets and things like that. Unless you are literally not using images anywhere except inside posts (even then they are used to cut down on loading time in some instances) you’ll need them intact.

    Even still, you can try removing the functions that create them in functions.php:

    //register additional image thumbnail sizes that should be generated when user uploads an image:
    global $avia_config;

    $avia_config['imgSize']['widget'] = array('width'=>36, 'height'=>36 ); // small preview pics eg sidebar news
    $avia_config['imgSize']['post-format-image'] = array('width'=>630, 'height'=>999, 'crop'=>false); // big images for post format image and gallery posts
    $avia_config['imgSize']['fullsize'] = array('width'=>930, 'height'=>930, 'crop'=>false); // big images for lightbox and portfolio single entries
    $avia_config['imgSize']['featured'] = array('width'=>930, 'height'=>340); // images for fullsize pages and fullsize slider
    $avia_config['imgSize']['portfolio'] = array('width'=>465, 'height'=>346); // images for portfolio entries (2,3,4 column)
    $avia_config['imgSize']['logo'] = array('width'=>465, 'height'=>220); // images for dynamic logo/partner element

    //dynamic columns
    $avia_config['imgSize']['dynamic_1'] = array('width'=>446, 'height'=>151); // images for 2/4 (aka 1/2) dynamic portfolio columns when using 3 columns
    $avia_config['imgSize']['dynamic_2'] = array('width'=>609, 'height'=>210); // images for 2/3 dynamic portfolio columns
    $avia_config['imgSize']['dynamic_3'] = array('width'=>688, 'height'=>151); // images for 3/4 dynamic portfolio columns

    Regards,

    Devin

    #111488

    Hey Devin,

    Thanks for the fast response. Like you mentioned — all I pretty much do is upload the image and use it inside the post. Say for instance I upload example.png, I’ll place the example.png image inside my post and resize it by using the little grabber/square things that show up when I click the image that allows me to drag them and resize the image (which in turn changes the HTML, hope that makes sense). I have a “Featured” page set up where all I do is use the Portfolio option but have it redirect to the post I want it to when the user clicks the title/image. Then for the image that shows on top, I just use the example.png image (then I have custom CSS that helps make it appear better) — none of the automatically created crops/resizes are used.

    So then theoretically, I don’t need any of these custom made image sizes, right? Then so with that said, I can remove the code above?

    Thanks for all the help thus far. :)

    #111489

    If you are using the portfolio function at all, it needs to be automatically be resized if you want to save the user from loading the full size image for every portfolio image set.

    But yes, if you don’t want them created you can just remove the code and it should just then use the main image file in its place and not create the other various versions.

    Regards,

    Devin

    #111490

    Awesome, thanks for all the help and fixing this. :)

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘How to Stop Angular from creating multiple images sizes when uploading an image?’ is closed to new replies.