fixed resize logic to avoid image lost
Details
Details
Preparations
In the index.php, after $application->Init();, place following code:
$upload_helper = $application->recallObject('kUploadHelper'); $upload_helper->resizeUploadedFile(FULL_PATH . IMAGES_PATH . '120x105.png', 'resize:120x120'); $upload_helper->resizeUploadedFile(FULL_PATH . IMAGES_PATH . '904x791.png', 'resize:120x120');
Testing
- place attached file 120x105.png (dimensions: 120x105) to the /system/images/ folder
- place attached file 904x791.png (dimensions: 904x791) to the /system/images/ folder
- open website's Front-End
- confirm that 120x105.png is in place and not changed it's size
- confirm that 904x791.png is resized to 120x105 (if D370 is applied) or 121x106 (if D370 is not applied)
Diff Detail
Diff Detail
- Repository
- rINP In-Portal
- Branch
- /in-portal/branches/5.2.x
- Lint
Lint OK - Unit
No Unit Test Coverage - Build Status
Buildable 939 Build 939: arc lint + arc unit