Skip to content

Latest commit

 

History

History
58 lines (49 loc) · 1.83 KB

File metadata and controls

58 lines (49 loc) · 1.83 KB

ImgProxy PHP Implementation Plan

Current Status

The current implementation provides a basic URL builder for ImgProxy with support for some of the core options. However, it's not complete and doesn't support all of ImgProxy's features, especially the Pro features.

Implementation Goals

  1. Support all ImgProxy options (both standard and Pro features)
  2. Implement all URL formats (plain, base64, encrypted)
  3. Support all processing options with proper validation
  4. Support the info endpoint
  5. Add support for presets
  6. Implement chained pipelines for Pro
  7. Add support for object detection, auto quality, best format, etc.

Implementation Plan

1. Core Structure Enhancements

  • Update the UrlBuilder class to support:
    • Info endpoint URLs
    • Encrypted source URLs
    • Chained pipelines
    • Different URL formats

2. Options Implementation

Implement all ImgProxy options according to the documentation:

  • Basic transformations (resize, width, height, etc.)
  • Advanced transformations (trim, blur, sharpen, etc.)
  • Format and quality options
  • Watermark options
  • Pro features (autoquality, object detection, etc.)

3. Support Classes

  • Update existing support classes (Color, GravityType, etc.)
  • Add new support classes for:
    • Object detection
    • Autoquality
    • URL encryption
    • Best format

4. Testing

  • Unit tests for all new options and features
  • Integration tests for URL generation scenarios
  • Test cases for Pro features

Implementation Approach

  1. First, update core classes to support all URL formats and endpoints
  2. Implement all standard options
  3. Implement Pro options
  4. Add comprehensive tests for all functionality
  5. Update documentation

Priorities

  1. Basic transformation options
  2. Advanced transformation options
  3. Format and quality options
  4. URL encryption and signing
  5. Info endpoint
  6. Pro features