Compress JPEG Image Files Using Ruby
This code snippet opens a JPEG image, reduces its quality to 50 and then saves the compressed image as a new file.
This code snippet opens a JPEG image, reduces its quality to 50 and then saves the compressed image as a new file.
Digital
This code snippet uses MiniMagick to open a PNG image, reduce its quality to 50 and save the compressed image with a new file name.
Ruby enthusiasts often begin their coding adventures with the ever-friendly 'Hello, World!' message.
Use you may use the following simple Ruby script to convert a cat's age to human years.
You may use the following Ruby script to generate a random secure password. The random secure password may include lowercase letters, uppercase letters, numbers and special characters.
Use you may use the following simple Ruby script to convert a dog's age to human years.