Plugin to select the custom image crop area
Plugin to select the custom image crop area
Plugin to select the custom image crop area
You can add your own named image size by adding code to your functions.php. Something in the line of add_theme_support(‘post-thumbnails’);//might not be necessary add_image_size(‘front-end-150’, 300, 300); Now you should be able to use in your catch_that_image() wp_get_attachment_image($post->ID, ‘front-end-150′) for all newly uploaded images. Your past images don’t have the front-end-150, so you might want to … Read more
media_handle_sideload handles the uploads in the same way the normal upload does. That means, when you upload a remote image (YouTube thumbnails in your case) it will automatically create the thumbnails of sizes registered using add_image_size. So, what you need to do is create a thumbnail of desired size and call it in your loop. … Read more
The Problem here lies within the Plugin, which utilizes the deprecated Function image_resize. I’m not 100% sure that this is the only Problem, but try rewriting the Plugin using the new [WP_Image_Editor][1] Class. The next Step to check is if the Plugin can write the files, and if the directory permissions are set correctly. See … Read more
You can fix this using the following code snippet from Brian Krogsard, that I modified. This code should preferably be placed into the functions.php file of your child theme. Instead of taking the original 150×150 thumb it now takes the correct, cropped 150×150 thumb. /* This snippet removes the action that inserts thumbnails to products … Read more
I solved the problem: it was bad formatting of functions.php file – UTF-8. When i turned it to UTF-8 without BOM my problem just disappear.
wordpress by default do not resize/create/crop image for small images. It will show original image instead. For eg. required is 335×355. You uploaded image size 25×25 then it will not create image of 335×355 size. It will show full image i.e original image instead when you call 335×355 size image
WordPress cant do it alone. You need a script called Timthumb.php to do it. This is really simple to use. Check it out: https://code.google.com/p/timthumb/ And the best: wordpress will not store multiple versions of your images when crop. It will be done by the script on demand.
The renaming to test1.jpg is not due to any cropping / resizing functions WordPress. This is because you already had a file named test.jpg uploaded, and WordPress does not replace files if one exists in the folder that has the same name. If, for some reason you want it to replace files rather than rename … Read more
How image gets cropped depends on how the respective size was defined with add_image_size(). In the past it was limited to soft or hard crop modes, always respective to the center of image. Now you can also pass more elaborate directions for the crop, such as array( ‘left’, ‘top’ ). See the linked documentation for … Read more