Image handling in core... for real this time.

It's one of those often discussed, but never completed things. Everyone knows Drupal core could do a better job with images... so why doesn't it?

Well, it's time for things to change. If you've ever thought Drupal should do a better job out of the box manipulating images and making it easier for users to upload images and embed them in their content... and you're willing to help do something about it. This session is for you.

We're gonna come up with a plan, and we're gonna make it happen.

Time: 
16-17
Average: 4.5 (35 votes)

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Imagefield and cache, meet image.module

I'd love to get some resolution to the imagefield vs. image module debate. While I think that image module is great in it's simple setup, it doesn't have nearly the flexibility of imagecache in creating thumbs, which can be extended even further.

Anticipating CCK (fields) in core for Drupal 7, this presents a new picture for how we can make image handling part of core in both a flexible and easy interface.

Exactly!

Which is totally why I want your input and your buy in on this session and the plan! :)

Extending imagefield.module

Why would you insist on handling images in core?

I recently had to extend imagefield.module to enable user cropping and scaling (see http://barcelona2007.drupalcon.org/node/534). My plan is to clean it up and then release some form of generalization enabling manipulation of imagefields using plugins like 'crop', 'scale', etc.
I still don't have a plan on how exactly to do this, and will be happy to discuss..

Why would you insist on

Why would you insist on handling images in core?

Because it's an often requested feature - and one that is generally accepted as a 'must have' -- the debate is over what and how much should be done in core. Core already has image.inc - and perhaps it remains the only piece. .. but most people want easy image upload in core plus better manipulation features.

I recently had to extend imagefield.module to enable user cropping and scaling (see http://barcelona2007.drupalcon.org/node/534). My plan is to clean it up and then release some form of generalization enabling manipulation of imagefields using plugins like 'crop', 'scale', etc.
I still don't have a plan on how exactly to do this, and will be happy to discuss..

Sounds like exactly what imagecache does ...
Please join us! :)

Sounds like exactly what

Sounds like exactly what imagecache does ...

I am not too familiar with imagecache's code, but in imagecache you define the manipulation *before* content entry. I want to have the users decide on the manipulation *during* content entry, and have the option to play with it, change it, see how it looks and when they are done, click 'submit'. Imagacache is great to apply a fixed set of filters for image consistency, but I am looking for the other side in terms of flexibility.

Please join us! :)

I sure will :)

unsharp mask

unsharp mask, unsharp mask, unsharp mask....

Check out...

Image enhanced scaling! It's kind of a hack, but it works, and the images look great. And once Image 5.x-2.x gets released (or if you try HEAD) there is the new bundled module Imagemagick Advanced Options which also add this option – in a nice and proper way.

Seperation of filesystem and modification

So, another thought, and we touched on this, is that there need not be any (or rather very little) relation between how the image is generated and how drupal stores and retrieves it.

Obviously, some level of caching of generated images is needed so we aren't generating the image on the fly all the time, but after that it can be passed to another system completley until it gets a delete call.

This effectively makes thing like s3 integration and even just standard page building a different set of functionality than how the user deals with creating the images.

I'm picturing and end user case where (with all permissions enabled) someone posting an image - either inline or standalone image-in-a-gallery node can choose either A) a pre-existing rule set or B) a set of modufications that relate to this image only.

After that step - its then up to a different subsysytem how that gets stored and retrieved quickly and accurately.

just first thoughts...

some idea for drupal 7

Just dreaming but check out the video on this page: http://willy.boerland.com/myblog/media_image_resize_in_a_way_you_have_no...

www.attiks.com - graphic design and web applications

Two more filters

Could you add this to our wish list?

1. Content Aware Image Resizing

2. Clothes removal filter

Thank you.