summaryrefslogtreecommitdiff
path: root/core/helpers/graphics.php
AgeCommit message (Collapse)Author
2009-05-27Restructure things so that the application is now just another module.Bharat Mediratta
Kohana makes this type of transition fairly straightforward in that all controllers/helpers/etc are still located in the cascading filesystem without any extra effort, except that I've temporarily added a hack to force modules/gallery into the module path. Rename what's left of "core" to be "application" so that it conforms more closely to the Kohana standard (basically, just application/config/config.php which is the minimal thing that you need in the application directory) There's still considerable work left to be done here.
2009-05-26clean up whitespace errors introduced in last commitBharat Mediratta
2009-05-26Restructure the module lifecycle.Bharat Mediratta
Install: <module>_installer::install() is called, any necessary tables are created. Activate: <module>_installer::activate() is called. Module controllers are routable, helpers are accessible, etc. The module is in use. Deactivate: <module>_installer::deactivate() is called. Module code is not accessible or routable. Module is *not* in use, but its tables are still around. Uninstall: <module>_installer::uninstall() is called. Module is completely removed from the database. Admin > Modules will install and activate modules, but will only deactivate (will NOT uninstall modules).
2009-05-20Always set the graphics_toolkit_path, even if we're on GD. That'llBharat Mediratta
force it to show up in Admin > Settings > Advanced so that people can easily forcefully change over to ImageMagick or GraphicsMagick.
2009-05-20Add a default image quality level. There's no UI for it, except AdminBharat Mediratta
> Settings > Advanced. The default is 75.
2009-05-13Gee it's May already. Update copyright to 2009.Bharat Mediratta
2009-05-13Exclude the root album from the "dirty images" queryBharat Mediratta
Clean some HTML out of a translated string.
2009-05-12Allow configurable padding optionsBharat Mediratta
2009-05-10remove_rule() should mark thumbs/resizes dirty also. Resolves ticket #269, ↵Bharat Mediratta
thanks jstricker!
2009-05-09Force the 'GD Version' key to existBharat Mediratta
2009-04-22Throw an exception in graphics::resize() if the input file is emptyBharat Mediratta
2009-04-17Be graceful if exec() is disabledBharat Mediratta
2009-04-05Don't do graphics detection in core_installer::install() because thatBharat Mediratta
gets run at scaffolding::package() time, not on the target machine. Instead, create a core module variable to trigger running graphics::choose_default_toolkit() on the first admin login after install. Fixes ticket #206.
2009-03-21Refactor all translation strings that have ambiguous placeholders.Andy Staudacher
E.g. "%link_startClick here%link_end" is now '<a href="%url">Click here</a>'. Note: This isn't always the best solution. E.g. consider "Foo <a href='%url' class='gDialogLink'>bar</a>." Now the translator has to deal with preserving CSS classes too...
2009-03-09Don't let graphics::resize() upscale images.Bharat Mediratta
Fixes ticket #117.
2009-02-28Change the pattern to identify tables that need prefix substitution toTim Almdal
mirror the drupal pattern of using braces {}.
2009-02-27This implements table prefix for all the queries in core, user, exif,Tim Almdal
tag, search, comment and notification modules (Ticket #68)
2009-02-25Add support MP4 movies also. Flowplayer supports them and can streamBharat Mediratta
them using the h264streaming plugin. Everything else is a fairly minor change.
2009-02-23Remove debugging informationTim Almdal
2009-02-231) Optimize the loop in graphics::generate so it uses the $ops as theTim Almdal
key and path. This way it won't try to generate a resize for movies. 2) Changed the options on the ffmpeg command in movie::extract_image so we actually see a frame not the black one that starts the movie.
2009-02-23Remove debug code, thanks Andrew Slayman!Bharat Mediratta
2009-02-22Remove the $item from the various graphics functions, that was a badBharat Mediratta
idea. Instead convert movies to jpeg before doing any transformations, which keeps the graphics functions clean and abstract and dealing solely with image types. Lighter/simpler solution.
2009-02-22Very basic movie support. You can upload a FLV file, we use ffmpeg toBharat Mediratta
extract a thumbnail out of it and if you click through we show it using flowplayer.
2009-02-15Album cover fixes. Don't bomb in generate if we can't load the albumBharat Mediratta
cover (it might be deleted and we forgot to update the album_cover_item_id column). Also, exclude albums with missing album_cover_item_id's from the dirty query.
2009-02-12Remove the Database::query call for deletes and updated and useTim Almdal
Database::delete or Database::update instead
2009-02-08Properly implement changing the thumbnail and resized image sizes byBharat Mediratta
updating the graphics rules as appropriate.
2009-02-08Change mark_all_dirty to mark_dirty and specify what we want to mark dirty. ↵Bharat Mediratta
This will be useful for Admin_Theme_Details
2009-02-07Remove the try/catch as it was being fixed twiceTim Almdal
2009-02-06Convert all item->type == "album" to item->is_album()Tim Almdal
Convert all item->type == "photo" to item->is_photo()
2009-02-05Addressed the issues in ticket 34.Tim Almdal
Surround the the attempt to use gd_info with a try catch block. Created a new class gInstalledToolkit which has the highlighting and the over pointer definition. Now if you mouse across an inactive toolkit it remains inert.
2009-02-05Guard against the case where gd_info() isn't definedBharat Mediratta
2009-01-16Move graphics::rebuild_dirty_images to core_task::rebuild_dirty_imagesBharat Mediratta
2009-01-15Changing t() placeholder syntax from {{replace_me}} to %replace_me.Andy Staudacher
2009-01-15Simplifying the way t() is called. Refactoring localization function ↵Andy Staudacher
t($message, $options=array()) into 2 separate functions: - the new t($message, $options=array()) is for simple strings, optionally with placeholder interpolation. - t2($singular, $plural, $count, $options=array()) is for plurals.
2009-01-14Make sure that helper functions are all static. Add newBharat Mediratta
File_Structure_Test to make sure we don't regress. According to the PHP docs, the "public" keyword is implied on static functions, so remove it. Also, require private static functions to start with an _. http://php.net/manual/en/language.oop5.visibility.php
2009-01-08i18n refactoring: Rename all _() (reserved by gettext) calls to t().Andy Staudacher
- And refactor printf to our string interpolation / pluralization syntax - Also, a slight change to the translations_incomings table, using binary(16) instead of char(32) as message key.
2009-01-07Rebuild 2 images at a time.Bharat Mediratta
2009-01-06Add graphics::Can() to let us determine whether the active toolkitBharat Mediratta
supports a given function. Right now it's hardcoded to support what we know about GD.
2009-01-03Add graphics::rotateBharat Mediratta
2008-12-30Add a "Graphics Settings" page that lets admins choose which graphicsBharat Mediratta
toolkit we use. We only allow users to use one toolkit. The UI needs work!
2008-12-30More phodoc cleanup.Bharat Mediratta
2008-12-30comment cleanup.Bharat Mediratta
2008-12-29Don't let the x/y coordinates in composite go negative.Bharat Mediratta
2008-12-29Properly implement graphics::composite()Bharat Mediratta
2008-12-29Make graphics rules take named parameters. This will give us someBharat Mediratta
flexibility in the future.
2008-12-29Separate permanent messages out of the message helper and put themBharat Mediratta
into site_status. Show site status in the header in the admin theme.
2008-12-28Expand on the maintenance code to make it more robust and give theBharat Mediratta
admin more control. You can now track running tasks, resume stalled tasks, cancel running tasks, and remove finished tasks. Added graphics::compose() as a placeholder for future watermark operations. Added CSRF protection to maintenance urls.
2008-12-28First round of a task framework. Tasks are job definitions stored inBharat Mediratta
the database. They're started with admin/maintenance/start/[task_name] which sends down some JS/HTML which regularly pings the task at admin/maintenance/start/[task_id] until its done. The UI is still very rough. It works, though!
2008-12-27Ignore resizes for albums when calculating the dirty countBharat Mediratta
2008-12-26Added the concept of "permanent" messages that we show to admins. UseBharat Mediratta
this to show a "your thumbs/resizes are out of date" message whenever we change the graphics rules. Tweak watermark module to add graphics rules whenever we make a change, which triggers the graphics module to add the permanent message.