on product-edit.php you have correct selection image directory
{ $legacy_images = get_configuration_value('PS_LEGACY_IMAGES'); $base_uri = get_base_uri(); } $imgsizing = 'style="width:'.$prod_imgwidth.'px; height:'.$prod_imgheight.'px;"'; $path = getpath($id_image); if($legacy_images) // right select !!! { $imgbase = $base_uri.'img/p/'.$id_product.'-'.$id_image; $imgdir = $base_uri.'img/p/'; $localbase = $localpath.'/img/p/'.$id_product.'-'.$id_image; $localdir = $localpath.'/img/p/'; $namebase = $id_product.'-'.$id_image; } else { $imgbase = $base_uri.'img/p'.$path.'/'.$id_image; $imgdir = $base_uri.'img/p'.$path.'/'; $localbase = $localpath.'/img/p'.$path.'/'.$id_image; $localdir = $localpath.'/img/p'.$path.'/'; $namebase = $id_image; }
on the other php section, script work only with one image file system without support Legacy