Skip to content

Commit

Permalink
refs #6100: SDC default PNG thumbnail
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthieuScarset committed Sep 6, 2024
1 parent 00b6c6b commit fafe7fa
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Command/SingleDirectoryComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ private function generateAssets(array $vars, AssetCollection $assets): void {
$assets->addFile($component_path . '{component_machine_name}.component.yml', 'component.twig');
$assets->addFile($component_path . 'README.md', 'readme.twig');

$contents = \file_get_contents($this->getTemplatePath() . \DIRECTORY_SEPARATOR . 'thumbnail.jpg');
$thumbnail = new File($component_path . 'thumbnail.jpg');
$contents = \file_get_contents($this->getTemplatePath() . \DIRECTORY_SEPARATOR . 'thumbnail.png');
$thumbnail = new File($component_path . 'thumbnail.png');
$thumbnail->content($contents);
$assets[] = $thumbnail;
}
Expand Down
Binary file removed templates/_sdc/thumbnail.jpg
Binary file not shown.
Binary file added templates/_sdc/thumbnail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit fafe7fa

Please sign in to comment.