These forums are provided for community interactions only. For official support please submit a support ticket.

You are not logged in.

#1 2012-07-29 14:56:17

nickpotter
Member
From: UK
Registered: 2008-01-01
Posts: 31
Website

Format Parameters

In the documentation the Format() call shows the following parameters:

'name'
'width'
'height'
'crop'
'quality'
'sharpening'

My question is are these the only ones that are available?

I ask because although I know its not best practice there are instances when I want to scale up some images beyond what I original uploaded (I know there'll be a quality hit). At the moment it won't enlarge beyond the original size, so I was wondering if there's a format option to allow enlarging.

Offline

 

#2 2012-07-30 16:42:28

brandonguy
Veteran Member
Registered: 2008-02-07
Posts: 210

Re: Format Parameters

doesn't look like it.

I think that darkroom.php is the main php that cooks up formats (not positive as have never hacked into it but look for the line

Code:

////
// The workhorse develop function
////

and maybe you can hack it up, turning off the limiting to original size.  Would be curious if you can do it, as would love to hack a few more cropping styles to handle really long images (limit by height only for example)

Offline

 

#3 2012-09-07 20:20:26

seahorsecowboy
Member
Registered: 2006-06-23
Posts: 29

Re: Format Parameters

I'd like to know that also. I just started using the api and am amazed how convenient it is.

What about the 'crop' parameter. It works but is only scaling down.
Is there 'crop to fit all' available?

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson