Skip to content

Commit

Permalink
fix oversized images, npm install
Browse files Browse the repository at this point in the history
  • Loading branch information
mcguffin committed Jun 26, 2018
1 parent 6847b2a commit d715eaa
Show file tree
Hide file tree
Showing 8 changed files with 2,562 additions and 2,239 deletions.
6 changes: 2 additions & 4 deletions css/settings/media.css
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,11 @@
.robocrop-sizes-table tbody td.dimensions [data-prop="width"] {
width: 45%;
border-right-style: none;
-webkit-box-shadow: inset 2px 1px 2px rgba(0, 0, 0, 0.07);
box-shadow: inset 2px 1px 2px rgba(0, 0, 0, 0.07); }
box-shadow: inset 2px 1px 2px rgba(0, 0, 0, 0.07); }
.robocrop-sizes-table tbody td.dimensions [data-prop="height"] {
width: 55%;
border-left-style: none;
-webkit-box-shadow: inset -2px 1px 2px rgba(0, 0, 0, 0.07);
box-shadow: inset -2px 1px 2px rgba(0, 0, 0, 0.07);
box-shadow: inset -2px 1px 2px rgba(0, 0, 0, 0.07);
padding-left: 15px;
text-align: right; }
.robocrop-sizes-table tbody td.dimensions .times {
Expand Down
2 changes: 1 addition & 1 deletion css/settings/media.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion include/Robocrop/Admin/Attachment.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public function wp_generate_attachment_metadata( $metadata, $attachment_ID ) {
//
if ( $sizes[ $sizeslug ]['crop'] ) {
$cancrop = $this->can_crop( $orig_w, $orig_h, $current_size['width'], $current_size['height'] );
error_log(var_export($cancrop,true));

if ( ! $cancrop ) {
$remove_sizes[] = $sizeslug;
} else if ( isset( $this->_crop_meta[ $attachment_ID ]['sizes'][ $sizeslug ]['cropdata' ] ) ) {
Expand Down
8 changes: 4 additions & 4 deletions js/admin/wp-robocrop.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/admin/wp-robocrop.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit d715eaa

Please sign in to comment.