Hi,
I'd like to have the pictures generated by the image module be square. I tried the imagecache module, because from the description it seemed to fit my need, but the image derivatives it created are not accessible from the other modules. In fact, I wanted to replace the 'thumbnail' predefined size with a square extract. Is it doable with drupal 5 ?
Thanks, Xav
No solution ?
On Fri, 2008-02-08 at 12:17 +0100, Xavier Bestel wrote:
Hi,
I'd like to have the pictures generated by the image module be square. I tried the imagecache module, because from the description it seemed to fit my need, but the image derivatives it created are not accessible from the other modules. In fact, I wanted to replace the 'thumbnail' predefined size with a square extract. Is it doable with drupal 5 ?
Thanks, Xav
Quoting Xavier Bestel xavier.bestel@free.fr:
No solution ?
Use CSS. Add width and height parameters for img for the class.
Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/
On Mon, 2008-02-11 at 07:45 -0500, Earnie Boyd wrote:
Quoting Xavier Bestel xavier.bestel@free.fr:
No solution ?
Use CSS. Add width and height parameters for img for the class.
Do you mean trying to fit a rectangular image in a square ? Won't that distort it ?
Xav
Quoting Xavier Bestel xavier.bestel@free.fr:
On Mon, 2008-02-11 at 07:45 -0500, Earnie Boyd wrote:
Quoting Xavier Bestel xavier.bestel@free.fr:
No solution ?
Use CSS. Add width and height parameters for img for the class.
Do you mean trying to fit a rectangular image in a square ? Won't that distort it ?
Probably. What are you looking for? Can this search [1] help or [2]?
[1] http://www.google.com/search?q=resize+image+site%3Adrupal.org [2] http://www.google.com/search?q=resize+img+php
Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/
At 1:26 PM -0500 2/11/08, Earnie Boyd wrote:
Quoting Xavier Bestel xavier.bestel@free.fr:
On Mon, 2008-02-11 at 07:45 -0500, Earnie Boyd wrote:
Quoting Xavier Bestel xavier.bestel@free.fr:
No solution ?
Use CSS. Add width and height parameters for img for the class.
Do you mean trying to fit a rectangular image in a square ? Won't that distort it ?
Probably. What are you looking for? Can this search [1] help or [2]?
[1] http://www.google.com/search?q=resize+image+site%3Adrupal.org [2] http://www.google.com/search?q=resize+img+php
Of course he doesn't want to distort the image!
The fact this sort of thing is not really easy to do is one of the BIGGEST stumbling blocks to average users and especially designers using Drupal. This should be one of the most basic and simplest things to implement and use in the program.
-- Randal
On lun, 2008-02-11 at 13:42 -0500, Randal wrote:
At 1:26 PM -0500 2/11/08, Earnie Boyd wrote:
Quoting Xavier Bestel xavier.bestel@free.fr:
On Mon, 2008-02-11 at 07:45 -0500, Earnie Boyd wrote:
Quoting Xavier Bestel xavier.bestel@free.fr:
No solution ?
Use CSS. Add width and height parameters for img for the class.
Do you mean trying to fit a rectangular image in a square ? Won't that distort it ?
Probably. What are you looking for? Can this search [1] help or [2]?
[1] http://www.google.com/search?q=resize+image+site%3Adrupal.org [2] http://www.google.com/search?q=resize+img+php
Of course he doesn't want to distort the image!
The fact this sort of thing is not really easy to do is one of the BIGGEST stumbling blocks to average users and especially designers using Drupal. This should be one of the most basic and simplest things to implement and use in the program.
Apparently I have 3 solutions (with typical Drupal results):
- use CCK+imagecache+imagefield. But then I can't use acidfree anymore (and I must migrate all photos and albums, img_assist and other stuff won't work anymore - out of question). - use image_exact. This looks like the perfect solution, except that it doesn't work (it can't resize existing images, doesn't work with mass import and fails as soon as you change your image settings) - wait for mmedia (Media Manager) to become ready, because from the description it's everything I need.
I don't doubt there are other solutions (it's Drupal), including rolling my own code, but I didn't find anything easy to deploy, and working. Yet.
Xav
I use imagecache quite a bit and it works very nicely. You have to make sure to set your image quality (can't remember if that's an imagecache setting or somewhere else in drupal) pretty high or it will create pretty crappy looking thumbnails. I use it with views bonus grid view, with thickbox, and with brilliant gallery. It works quite well for me. I haven't used acidfree so don't know about that - i remember looking at it at one point and deciding it wasn't what i was looking for but i don't remember why - could be because it didn't work with imagecache.
Xavier Bestel wrote:
On lun, 2008-02-11 at 13:42 -0500, Randal wrote:
At 1:26 PM -0500 2/11/08, Earnie Boyd wrote:
Quoting Xavier Bestel xavier.bestel@free.fr:
On Mon, 2008-02-11 at 07:45 -0500, Earnie Boyd wrote:
Quoting Xavier Bestel xavier.bestel@free.fr:
No solution ?
Use CSS. Add width and height parameters for img for the class.
Do you mean trying to fit a rectangular image in a square ? Won't that distort it ?
Probably. What are you looking for? Can this search [1] help or [2]?
[1] http://www.google.com/search?q=resize+image+site%3Adrupal.org [2] http://www.google.com/search?q=resize+img+php
Of course he doesn't want to distort the image!
The fact this sort of thing is not really easy to do is one of the BIGGEST stumbling blocks to average users and especially designers using Drupal. This should be one of the most basic and simplest things to implement and use in the program.
Apparently I have 3 solutions (with typical Drupal results):
- use CCK+imagecache+imagefield. But then I can't use acidfree anymore
(and I must migrate all photos and albums, img_assist and other stuff won't work anymore - out of question).
- use image_exact. This looks like the perfect solution, except that it
doesn't work (it can't resize existing images, doesn't work with mass import and fails as soon as you change your image settings)
- wait for mmedia (Media Manager) to become ready, because from the
description it's everything I need.
I don't doubt there are other solutions (it's Drupal), including rolling my own code, but I didn't find anything easy to deploy, and working. Yet.
Xav
On Feb 11, 2008, at 2:09 PM, Xavier Bestel wrote:
Apparently I have 3 solutions (with typical Drupal results):
- use CCK+imagecache+imagefield. But then I can't use acidfree anymore
(and I must migrate all photos and albums, img_assist and other stuff won't work anymore - out of question).
- use image_exact. This looks like the perfect solution, except that
it doesn't work (it can't resize existing images, doesn't work with mass import and fails as soon as you change your image settings)
- wait for mmedia (Media Manager) to become ready, because from the
description it's everything I need.
I don't doubt there are other solutions (it's Drupal), including rolling my own code, but I didn't find anything easy to deploy, and working. Yet.
Alternatively, use image.module, which offers the option to scale or scale and crop the image to a desired resolution.
On Mon, 2008-02-11 at 19:09 -0500, Brian Puccio wrote:
On Feb 11, 2008, at 2:09 PM, Xavier Bestel wrote:
Apparently I have 3 solutions (with typical Drupal results):
- use CCK+imagecache+imagefield. But then I can't use acidfree anymore
(and I must migrate all photos and albums, img_assist and other stuff won't work anymore - out of question).
- use image_exact. This looks like the perfect solution, except that
it doesn't work (it can't resize existing images, doesn't work with mass import and fails as soon as you change your image settings)
- wait for mmedia (Media Manager) to become ready, because from the
description it's everything I need.
I don't doubt there are other solutions (it's Drupal), including rolling my own code, but I didn't find anything easy to deploy, and working. Yet.
Alternatively, use image.module, which offers the option to scale or scale and crop the image to a desired resolution.
I'm using the image.module 1.6, but the option to crop is nowhere to be found. Are you sure it's not coming from another module ?
Xav
On Tue, 2008-02-12 at 09:52 +0100, Xavier Bestel wrote:
On Mon, 2008-02-11 at 19:09 -0500, Brian Puccio wrote:
On Feb 11, 2008, at 2:09 PM, Xavier Bestel wrote:
Apparently I have 3 solutions (with typical Drupal results):
- use CCK+imagecache+imagefield. But then I can't use acidfree anymore
(and I must migrate all photos and albums, img_assist and other stuff won't work anymore - out of question).
- use image_exact. This looks like the perfect solution, except that
it doesn't work (it can't resize existing images, doesn't work with mass import and fails as soon as you change your image settings)
- wait for mmedia (Media Manager) to become ready, because from the
description it's everything I need.
I don't doubt there are other solutions (it's Drupal), including rolling my own code, but I didn't find anything easy to deploy, and working. Yet.
Alternatively, use image.module, which offers the option to scale or scale and crop the image to a desired resolution.
I'm using the image.module 1.6, but the option to crop is nowhere to be found. Are you sure it's not coming from another module ?
BTW I looked at the diff with the 5.x-1.x-dev module, and there's no crop capability in there too.
Xav
On Feb 12, 2008, at 8:54 AM, Xavier Bestel wrote:
Alternatively, use image.module, which offers the option to scale or scale and crop the image to a desired resolution.
I'm using the image.module 1.6, but the option to crop is nowhere to be found. Are you sure it's not coming from another module ?
BTW I looked at the diff with the 5.x-1.x-dev module, and there's no crop capability in there too.
Sorry, I must be using a different version, here it is in image.module:
http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/image/image.mod...
On Tue, 2008-02-12 at 17:43 -0500, Brian Puccio wrote:
On Feb 12, 2008, at 8:54 AM, Xavier Bestel wrote:
Alternatively, use image.module, which offers the option to scale or scale and crop the image to a desired resolution.
I'm using the image.module 1.6, but the option to crop is nowhere to be found. Are you sure it's not coming from another module ?
BTW I looked at the diff with the 5.x-1.x-dev module, and there's no crop capability in there too.
Sorry, I must be using a different version, here it is in image.module:
http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/image/image.mod...
That looks nice, but I can't find that version anywhere on the project page: http://drupal.org/project/image (although I now remember it was there once). Apparently it has been dropped. I hope it will be back someday.
Thanks,
Xav
On Tue, 2008-02-12 at 17:43 -0500, Brian Puccio wrote:
On Feb 12, 2008, at 8:54 AM, Xavier Bestel wrote:
Alternatively, use image.module, which offers the option to scale or scale and crop the image to a desired resolution.
I'm using the image.module 1.6, but the option to crop is nowhere to be found. Are you sure it's not coming from another module ?
BTW I looked at the diff with the 5.x-1.x-dev module, and there's no crop capability in there too.
Sorry, I must be using a different version, here it is in image.module:
http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/image/image.mod...
OK, thanks a lot for the pointer Brian. For those interested, I backported the "crop" feature to image-5.x-1.6, you can find the patch here: http://drupal.org/node/221139 Beware, even if it works on my site, it hasn't been reviewed by the powers that be, so it can eat kittens or break your db.
Thanks,
Xav
I have to agree with sander-martijn here -- there IS a way to do it, and it's imagecache. I use it on my sites and I love it.
http://quixoticlife.net/artgallery http://ringsforever.com/classic-titanium-wedding-rings
sander said he uses it with thickbox; I use it with lightbox2 and it also works very well. I learned all I needed to know about it from Lullabot:
http://www.lullabot.com/articles/image_and_image_exact_sizes_vs_imagefield_a... http://www.lullabot.com/articles/imagecache_example_user_profile_pictures
In this particular case, Xav wants to ALSO use acidfree, and in that case, it's true, it doesn't seem like there's a ready-made solution. But that seems like a pretty specific use case to me. Personally I love imagecache, so I would focus more on integrating it with acidfree than trying to roll something custom or waiting for media manager.
--ivan
On Feb 11, 2008, at 1:42 PM, Randal wrote:
At 1:26 PM -0500 2/11/08, Earnie Boyd wrote:
Quoting Xavier Bestel xavier.bestel@free.fr:
On Mon, 2008-02-11 at 07:45 -0500, Earnie Boyd wrote:
Quoting Xavier Bestel xavier.bestel@free.fr:
No solution ?
Use CSS. Add width and height parameters for img for the class.
Do you mean trying to fit a rectangular image in a square ? Won't that distort it ?
Probably. What are you looking for? Can this search [1] help or [2]?
[1] http://www.google.com/search?q=resize+image+site%3Adrupal.org [2] http://www.google.com/search?q=resize+img+php
Of course he doesn't want to distort the image!
The fact this sort of thing is not really easy to do is one of the BIGGEST stumbling blocks to average users and especially designers using Drupal. This should be one of the most basic and simplest things to implement and use in the program.
-- Randal
-- [ Drupal support list | http://lists.drupal.org/ ]