karthick dev
asked 9 years ago

I would like to resize all uploaded media files and future upload media to set with fixed height and width , Is there any option to manage that through out from css code

1 Answers
DominicStaff
answered 9 years ago

Hi,
Which theme are you using?
About your question, you can try the following code:

  • Control size and maintain proportion :
    img { /*Class or Id of image*/
    height: auto; 
    width: auto; 
    max-width: 300px; 
    max-height: 300px;
    }

    Hope this helps !

karthickdev
replied 9 years ago

thanks , I am using dwfocus

karthickdev
replied 9 years ago

Yep this will works fine, How can auto resize all the uploaded image to a fixed widht and height , Since this can be adjusted in frontend when using this through custom css code Is there any other way to handle this?

dominic Staff
replied 9 years ago

If you use the DW Focus theme, you can install the Regenerate Thumbnails plugin: https://wordpress.org/plugins/regenerate-thumbnails/
Also, If you want, you can find the plugin here: https://wordpress.org/plugins/imsanity/
Hope this helps !

Powered by DW Question & Answer Pro