public function getDirtyEncodableAttributes()
    {
        if (empty($this->encodable_attributes)) {
            return [];
        }

        return array_filter($this->encodable_attributes, function ($attribute) {

            // The file has changed
            if ($this->isDirty($attribute)) {
                return true;
            }

            // The encoding preset is changing
            return $this->hasDirtyPreset($attribute);
        });
    }