I could not found a image size of the zoomed colorbox image.

Right now, users will upload a high res. image 3K+ x 2K+

I would like to auto resize all zoomed images to say 1024x768

Comments

adrianmak’s picture

Providing another piece of information. I am using image picker module with colorbox.

frjo’s picture

I have no experience with image picker but your issue is with that module and not with Colorbox.

Colorbox simply looks for links with a class "colorbox" and when these links is clicked it tries to show the link target inside a Colorbox.

If your links link to the full res image Colorbox will show that. If it links to a scaled version it will show that.

I normally upload images to an imagefield and then use image styles (imagecache in D6) to scale them to whatever is suitable for the moment.

hutch’s picture

Imagepicker has support for image styles (imagecache in D6) in the latest dev version.

@adrianmak, if you set the Max width and Max height settings in colorbox configuration your images will be scaled if they are larger than that.

adrianmak’s picture

I couldn't find max width and max height settings in colorbox configuration page.

lsolesen’s picture

Project: Colorbox » Image Picker
Version: 6.x-1.0-beta11 » 6.x-2.x-dev

Moving to Image Picker.

hutch’s picture

Not sure what you mean by "Zoomed image", but

Set Maximum Scale in configuration page for Imagepicker. This will resize any uploaded images to that maximum dimension (width or height, whichever is greater) if they are larger than that maximum. In your case 1024

To control the size of a Colorbox see the description by the Enable Colorbox load checkbox in Colorbox configuration. Images will be automatically resized to fit.

lsolesen’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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