Skip to content

Commit

Permalink
Fixed script for converting logo for compatibility with the new versi…
Browse files Browse the repository at this point in the history
…on of ImageMagick, prevents black and white image.
  • Loading branch information
virxkane committed Mar 20, 2021
1 parent c7219d0 commit 0116783
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Binary file added android/res/mipmap-xxxhdpi/cr3_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 6 additions & 6 deletions icons_src/logo/convert_all.pl
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@

# dpi: 120 160 240 320 480 640
# factor: 0.75 1.0 1.5 2.0 3.0 4.0
my %ic_actions_sizes = (ldpi=>24, mdpi=>32, hdpi=>48, xhdpi=>64, xxhdpi=>96); # , xxxhdpi=>128);
my %ic_legacy_sizes = (ldpi=>36, mdpi=>48, hdpi=>72, xhdpi=>96, xxhdpi=>144); # , xxxhdpi=>192);
my %ic_ad_full_sizes = (ldpi=>81, mdpi=>108, hdpi=>162, xhdpi=>216, xxhdpi=>324); # , xxxhdpi=>432);
#my %ic_ad_inner_sizes = (ldpi=>54, mdpi=>72, hdpi=>108, xhdpi=>144, xxhdpi=>216); # , xxxhdpi=>288);
my %ic_ad_inner_sizes = (ldpi=>42, mdpi=>56, hdpi=>84, xhdpi=>112, xxhdpi=>168); # , xxxhdpi=>224);
my %ic_actions_sizes = (ldpi=>24, mdpi=>32, hdpi=>48, xhdpi=>64, xxhdpi=>96, xxxhdpi=>128);
my %ic_legacy_sizes = (ldpi=>36, mdpi=>48, hdpi=>72, xhdpi=>96, xxhdpi=>144, xxxhdpi=>192);
my %ic_ad_full_sizes = (ldpi=>81, mdpi=>108, hdpi=>162, xhdpi=>216, xxhdpi=>324, xxxhdpi=>432);
#my %ic_ad_inner_sizes = (ldpi=>54, mdpi=>72, hdpi=>108, xhdpi=>144, xxhdpi=>216, xxxhdpi=>288);
my %ic_ad_inner_sizes = (ldpi=>42, mdpi=>56, hdpi=>84, xhdpi=>112, xxhdpi=>168, xxxhdpi=>224);

my %ic_legacy_list=(
'cr3_logo-base-300x300-unsharp.png' => 'cr3_logo.png'
Expand Down Expand Up @@ -70,7 +70,7 @@
#if (0)
#{
# create empty transparent file
$cmd = "magick convert -size ${size}x${size} canvas:none ${resfile}";
$cmd = "magick convert -size ${size}x${size} canvas:none -define png:color-type=6 ${resfile}";
print "${cmd}\n";
$ret = system($cmd);
if ($ret != 0)
Expand Down

0 comments on commit 0116783

Please sign in to comment.