View Issue Details

IDProjectCategoryView StatusLast Update
0001183OXID eShop (all versions)2. ----- eShop backend (admin) -----public2009-08-19 09:05
ReporterRyback Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version4.1.3 revision 19918 
Fixed in Version4.1.6 revision 22740 
Summary0001183: Icon creation without article sizes
DescriptionWe have no entrys in shop admin under settings -> pictures -> size of article pics-> oxpic* because we want the article pics "untouched" load to the web space. So no extra compression and no use of gdlib.

But without this entrys the shop doesn`t create the icons for picture oxpic* anymore.
The shop only creates the icon in the "picture/icon"-Folder but not the icons in "picture/1", "picture/2", etc.

If we make entrys in the settings mentioned above, the icons get created normal.
Additional InformationMaybe this helps, but you can fix it "quick`n'dirty" in php-file core/oxutilsfile.php in line 326 is the if command which get used when the oxpic* size settings are there. So with this code the shop uses instead the image size of the new uploaded oxpic:

                // #840A + compatibility with prev. versions
                $aDetailImageSizes = $myConfig->getConfigParam( 'aDetailImageSizes' );
                $sDetailImageSize = $myConfig->getConfigParam( 'sDetailImageSize' );
                if ( isset( $aDetailImageSizes['oxpic'.intval( $aPType[1] )] ) ) {
                    $sDetailImageSize = $aDetailImageSizes['oxpic'.intval( $aPType[1] )];
                }
                else
                {
                $cust_image_size = GetImageSize($sSource);
                $sDetailImageSize = $cust_image_size[0]."*".$cust_image_size[1];
                }
TagsNo tags attached.
Theme
BrowserAll
PHP Version5.2.6
Database Version5.0.33

Activities

arvydas_vapsva

2009-08-19 09:05

reporter   ~0001439

fixed + refactored code a bit