
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
rubyapple
Advanced tools
This is Rubyapple a gem to convert a png picture into respective:
apple-touch-icon-sizexsize.png
apple-touch-icon-sizexsize-precompiled.png
drawable-hdpi-icon.png
drawable-ldpi-icon.png
drawable-mdpi-icon.png
drawable-xhdpi-icon.png
drawable-xxhdpi-icon.png
drawable-xxxhdpi-icon.png
sudo apt-get install -f libmagickwand-dev imagemagick
gem install rubyapple
NOTE! Create the apple_images folder where you invoke the rubyapple command, but do not enter it.
rubyapple help
Recommended original file beeing larger then 310x310, that is the current largest scaling in this gem.
rubyapple gen-type picture.png
output will be contained in the following folder where you invoked the command
type_images/
or if you're looking for all types
rubyapple gen-all picture.png
Example output from gen-apple-touch 's apple_images folder:
user@computer:~/apple_images$ ls -l
total 840
-rw-rw-r-- 1 user user 20960 Sep 17 17:26 apple-touch-icon-114x114.png
-rw-rw-r-- 1 user user 20960 Sep 17 17:26 apple-touch-icon-114x114-precomposed.png
-rw-rw-r-- 1 user user 22637 Sep 17 17:26 apple-touch-icon-120x120.png
-rw-rw-r-- 1 user user 22637 Sep 17 17:26 apple-touch-icon-120x120-precomposed.png
-rw-rw-r-- 1 user user 29994 Sep 17 17:26 apple-touch-icon-144x144.png
-rw-rw-r-- 1 user user 29994 Sep 17 17:26 apple-touch-icon-144x144-precomposed.png
-rw-rw-r-- 1 user user 32619 Sep 17 17:26 apple-touch-icon-152x152.png
-rw-rw-r-- 1 user user 32619 Sep 17 17:26 apple-touch-icon-152x152-precomposed.png
-rw-rw-r-- 1 user user 37595 Sep 17 17:26 apple-touch-icon-167x167.png
-rw-rw-r-- 1 user user 37595 Sep 17 17:26 apple-touch-icon-167x167-precomposed.png
-rw-rw-r-- 1 user user 1141 Sep 17 17:26 apple-touch-icon-16x16.png
-rw-rw-r-- 1 user user 1141 Sep 17 17:26 apple-touch-icon-16x16-precomposed.png
-rw-rw-r-- 1 user user 42094 Sep 17 17:26 apple-touch-icon-180x180.png
-rw-rw-r-- 1 user user 42094 Sep 17 17:26 apple-touch-icon-180x180-precomposed.png
-rw-rw-r-- 1 user user 76201 Sep 17 17:26 apple-touch-icon-270x270.png
-rw-rw-r-- 1 user user 76201 Sep 17 17:26 apple-touch-icon-270x270-precomposed.png
-rw-rw-r-- 1 user user 92879 Sep 17 17:26 apple-touch-icon-310x310.png
-rw-rw-r-- 1 user user 92879 Sep 17 17:26 apple-touch-icon-310x310-precomposed.png
-rw-rw-r-- 1 user user 2381 Sep 17 17:26 apple-touch-icon-32x32.png
-rw-rw-r-- 1 user user 2381 Sep 17 17:26 apple-touch-icon-32x32-precomposed.png
-rw-rw-r-- 1 user user 6634 Sep 17 17:26 apple-touch-icon-57x57.png
-rw-rw-r-- 1 user user 6634 Sep 17 17:26 apple-touch-icon-57x57-precomposed.png
-rw-rw-r-- 1 user user 9402 Sep 17 17:26 apple-touch-icon-70x70.png
-rw-rw-r-- 1 user user 9402 Sep 17 17:26 apple-touch-icon-70x70-precomposed.png
-rw-rw-r-- 1 user user 10832 Sep 17 17:26 apple-touch-icon-76x76.png
-rw-rw-r-- 1 user user 10832 Sep 17 17:26 apple-touch-icon-76x76-precomposed.png
-rw-rw-r-- 1 user user 15913 Sep 17 17:26 apple-touch-icon-96x96.png
-rw-rw-r-- 1 user user 15913 Sep 17 17:26 apple-touch-icon-96x96-precomposed.png
user@computer:~/apple_images$
Example output from gen-drawables 's drawable_images folder:
user@computer:~/drawable_images$ ls -l
total 40
-rw-r--r-- 1 user user 2908 Sep 18 17:23 drawable-hdpi-icon.png
-rw-r--r-- 1 user user 1318 Sep 18 17:23 drawable-ldpi-icon.png
-rw-r--r-- 1 user user 1796 Sep 18 17:23 drawable-mdpi-icon.png
-rw-r--r-- 1 user user 4228 Sep 18 17:23 drawable-xhdpi-icon.png
-rw-r--r-- 1 user user 7220 Sep 18 17:23 drawable-xxhdpi-icon.png
-rw-r--r-- 1 user user 10189 Sep 18 17:23 drawable-xxxhdpi-icon.png
user@computer:~/drawable_images$
Make a pull request and make this a better one if you feel like it!
Create an issue, tag with bug/feature and describe what is wrong or what you need
For feature request regarding generate_types please specify format size ranges so it can be applied like the above outputs.
-- Juksefantomet
FAQs
Unknown package
We found that rubyapple demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.