Problem/Motivation

The current derivativ file structure contains a number of unnecessary redundancies in folders names.
Replace the current structure :
contextual/styles/[style_name]/[Crop_id]/[scheme]/[file_path]/[file_name]

With this structure the whole file_path are duplicated for each contextual derivative.

Proposed resolution

We can simplify the architecture of folder by using "crop_id" as the last key.

contextual/styles/[style_name]/[scheme]/[file_path]/[file_name_without_extention]/[crop_id].[extension]

With that, we limit all "unnecessary" folder (each style/image couple) become an unique folder_path, and all contextuals in it.

Comments

DrDam created an issue. See original summary.

DrDam credited aurbain25.

drdam’s picture

drdam’s picture

Title: Replace derivativ folder organisation » Rework derivativ folder organisation

  • 097dd4e4 committed on 2.1.x
    Issue #3437545 by DrDam, aurbain25: Rework derivativ folder organisation
    
drdam’s picture

Status: Active » Fixed
drdam’s picture

Status: Fixed » Closed (fixed)