X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=vendor%2Fdrush%2Fdrush%2Fcommands%2Fcore%2Fdrupal%2Fimage_7.inc;fp=vendor%2Fdrush%2Fdrush%2Fcommands%2Fcore%2Fdrupal%2Fimage_7.inc;h=0000000000000000000000000000000000000000;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hp=bcf1198ccfdaee242bd2740259c2bd69257ef3a1;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0;p=yaffs-website diff --git a/vendor/drush/drush/commands/core/drupal/image_7.inc b/vendor/drush/drush/commands/core/drupal/image_7.inc deleted file mode 100644 index bcf1198cc..000000000 --- a/vendor/drush/drush/commands/core/drupal/image_7.inc +++ /dev/null @@ -1,45 +0,0 @@ - $style_name)), LogLevel::SUCCESS); - } -} - -/* - * Command callback. Create an image derivative. - * - * @param string $style_name - * The name of an image style. - * - * @param string $source - * The path to a source image, relative to Drupal root. - */ -function _drush_image_derive($style_name, $source) { - $image_style = image_style_load($style_name); - $scheme = file_default_scheme(); - $image_uri = $scheme . '://' . $source; - $derivative_uri = image_style_path($image_style['name'], $image_uri); - if (image_style_create_derivative($image_style, $source, $derivative_uri)) { - return $derivative_uri; - } -}