Acrorip 10.5 | Download
The core logic will analyze the input image (JPEG or PNG) to distinguish between the subject and the background.
This feature would be integrated into the Image Processing module before the color separation (CMYK/W) queues. Acrorip 10.5 Download
class ImageProcessor: def process_job(self, image, settings): # Step 1: Load Image src_img = load_image(image.path)# Step 2: Check if Smart Removal is Enabled if settings.smart_removal_enabled: # Define background color to remove (default: corners of image) bg_color = detect_corner_color(src_img) # Generate Mask # Algorithm: Delta E difference between pixel and bg_color alpha_mask = generate_alpha_mask(src_img, bg_color, tolerance=settings.tolerance) # Apply Feathering (Anti-aliasing) # Kernel size depends on print resolution (e.g., 1440dpi needs higher feather) alpha_mask = apply_gaussian_blur(alpha_mask, radius=settings.feather_radius) # Merge Alpha with Original Image processed_img = merge_alpha(src_img, alpha_mask) # Step 3: Auto-Generate Underbase # Logic: Create white layer based on the NEW alpha mask white_channel = generate_white_channel(processed_img, choke=2) return composite_image(processed_img, white_channel) return src_img
Simply removing the background often leaves a jagged pixel edge that looks bad when printed. The core logic will analyze the input image
