MantisBT - Piwigo
View Issue Details
0002531Piwigoweb APIpublic2011.12.13 14:372011.12.13 15:02
plg 
plg 
normalfeatureN/A
closedfixed 
2.3.1 
2.3.22.3.2 
any
Apache 1.3.x
0002531: [pwg.images.add] resize photo on Piwigo side
By default pwg.images.add requires that the remote client has uploaded thumbnail + web size (+ high definition) with pwg.images.addChunk before calling pwg.images.add. This is the opposite of pwg.images.addSimple where you just send the photo and Piwigo creates web size + thumbnail.

Because adding by chunk can be useful, and resize by Piwigo is very convenient, it would be good to have both options for an upload.
No tags attached.
Issue History
2011.12.13 14:37plgNew Issue
2011.12.13 14:37plgStatusnew => assigned
2011.12.13 14:37plgAssigned To => plg
2011.12.13 14:37plgbrowser => any
2011.12.13 14:37plgWeb server => Apache 1.3.x
2011.12.13 14:43svnCheckin
2011.12.13 14:43svnNote Added: 0005838
2011.12.13 14:56svnCheckin
2011.12.13 14:56svnNote Added: 0005839
2011.12.13 15:01svnCheckin
2011.12.13 15:01svnNote Added: 0005840
2011.12.13 15:02plgNote Added: 0005841
2011.12.13 15:02plgStatusassigned => closed
2011.12.13 15:02plgResolutionopen => fixed
2011.12.13 15:02plgFixed in Version => 2.3.2

Notes
(0005838)
svn   
2011.12.13 14:43   
[Subversion] r12722 by plg on branch 2.3

-----[Subversion commit log]----------------------------------------------------
feature 2531 added: pwg.images.add is able to generate web size + thumbnail
(remote client needs to set "resize" option to something else than 0). When
the "resize" is On, only the "file" must be send with pwg.images.addChunk.
(0005839)
svn   
2011.12.13 14:56   
[Subversion] r12723 by plg on branch 2.3

-----[Subversion commit log]----------------------------------------------------
feature 2531: bug fixed, need to be sure functions_upload.inc.php is loaded before using add_uploaded_file()
(0005840)
svn   
2011.12.13 15:01   
[Subversion] r12724 by plg on trunk

-----[Subversion commit log]----------------------------------------------------
merge r12722 from branch 2.3 into trunk
merge r12723 from branch 2.3 into trunk

feature 2531 added: pwg.images.add is able to generate web size + thumbnail
(remote client needs to set "resize" option to something else than 0). When
the "resize" is On, only the "file" must be send with pwg.images.addChunk.

Small improvement compared to code implemented in branch 2.3 : use of
single_insert when resize is Off, single algorithm to update $info_colums (resize On/Off)
(0005841)
plg   
2011.12.13 15:02   
Even with many changes in pwg.images.add, the real change is tiny and doesn't change anything for pLoader (verified by tests)