Is there any way to set up more than 6 custom image sizes? The design I'm implementing at the moment requires at least a dozen.

Thanks!

Comments

dman’s picture

Really?
Are you sure you wouldn't be better off looking into imagecache.module for specifically-built derivatives instead?

greenbeans’s picture

I didn't realize that could do that. I'll take a look. Thank you.

greenbeans’s picture

OK, my concern with imagecache / imagefield is that I don't see any way to use it to permit users to add images within a WYSIWYG editor, as opposed to as CCK fields (and I need both). Am I missing something?

zoo33’s picture

The number of sizes is hard coded into the module (image.admin.inc):

for ($i = count($sizes); $i < 6; $i++) {

Seems to me you should be able to change the number 6 to anything you want without a problem, even though it's not so pretty. Does that fix your problem?

greenbeans’s picture

Yup, that'll work - thank you. Might be a pain to maintain in the long run. If I get time to turn that into a setting, is it something that might be welcome as a contribution?

dman’s picture

Not as a setting. Modify the form to auto-add a blank row when all previous slots are full.

sun’s picture

Title: Additional Image Size Presets? » Allow more image size presets
Version: 6.x-1.0-alpha3 » 6.x-1.x-dev
Category: support » feature

Please submit a proper patch. See http://drupal.org/patch for details.

High chances to be committed.

greenbeans’s picture

OK, will do if I get a chance. Might be a while, though.

Robbie Sternenberg’s picture

Version: 6.x-1.x-dev » 6.x-1.0-alpha4
StatusFileSize
new441 bytes

Here is my patch. It adds 3 blank size slots to the form, no matter how many sizes are already defined.

Robbie Sternenberg’s picture

Status: Active » Needs review
Robbie Sternenberg’s picture

StatusFileSize
new478 bytes

And here's the patch for the 5.x-2.0-alpha3 release.

sun’s picture

Status: Needs review » Fixed

Thanks, committed to both branches.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.