// To avoid any confusing, we're mapping the index based to an association based array and remove the index based elements.
$data['width'
] =
$data[0
];
$data['height'
] =
$data[1
];
unset($data[0
],
$data[1
]);
// Continue if configured size is not numeric
if (!
is_numeric($data['width'
])) { continue;
} // Create thumbnail with the configured size
$this->
createThumbnail((int) $data['width'
],
(int) $data['height'
]);
} } /**
* Removes the configured album thumbnails for the passed album instance and with the
* passed file name. The file name have to be passed, because on update the internal
* file name property is already changed to the new name.
*
* @param array|null $thumbnailSizes
* @param string $fileName
*/