Commit graph

108 commits

Author SHA1 Message Date
Colin Kuskie
52843ad7ca Fix a bug where cropping an image swaps the X and Y positions. Fixes bug #12413 2013-03-20 15:37:42 -07:00
Colin Kuskie
6ca3bedcb4 Fix syntax errors with the config file fix. 2010-01-27 21:19:12 -08:00
Colin Kuskie
db1b565560 More code formatting, and fix double my 2010-01-27 16:19:57 -08:00
Colin Kuskie
7c8f65ebdd Code formatting and bugfix documentation for #11379. 2010-01-27 16:15:45 -08:00
Luke Robinson
017a9a7fc2 allow field overrides in the config file 2010-01-27 15:57:26 -08:00
Colin Kuskie
c98cd87f80 Do not force Image assets to have an alt tag. Fixes bug #11337. 2010-01-11 16:48:08 -08:00
Colin Kuskie
15ce7b56cc Quote the id generated by the Image asset. Also, do not overwrite user uploaded parameters. Fixes bug #11246 2009-11-17 08:53:56 -08:00
Colin Kuskie
5201a1f61b Autocommit image operations like crop, annotate, resize. Fixes bug #11152. 2009-10-21 10:48:25 -07:00
Colin Kuskie
5bd5bb48a9 Central cache access for Assets to handle SSL caching. Fixes bug #11131. 2009-10-20 15:15:38 -07:00
Graham Knop
60a4a9b140 mark $session->datetime->time as deprecated and remove its use from core code 2009-10-05 20:56:37 -05:00
Colin Kuskie
ddc33b76bb Swap X and Y in image preview. Fixes bug #11073. 2009-09-30 11:32:37 -07:00
Graham Knop
fcf73a4d29 remove beta from urls for carousel and imagecropper 2009-09-22 11:21:16 -05:00
Graham Knop
2d28e0c0ba update YUI to 2.8.0r4 2009-09-21 13:13:24 -05:00
Colin Kuskie
27931774e8 Add POD missing from File and Image. Remove duplicate code in Image that
can be inherited from File.
2009-07-05 00:31:20 +00:00
Colin Kuskie
ef4afdb9c8 Remove debug. 2009-06-24 14:39:25 +00:00
Graham Knop
4ec14bc026 some image cropper cleanups 2009-04-30 18:17:12 +00:00
Brian Medley
4c408da55a Image Asset tests, upgrade package, and code.
RSS Limiter tests, upgrade package, and code.
2009-03-23 21:11:10 +00:00
Brian Medley
cdb5421c3c Seems to be done 2009-03-23 08:41:16 +00:00
Brian Medley
689a8b3e23 checkpoint 2009-03-22 23:56:32 +00:00
Brian Medley
fe54073536 checkpoint 2009-03-22 20:47:46 +00:00
Brian Medley
6acbdc063a Checkpoint 2009-03-17 20:45:25 +00:00
Brian Medley
8761848ab3 checkpoint 2009-03-05 00:49:35 +00:00
Brian Medley
00cbaa49af checkpoint 2009-03-03 11:15:39 +00:00
Brian Medley
3e5c9d04ae Another checkpoint. 2009-02-26 00:02:07 +00:00
Brian Medley
2bbd1c8610 First try at resize of an image. 2009-02-22 20:40:36 +00:00
Graham Knop
24da723629 updating copyright year 2009-02-20 23:47:30 +00:00
Brian Medley
482267b8af check point 2009-02-19 18:32:57 +00:00
JT Smith
ee84cc7611 Deprecated WebGUI::Storage::Image. WebGUI::Storage can now do everything
WebGUI::Storage::Image can do.
2008-11-26 16:06:18 +00:00
Chris Nehren
36eb8db8fc add ability to show metadata values in head blocks. 2008-08-21 18:51:16 +00:00
Graham Knop
53bdfda753 fixed: profile photos don't obey max image size 2008-03-28 19:55:03 +00:00
Graham Knop
050128f313 fixed: changing image thumbnail size doesn't resize image 2008-03-07 18:55:46 +00:00
JT Smith
93b5ca16e4 updating copyright year 2008-02-07 23:28:18 +00:00
JT Smith
fa09c41598 replaced return; with return undef; 2008-01-24 21:58:15 +00:00
Doug Bell
5222ad6be1 merged with SVN HEAD 2007-12-18 12:22:37 +00:00
Colin Kuskie
96178fd70c first round of Perl::Critic cleanups. Do not use return undef, use a bare return instead 2007-12-05 00:30:43 +00:00
Colin Kuskie
1b3d7f0c2b Refactor out the copied code to resize images based on the max file
size from the Admin Settings and create a new method in
Storage::Image.
Build a test to verify that it works correctly.
2007-11-24 05:30:15 +00:00
Doug Bell
7e12c6c2f0 merged with SVN to get friends stuff 2007-10-26 00:50:05 +00:00
Graham Knop
39ad82133a fix image uploads when not using perl 2007-10-16 20:05:23 +00:00
Doug Bell
5746ded766 Added more tests. Cleaned up the OO of File and Image a bit (removed a healthy bit of unnecessary code from Image). Done with File and Image for the time being... 2007-10-09 07:36:54 +00:00
JT Smith
884953607c - fix: A bug where it was possible to delete a system page if it were made
the child of a non-system page that you had edit rights to.
 - api: Added a unified contraints system for the file and image assets.
- fixed several problems with the new attachments control, setup, and tempspace
2007-07-26 16:08:27 +00:00
JT Smith
f6cab15bd0 removed help links that are referring to help that has been moved to the wiki 2007-07-26 04:53:14 +00:00
JT Smith
a7dde82421 updated copyright 2007-07-01 16:09:42 +00:00
Colin Kuskie
7abd54eb94 forward port of double-thumbnail bug. Image was inheriting a Storage object from File, and needed a Storage::Image object 2007-06-23 02:19:38 +00:00
Colin Kuskie
522d87fed2 forward port of File/Image - Storage/Storage::Image object alignment fix 2007-06-22 23:26:13 +00:00
Colin Kuskie
e3092f0aa8 Fixed a bug where due to the lack of a cached Storage object,
the assetSize in the db was set wrong.  This happened when a File/Image
was added, and when it is committed. Editing the Asset would fix it, but
once it was committed, the files in the Storage area were not added.

List of Changes:
1) Removed setSize from File/Image.pm. It can inherit from File.
2) In Asset::File::processPropertiesFromFormPost, set _storageLocation to the Storage
   object.  Remove the call to setSize since it's done in ->update
3) In Asset::File::setSize, fetch the current storage object via getStorageLocation.
4) In Asset::File::update, move the call to update after the filesystem work.  This
   way changes in the size of the permissions file get accounted for.
5) In Asset::update, call setSize after all changes, regardless of whether or not
   properties have changed.
6) In Asset::setSize, refactor out the size calculation and update $self's properties
   cache so that long running scripts have the right size.
2007-06-13 23:06:44 +00:00
Frank Dillon
9a8207fee0 Fixed bugs in storage causing multiple storage locations to be created any time a file was created or updated. Fixed a bug which prevents files from potentially breaking on operating systems that are not case sensitive. 2007-05-04 19:19:01 +00:00
Colin Kuskie
8b7bafe1ae fix for editing interfaces to Assets that still display an edit button even if the Asset is edit locked. 2007-04-29 03:16:13 +00:00
Graham Knop
58018d5d69 More image uploading fixes. Copying/pasted code. Should probably be refactored a bit. 2007-04-27 17:12:50 +00:00
Colin Kuskie
2c246c06cc fix a bug where updating the storageId in File Type assets did not update the cached storageLocation. Also fixed the Thumbnail Macro test 2006-12-09 06:05:26 +00:00
Drake
d0bacc8988 Make File assets work with the exporter. This means not using the streaming
mechanism.  This isn't optimal; should find a way to use the streaming
mechanism iff we know that there's going to be a live HTTP session on the
other end and not just a filehandle.
2006-10-13 20:01:48 +00:00