Best image hosting service

Its not recommended often enough, but Flickr is an excellent image host for blogs as well. Their pro account costs only $25/year. You get unlimited image, video uploads and no bandwidth limit. If you don’t want your blog image uploads populating your personal photostream, you can easily create a separate account for it. You can … Read more

Image dimensions same as image size

No, it won’t create a new image that is exactly the same size.. nor should it. All the thumbnail, medium, and large images are resized images, by definition. Since the original image is already 600×600, there’s no point in creating another file at the same size, but with a lower quality (remember that JPEG compression … Read more

Rename “Add Media” Button To “Add Images”

The button text being a translatable string, you can make use of the gettext filter: function wpse95025_rename_media_button( $translation, $text ) { if( is_admin() && ‘Add Media’ === $text ) { return ‘Add Images’; } return $translation; } add_filter( ‘gettext’, wpse95025_rename_media_button, 10, 2 ); For the sake of completeness: Of course, you can also keep the … Read more

Is is possible to crop an image after uploading

Untested, but I believe this should work: jQuery(document).ready(function (){ jQuery(“.select-image”).click(function() { var custom_uploader = wp.media({ title: ‘Selecteer een afbeelding’, button: { text: ‘Selecteer’ }, multiple: false }); custom_uploader.on(‘select’, function() { custom_uploader.Jcrop(); }); custom_uploader.open(); }); });

Changing the media library default tab

There’s a filter called media_upload_default_tab that you can use to do this. <?php add_filter(‘media_upload_default_tab’, ‘wpse74422_switch_tab’); function wpse74422_switch_tab($tab) { return ‘library’; } You can set the to be whatever — assuming the tab exists. The tab keys themselves are found in the functon media_upload_tabs. <?php /** * Defines the default media upload tabs * * @since … Read more

wp media regenerate unknown –image_size parameter

I was able to duplicate the issue when running WP-CLI version 1.1.0, but the command worked successfully when I updated to the nightly build using: wp cli update –nightly The –image-size parameter was added to wp-cli/media-command on April 13, 2017 after the current stable release of WP-CLI v1.1.0 on February 1, 2017. This feature is … Read more

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