![]() |
|
|
#1
|
|||
|
|||
|
The first draft is here:
http://www.monkeycms.com/content.php...&override=true Any feedback would be much appreciated. I'll be putting this live soon. |
|
#2
|
||||
|
||||
|
Quote:
Quote:
![]() Quote:
The height example is the same. 200 in the text, but the example shows 150.Quote:
In this 'tutorial', no mention was made of caching. If you're generating hundreds of thumbnails, this option is quite important - especially on shared hosting! (The poor server continually processing images! Oops!)
__________________
http://www.cscomputerservices.co.uk/ | Providing complete computer solutions | Web hosting with MonkeyCMS pre-installed |
|
#3
|
|||
|
|||
|
Quote:
Caching is now automatic for any image that is processed so I didn't mention it. I may add the option to turn it off though I guess it could fill up server space quickly. |
|
#4
|
|||
|
|||
|
Quote:
![]() The 'Image caching' at the end has two sets of 'Therefore' in quick succession .... but now I'm just being picky! ![]() Looks good!
__________________
http://www.cscomputerservices.co.uk/ | Providing complete computer solutions | Web hosting with MonkeyCMS pre-installed |
|
#5
|
|||
|
|||
|
Doh - will do some tidying
![]() |
|
#6
|
|||
|
|||
|
I'm working on something which will have content images which could be either landscape or portrait in orientation.
Say I want the images to be displayed in a template within an area 300 pixels x 300 pixels, how can I tell the template to display the image 300 pixels high in the event of a portrait image or 300 pixels wide for a landscape image while maintaining the images original proportion? |
|
#7
|
|||
|
|||
|
Basically you want to resize the longest side to 300?
I don't think it's possible to do at the moment, but I can add it to the next release. |
|
#8
|
|||
|
|||
|
Yep, that's what I need!
If it can be done I think it would be really useful. Any work-around you can think of in the meantime Colin? |
|
#9
|
|||
|
|||
|
Well not a workaround as such, but here's the protectedimage.php file that will be in the next release that now supports this
![]() Just add &largestside=XXX to the image rather than the width/height parameters and it'll resize the image as you need it ![]() |
|
#10
|
|||
|
|||
|
Fantastic! Thanks so much for that Colin, much appreciated
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|