9

When I insert an image into content area it's usually larger than the content area and the pasted image overlaps with neighbouring blocks. I have to edit HTML and set width and height CSS properties.

Is it possible to configure Drupal for automatic image resizing (shrinking), so the creator of the article will only upload the image of arbitrary size?

thank you

3 Answers 3

10

If you attach an image field to the content type, you can define Image Styles at admin/config/media/image-styles. It is the core continuation of the Imagecache module.

This may be able to be made to work for inline images using the Media module, but YMMV.

2
  • 1
    I created style content_image with efect scale width 500 in admin/config/media/image-styles and I checked my style content_image in Administration » Structure » Content types » Event » Manage fields >> INSERT but it is has not effect.
    – xralf
    Jun 14, 2011 at 8:07
  • 2
    u will have to change your display settings on the field to use the image styles preset.
    – user842
    Jun 14, 2011 at 16:04
1

I'm not completely sure what exactly you mean, but the Image resize filter module might be what you're looking for.

1

Go to configuration-> media -> image Styles add a new image style and set resize/crop/scale option you want for the image size.

Go to manage display of that content type and for the field image set the image style you created. Your image will be using the same image style while viewing the content node.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.