이 플러그인은 최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다. 워드프레스의 좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 있을 수 있습니다.

TTT Crop

설명

This is an easy and fast way to crop any uploaded image in your wordpress. No more complicated graphical editors, photos of people without head or products with wrong view. Select a thumbnail, edit the crop area and save the new thumbnail image.

This plugin doesn’t create any new file or folder, when it saves the new crop area it rewrites the original thumbnail file, this means it doesn’t affect the theme design 🙂

Features

  • The plugin automatically use all images created with the function add_image_size even if they are hard cropped or proportional. More info in https://codex.wordpress.org/Function_Reference/add_image_size#Crop_Mode
  • “Crop Editor” quick link in media list.
  • “Crop Editor” link in featured image widget.
  • “Crop Editor” button inside file details in media manager.


(Thanks to: https://software-lupe.de/review/ttt-crop-thumbnails-auf-mass/)

How to use it

  1. Select an image, open the image editor and click on the Crop Editor button.
  2. Choose the image size you want and crop it.

Recomendations

If you are a developer and you need to rebuild the thumbnails we recommend use this plugin: https://wordpress.org/plugins/ajax-thumbnail-rebuild/ it helps you to do it one at a time.

IMPORTANT: Notice that rebuilding thumbnails will overwrite the thumbnails cropped with the TTT Crop plugin.

Hacks

Just copy&paste this code into your functions.php

Remove sizes from the editor

add_filter( 'tttcrop_image_sizes', 'custom_tttcrop_image_sizes');
function custom_tttcrop_image_sizes( $sizes ) {
    unset( $sizes['thumbnail'] );
    unset( $sizes['large'] );
    return $sizes;
}
?>

Remove thumbnails sizes from the editor for an specific post type

function custom_tttcrop_image_sizes_CPT($sizes) {

    foreach ($sizes as $key => $values) {
        if ($key == 'THUMBNAIL-SIZE1')
            $new[ $key ] = $values;
        elseif ($key == 'THUMBNAIL-SIZE1')
            $new[ $key ] = $values;            
    }

    return $new;
}

Change the name of the image to human friendly names

function local_ttt_crop_human_name($name) {
    switch( $name ) {
        case 'single-slider';
            return 'Home slider image'; break;
        case 'widget-thumbnail';
            return 'Widget small image'; break;

        default:
            return $name; break;
    }
}
add_filter('ttt_crop_human_name','local_ttt_crop_human_name');

This will change the name of the image inside the tooltip when it is selected.

스크린샷

  • Go to Media, open the image and click on Crop Editor.
  • Choose the image size you want to crop.
  • Crop it and click on Update Thumbnail.

설치

This section describes how to install the plugin and get it working.

  1. Upload ttt-crop folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

후기

2016년 10월 8일 답글 2개
Zuerst einmal: Danke für das Plug-in. Es arbeitet perfekt, bis auf eine Kleinigkeit. Ich habe ein ausführliches Review auf deutsch, inklusive Video, über TTT Crop geschrieben. First of all: Thank you! This plugin works like a charme. One point is not ideal, but that is not a big deal. I have written a detailed review in german language together with a video. My/Mein Review -> software-lupe.de
2016년 9월 3일
Thank you for this plugin. It integrates seamlessly with ACF and will make the process of adding images to various social media share requirements more straightforward for my client. I would be interested if there are any plans to integrate this feature to the Gallery Field Type in ACF?
모든 3 평가 읽기

기여자 & 개발자

“TTT Crop”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

자국어로 “TTT Crop”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.