WordPress crop image not working [closed]

It’s possible your theme is setting width: auto; on the image, possibly as part of some responsive tweaking. This would cause it to keep its normal proportion but with the specified height. Can you provide a URL to look at?

variable crop option with add_image_size()

OK I have found out a way to do this. With the plugin, with some checkboxes I am setting a crop option in the db in wp_options table, just like WP does it for the thumbnail, medium and large sizes. So my big image sets the add_option(‘big_crop’, true) Than in functions.php I do: if ( … Read more

Change default “Apply Changes To” radio option when editing images

It is hopeless to hook into the image-edit.php ajax loaded screen. This issue, to pre-select “thumbnail only” radio option instead of “all images” can be solved by jQuery. The snippet in your functions.php can be improved, but works: // Populate thumbnail settings function entex_admin_image_editor_activate_tweaks() { ?> <script type=”text/javascript”> jQuery(document).ready(function($) { $(document).ajaxStop(function(){ if($(‘.imgedit-settings input[value=”thumbnail”]’).get(0)) { $el … Read more

Disable Responsive Image Sizes crop

If you mean you want to only save the original image to the server, and not have WP auto-generate additional sizes, there’s a function to remove the additional sizes: <?php function wpse_remove_image_sizes() { // Remove the WP Core “thumbnail” size remove_image_size( ‘thumbnail’ ); // Remove a custom image size with the slug “custom-size-name” remove_image_size( ‘custom-size-name’ … Read more

There has been an error cropping your image

In some cases, the ImageMagick extension might not be installed or might be unreliable (old versions of ImageMagick can be buggy). If its okay then check the rest of points. It’s the GD Library not installed.If its installed you forget to restart server. sudo apt-get install php7.0-gd Use this to stop Apache for it to … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)