Question

I have a Composite C1 site - a client is uploading photos to blog posts.

The photos are huge - 1.5MB. Is there a module to compress them (size & dimension wise)?

The crop module only crops & doesn't resize.

I have not found any such modules on Google. Thanks

UPDATE

I have added an aspect ratio - but it is greyed out (LPFF Preset Wide):

enter image description here

Était-ce utile?

La solution

To simply resize an image (manually) already in the media archive:

  1. Open it in the built-in Image Editor (in the Media perspective).
  2. Image / Scale image... (or click the Scale button on the toolbar - 2nd from the left)

You can also crop the image in the same Image Editor:

  1. Click the top button ("Select") on the floating bar. (The crop button on the toolbar will get enabled.)
  2. Use the cursor to select an area on the image.
  3. Click the crop button on the toolbar (3rd from the left)

Autres conseils

If you are running a recent version of Composite C1 you can resize images you include in the Visual Editor either by pulling the corner of the image or invoking the image properties dialog and set a max width or height (advanced tab).

If you need a code centered fix you can append ?mw=100&mh=100 to the image URL and your image will be automatically resized.

In Composite C1 4.1 you can append ?q=80 to JPEG image URLs to have the web server do compression. The number controls the image quality (100 highest).

All these features are part of the standard open source product.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top