aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include/functions_upload.inc.php (follow)
Commit message (Collapse)AuthorAgeFilesLines
* since number of accepted args not required for add_event_handler, simplify callsrvelices2014-06-181-10/+10
| | | | git-svn-id: http://piwigo.org/svn/trunk@28714 68402e56-0260-453c-a942-63ccdbb3a9ee
* Update headers to 2014. Happy new year!!mistic1002014-01-051-1/+1
| | | | git-svn-id: http://piwigo.org/svn/trunk@26461 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature 2869 added: support TIFF files on web upload (requires ext_imagick)plegall2013-12-121-0/+55
| | | | git-svn-id: http://piwigo.org/svn/trunk@25929 68402e56-0260-453c-a942-63ccdbb3a9ee
* remove all array_push (50% slower than []) + some changes missing for ↵mistic1002013-10-191-17/+4
| | | | | | feature:2978 git-svn-id: http://piwigo.org/svn/trunk@25018 68402e56-0260-453c-a942-63ccdbb3a9ee
* update Piwigo headers to 2013 (the end of the world didn't occur as ↵plegall2013-01-011-1/+1
| | | | | | expected on r12922) git-svn-id: http://piwigo.org/svn/trunk@19703 68402e56-0260-453c-a942-63ccdbb3a9ee
* bug 2725: Piwigo isn't compatible with suPHP + better handling of watermark ↵rvelices2012-08-301-0/+1
| | | | | | upload errors git-svn-id: http://piwigo.org/svn/trunk@17675 68402e56-0260-453c-a942-63ccdbb3a9ee
* multisize: remove obsolete function file_path_for_typeplegall2012-05-071-26/+0
| | | | git-svn-id: http://piwigo.org/svn/trunk@14829 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature 2606: second step on multiple size configuration screen redesign.plegall2012-04-191-1/+3
| | | | | | | | | | | Configuration settings are saved on form submission. The old screen is still available for tests. Default resize quality set to 95 instead of 85. git-svn-id: http://piwigo.org/svn/trunk@14221 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature 2604: support rotation on derivativesplegall2012-04-011-0/+7
| | | | git-svn-id: http://piwigo.org/svn/trunk@13843 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature 2567: in IMAGES_TABLE the field "name" is prefilled with the filename mistic1002012-02-101-1/+3
| | | | git-svn-id: http://piwigo.org/svn/trunk@13082 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature 2562 added: pre-cache thumbnail at upload timeplegall2012-02-051-0/+18
| | | | git-svn-id: http://piwigo.org/svn/trunk@13030 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature 2548 multisize - implement delete_element_derivativesrvelices2012-01-171-28/+26
| | | | git-svn-id: http://piwigo.org/svn/trunk@12917 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature 2548 (multiple size): better delete derivatives in add_uploaded_fileplegall2012-01-171-0/+2
| | | | | | | function when performing an update of a photo. git-svn-id: http://piwigo.org/svn/trunk@12907 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature 2548 (multiple sizes): adapt the web API method pwg.images.add (usedplegall2012-01-171-13/+12
| | | | | | | | | | | | | by pLoader, Digikam, Lightroom, iPhoto), pwg.images.checkFiles (pLoader only). The "resize" parameter was removed for pwg.images.add since this behavior becomes the default behavior in Piwigo 2.4. Just like pwg.images.addSimple, pwg.images.add now uses the add_uploaded_file function (next step is to merge pwg.images.add and pwg.images.addSimple) git-svn-id: http://piwigo.org/svn/trunk@12906 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature 2548, multiple size:plegall2012-01-121-185/+36
| | | | | | | | | | | | * adapt the upload script * remove the resize settings screen * add a new screen [Administration > Configuration > Options > Photo Sizes] with the ability to resize original after upload git-svn-id: http://piwigo.org/svn/trunk@12879 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature 2548 multisizervelices2012-01-031-1/+1
| | | | | | - rewrote local site sync + metadata sync git-svn-id: http://piwigo.org/svn/trunk@12831 68402e56-0260-453c-a942-63ccdbb3a9ee
* Bug:2472patdenice2011-10-141-1/+3
| | | | | | Thumbnails are not cropped during upload git-svn-id: http://piwigo.org/svn/trunk@12443 68402e56-0260-453c-a942-63ccdbb3a9ee
* Deactivate auto-rotation for thumbnail creation.patdenice2011-09-291-1/+1
| | | | git-svn-id: http://piwigo.org/svn/trunk@12258 68402e56-0260-453c-a942-63ccdbb3a9ee
* bug:2292flop252011-05-121-2/+2
| | | | | | | | | Fixed the spelling of a function name. convert_shortand_to_bytes into convert_shorthand_to_bytes git-svn-id: http://piwigo.org/svn/trunk@10858 68402e56-0260-453c-a942-63ccdbb3a9ee
* Insert upload form parameters in database during installation.patdenice2011-04-281-37/+0
| | | | | | Remove prepare_upload_configuration function. git-svn-id: http://piwigo.org/svn/trunk@10653 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature:2284patdenice2011-04-271-339/+15
| | | | | | Create a class to manipulate images. git-svn-id: http://piwigo.org/svn/trunk@10641 68402e56-0260-453c-a942-63ccdbb3a9ee
* Create a function to save upload form settings.patdenice2011-04-231-0/+82
| | | | git-svn-id: http://piwigo.org/svn/trunk@10589 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature:2274patdenice2011-04-221-20/+17
| | | | | | | Create thumbnail through ajax. Remove $conf['tn_width'], $conf['tn_height'] and $conf['tn_compression_level'] parameters. git-svn-id: http://piwigo.org/svn/trunk@10570 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature:2274patdenice2011-04-221-2/+21
| | | | | | pwg.images.resize method is able to create or regenerate image from image path. git-svn-id: http://piwigo.org/svn/trunk@10563 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature:2273patdenice2011-04-211-10/+66
| | | | | | Ability to crop thumbnail (fixed size) git-svn-id: http://piwigo.org/svn/trunk@10552 68402e56-0260-453c-a942-63ccdbb3a9ee
* round is better than ceil for resizing pictures.patdenice2011-04-151-2/+2
| | | | git-svn-id: http://piwigo.org/svn/trunk@10383 68402e56-0260-453c-a942-63ccdbb3a9ee
* bug:1791 display hd dimensions instead of websize dimensionsmistic1002011-04-081-0/+6
| | | | git-svn-id: http://piwigo.org/svn/trunk@10157 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature:2239patdenice2011-03-311-3/+27
| | | | | | Support GIF format in the upload form (only in GD) git-svn-id: http://piwigo.org/svn/trunk@9952 68402e56-0260-453c-a942-63ccdbb3a9ee
* change the way Piwigo checks Imagick availability to make it easier to call ↵plegall2011-03-241-1/+1
| | | | | | ImageMagick with exec() in a plugin git-svn-id: http://piwigo.org/svn/trunk@9844 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature 2189 added: ability to update a photo (the JPEG/PNG file) withplegall2011-02-111-51/+122
| | | | | | | pwg.images.addSimple, simply by adding an $image_id as argument. git-svn-id: http://piwigo.org/svn/trunk@9191 68402e56-0260-453c-a942-63ccdbb3a9ee
* no need to check the availability of a GD function in the ImageMagick resize ↵plegall2011-01-311-5/+1
| | | | | | algorithm git-svn-id: http://piwigo.org/svn/trunk@9022 68402e56-0260-453c-a942-63ccdbb3a9ee
* bug 2164 fixed: disable automatic rotation if we can't read EXIF dataplegall2011-01-311-0/+5
| | | | git-svn-id: http://piwigo.org/svn/trunk@9021 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature 2040: to finish the "automatic rotation" feature, I had configurationplegall2011-01-191-0/+7
| | | | | | | | | | setting. I choose to have it in the configuration file and not in the web interface because it is a bit too technical and useful only in very specific cases (when buggy software performed a rotation before without updating the EXIF "orientation" tag) git-svn-id: http://piwigo.org/svn/trunk@8763 68402e56-0260-453c-a942-63ccdbb3a9ee
* Happy new year 2011plegall2011-01-181-2/+2
| | | | | | | Change "Piwigo - a PHP based picture gallery" into "Piwigo - a PHP based photo gallery" git-svn-id: http://piwigo.org/svn/trunk@8728 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature 2095 added: new column images.added_by (foreign key on users.id)plegall2011-01-041-1/+2
| | | | git-svn-id: http://piwigo.org/svn/trunk@8464 68402e56-0260-453c-a942-63ccdbb3a9ee
* simpler code, useless to convert value twiceplegall2010-12-231-8/+2
| | | | git-svn-id: http://piwigo.org/svn/trunk@8253 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature 2083 added: implement method pwg.images.addSimple in coreplegall2010-12-231-29/+259
| | | | | | | | | makes admin/include/function_upload.inc.php not dependant from include/ws_functions.inc.php (moves functions file_path_for_type and ready_for_upload_message) cleaner method to initialize the upload settings git-svn-id: http://piwigo.org/svn/trunk@8249 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature 2077 added: when ImageMagick is active, ability to remove or resizeplegall2010-12-221-1/+38
| | | | | | | the high definition version of the photo. git-svn-id: http://piwigo.org/svn/trunk@8227 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature 2076 added: automatically use ImageMagick (imagick) instead of GD ifplegall2010-12-211-24/+107
| | | | | | | | | | Imagick extension is available. ImageMagick does not strip EXIF/IPTC metadata from "web size" version of the photo. We force remove EXIF/IPTC from the thumbnails to save space and bandwith. git-svn-id: http://piwigo.org/svn/trunk@8219 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature 2040 added: automatic rotation of the photo based on EXIF Orientation.plegall2010-11-241-21/+81
| | | | | | | | | The code could have been shorter but this one 1) checks the resize dimension with the rotation in mind 2) rotates the photo once resized to reduce memory used. git-svn-id: http://piwigo.org/svn/trunk@7868 68402e56-0260-453c-a942-63ccdbb3a9ee
* merge r7489 from branch 2.1 to trunkplegall2010-10-291-1/+1
| | | | | | | | bug 1908 fixed: protect the uploaded photo filename against SQL injection. git-svn-id: http://piwigo.org/svn/trunk@7490 68402e56-0260-453c-a942-63ccdbb3a9ee
* merge r7169 from branch 2.1 to trunkplegall2010-10-131-1/+1
| | | | | | | | | | bug 1914 fixed: broken admin web upload with PostgreSQL as database engine. The tablename to retrieve the inserted image is mandatory for PostgreSQL and was missing. Patch by netzimme. git-svn-id: http://piwigo.org/svn/trunk@7170 68402e56-0260-453c-a942-63ccdbb3a9ee
* merge r6624 from branch 2.1 to trunkplegall2010-06-291-0/+78
| | | | | | | | | | bug 1747 fixed: some checks were added to verify the upload will fail for a too big size or if the upload has failed for a too big size (test on upload_max_filesize and post_max_size) git-svn-id: http://piwigo.org/svn/trunk@6625 68402e56-0260-453c-a942-63ccdbb3a9ee
* merge r6621 from branch 2.1 to trunkplegall2010-06-291-0/+4
| | | | | | | | | | | bug 1742 fixed: if the EXIF functions are not available: 1) display a warning (but not an error) 2) avoid to try to read EXIF data git-svn-id: http://piwigo.org/svn/trunk@6622 68402e56-0260-453c-a942-63ccdbb3a9ee
* merge r6616 from branch 2.1 to trunkplegall2010-06-281-4/+22
| | | | | | | | | | | bug 1701 fixed: support for PNG file in browser direct upload. If the picture is a PNG file, then the "web size" picture is also a PNG file but the thumbnail is always a JPEG file. git-svn-id: http://piwigo.org/svn/trunk@6617 68402e56-0260-453c-a942-63ccdbb3a9ee
* Bug 1715 fixed : SQLite: Add photos failnikrou2010-06-091-2/+2
| | | | | | must use pwg_db_* functions instead of mysql_* ones git-svn-id: http://piwigo.org/svn/trunk@6498 68402e56-0260-453c-a942-63ccdbb3a9ee
* merge r6384 from branch 2.1 to trunkplegall2010-05-271-0/+4
| | | | | | | | bug 1704 fixed: windows needs a specific directory separator when creating recursive directory. git-svn-id: http://piwigo.org/svn/trunk@6385 68402e56-0260-453c-a942-63ccdbb3a9ee
* bug 1639 fixed: the upload form now correctly uses the $conf['upload_dir']plegall2010-05-031-2/+2
| | | | | | | | | | | | | parameter (web API already use it). By default, the $conf['upload_dir'] is no longer dependent to PHPWG_ROOT_PATH because it becomes a real mess when admin/include/uploadify.php (called directly, not from an include) tries to perform an upload. Improvement: make clearer how $conf['upload_dir'] can be set (relative to the Piwigo installation directory + HTTP reachable) git-svn-id: http://piwigo.org/svn/trunk@6052 68402e56-0260-453c-a942-63ccdbb3a9ee
* Add triggers for image and thumbnail resizing.patdenice2010-04-241-3/+15
| | | | git-svn-id: http://piwigo.org/svn/trunk@5957 68402e56-0260-453c-a942-63ccdbb3a9ee
* feature 1489: integrate UploadForm into Piwigo core. The integration is notplegall2010-03-081-0/+264
100% done, I just "made it work" on trunk. pclzip library was updated to version 2.8.2 for memory usage improvement. git-svn-id: http://piwigo.org/svn/trunk@5089 68402e56-0260-453c-a942-63ccdbb3a9ee