Posts

Showing posts from July, 2025

CD/DVD/Blu-ray cover

 Certainly! Here's a simple Ruby program that creates basic CD/DVD/Blu-ray cover images for cases. It uses the RMagick gem (a Ruby binding for ImageMagick) to generate and customize images. The program will generate a cover with customizable text and size for different case types. First, ensure you have ImageMagick installed on your system, and install the RMagick gem: ```bash gem install rmagick ``` Here's the Ruby script: ```ruby require 'rmagick' include Magick # Define case types and their dimensions (width x height in pixels) CASE_SIZES = {   'CD' => [600, 600],   'DVD' => [900, 1200],   'Blu-ray' => [1200, 1200] } # Function to create a cover def create_cover(case_type, title, subtitle = "")   unless CASE_SIZES.key?(case_type)     puts "Unknown case type. Please choose from: #{CASE_SIZES.keys.join(', ')}"     return   end   width, height = CASE_SIZES[case_type]   # Create a blank image with white backgro...

Cd covers

Image
 A standard jewel case for a compact disc (CD) typically has the following approximate dimensions: - **Front Cover & Back Cover (display area):**     - **Width:** about 4.75 inches (120 mm)     - **Height:** about 4.75 inches (120 mm)   - **Sides (spine):**     - **Width:** approximately 0.125 to 0.25 inches (3 to 6 mm), depending on the number of discs or the thickness of the booklet inserted. **Total case dimensions:**   - When closed, a standard jewel case measures roughly **5.59 inches (142 mm) wide, 4.92 inches (125 mm) high, and about 0.39 inches (10 mm) thick**. **Design note:**   - The front and back covers are usually designed as a single 2-page spread, each about 4.75 x 4.75 inches, with the spine in the middle.   - The spine width depends on the booklet size but is often around 0.125 inches for a standard single-disc case. If you're designing artwork, it's common to create the front ...