Advertise on Site! You can Advertise on our site. Find out More

how to crop the uploaded image in wordpress without plugin

Many people use the scaled image for thumbnail image. Instead of that croping image the proper size and showing that is nice. Crop Uploaded image without plugin is supported by wordpress itself so do not use any third party plugin for this.

You can use the following code in your functions.php file:

// Standard Size Thumbnail
if(false === get_option("thumbnail_crop")) {
 add_option("thumbnail_crop", "1"); }
 else {
 update_option("thumbnail_crop", "1");
 }

// Medium Size Thumbnail
if(false === get_option("medium_crop")) {
 add_option("medium_crop", "1"); }
 else {
 update_option("medium_crop", "1");
 }

// Large Size Thumbnail
if(false === get_option("large_crop")) {
 add_option("large_crop", "1"); }
 else {
 update_option("large_crop", "1");
 }
how to crop the uploaded image in wordpress without plugin

how to crop the uploaded image in wordpress without plugin

  • http://frocbook.com/JeanneSha Patti

    Awesome things here. I’m very glad to peer your article. Thanks a lot and I’m taking a look forward to touch you. Will you please drop me a mail?