In-Portal Issue Tracker - In-Portal CMS
Viewing Issue Advanced Details
836 [In-Portal CMS] Optimization task N/A 2010-08-24 14:22 2012-07-25 05:33
alex  
alex  
normal  
closed 5.1.0  
fixed  
 
none 5.2.0-B1  
http://groups.google.com/group/in-portal-dev/browse_thread/thread/c5bbad92701fb7c9
1
0000836: Free space preserving capability during image uploads
There are some hostings (among ones, where In-Portal is used), that have limits per total disk space. Also there are users, who like to upload images with high resolutions.

Since In-Portal store that images as is, then we could spend lots of space just for that purpose.

I propose, that we could resize images before storing them to disk.
parent of 0001210closed  (5.2.0)alex Parameter "storage_format" is ignored during regular uploads 
patch resize_images_just_after_uploading.patch (1,917) 2010-08-24 14:22
http://tracker.in-portal.org/file_download.php?file_id=728&type=bug
Issue History
2012-07-25 05:33 alex Note Added: 0005083
2012-07-25 05:33 alex Status resolved => closed
2012-02-21 04:49 alex Relationship added parent of 0001210
2011-10-22 05:36 alex Estimate Points => 1
2011-09-29 13:14 alex Note Added: 0003940
2011-09-29 13:14 alex Status reviewed and tested => resolved
2011-09-29 13:14 alex Fixed in Version => 5.2.0-B1
2011-09-29 13:14 alex Resolution open => fixed
2011-09-29 13:14 alex Assigned To !COMMUNITY => alex
2011-09-29 13:14 alex Changeset attached 5.2.x r14597
2011-09-29 13:01 alex Note Added: 0003939
2011-09-29 13:01 alex Status needs testing => reviewed and tested
2011-09-29 13:01 alex Time Estimate Removed 1 =>
2011-09-29 13:01 alex Note Added: 0003938
2011-09-29 13:01 alex Status needs work => needs testing
2011-09-27 06:26 alex Time Estimate Added 1
2011-09-23 21:35 Dmitry Note Added: 0003884
2011-09-23 21:35 Dmitry Status reviewed and tested => needs work
2011-09-23 21:35 Dmitry Target Version Icebox => 5.2.0
2010-09-25 13:40 alex Target Version 5.1.1 => Icebox
2010-08-30 05:56 alex Note Added: 0002754
2010-08-29 19:36 Dmitry Note Added: 0002752
2010-08-27 15:49 Dmitry Note Added: 0002690
2010-08-27 15:49 Dmitry Status needs testing => reviewed and tested
2010-08-27 13:09 Dmitry Note Added: 0002685
2010-08-27 13:09 Dmitry Type feature request => task
2010-08-27 13:09 Dmitry Category Admin Interfaces => Optimization
2010-08-27 13:09 Dmitry Target Version Icebox => 5.1.1
2010-08-24 14:25 alex Note Added: 0002661
2010-08-24 14:25 alex Assigned To => !COMMUNITY
2010-08-24 14:25 alex Developer => alex
2010-08-24 14:25 alex Status active => needs testing
2010-08-24 14:24 alex Reference => http://groups.google.com/group/in-portal-dev/browse_thread/thread/c5bbad92701fb7c9
2010-08-24 14:22 alex New Issue
2010-08-24 14:22 alex File Added: resize_images_just_after_uploading.patch

Notes
(0002661)
alex   
2010-08-24 14:25   
To test add:
'storage_format' => 'resize:1024x768'
to any image upload field declaration in unit config.

Flash upload must be used for this to work.
(0002685)
Dmitry   
2010-08-27 13:09   
Moving 5.1.1 release (confirmed with Alex)
(0002690)
Dmitry   
2010-08-27 15:49   
Tested - works well, please commit!
(0002752)
Dmitry   
2010-08-29 19:36   
Reminder sent to: alex

Please don't forget to commit this one to 5.1.1 too!
(0002754)
alex   
2010-08-30 05:56   
I'm not commiting, since I think, that for fields, where both images and non-images are uploaded it can break down non-image files.

Maybe we need to add file extension check for that case.
(0003884)
Dmitry   
2011-09-23 21:35   
New patch for 5.2.x needed (PHP 5 format)
(0003938)
alex   
2011-09-29 13:01   
Nothing has to be changes, since no new PHP methods.
(0003939)
alex   
2011-09-29 13:01   
Will test all together.
(0003940)
alex   
2011-09-29 13:14   
Fix committed to 5.2.x branch. Commit Message:

Fixes 0000836: Free space preserving capability during image uploads
(0005083)
alex   
2012-07-25 05:33   
Since 5.2.0 version was released.