Questions tagged [image-transforms]

Craft's native, non-destructive image manipulations.

Filter by
Sorted by
Tagged with
13 votes
5 answers
7k views

Image transforms returning cpresources url

I'm trying to get Craft to render an image transform defined in the control panel. No image is added to the "filelocation/_transformhandle" folder and returns the url "/cpresources/transforms/98" ...
user avatar
11 votes
3 answers
1k views

Prevent Asset Transforms from scaling Image past 100%

There is almost never a reason why I would want an image to be scaled past 100% by a transform. This usually results in an image being looking worse than it would if scaled by the browser. Is there a ...
user avatar
  • 815
24 votes
3 answers
7k views

How can I automatically generate responsive images from a single hi-res asset?

I want to be able to upload a single high resolution image, and output a <picture> element that outputs it with a few different sizes and resolutions automatically (using Picturefill to sort out ...
user avatar
8 votes
1 answer
678 views

Is it possible to hook into image transforms?

I have a somewhat unique thumbnail need for a certain site. I need to watermark images with custom text (per image, not globally across the site). Is there a way to hook into the Craft image transform ...
user avatar
  • 125
2 votes
2 answers
2k views

Using image transforms sometimes results in bloated file sizes.

I'm in the process of setting up Asset image transforms for my site and was playing with the quality setting to find the right balance between file size vs. output image quality. As part of the ...
user avatar
11 votes
3 answers
4k views

Is there a way to force Assets to redo transforms?

Client has uploaded a number of severely badly lighted photographs for a 'staff' section of a site and these all have had a 'staffThumb' transform applied to it on the sites pages. I corrected the ...
user avatar
4 votes
2 answers
310 views

Transform different image if specific id or order

I have a masonry type image grid layout and I need to specify a different image transform for just the 2nd and fourth images in this grid. Does the image ID relate to the order or to the specific ...
user avatar
4 votes
3 answers
468 views

Can't resize image in Rich Text field since 2.5 update

after upgrade to 2.5, it seems it's not possible to click on the inserted image and resize it in the Rich Text Field. If you click it now, you directly get a popup to give in the Title, link or select ...
user avatar
  • 113
4 votes
2 answers
1k views

Can images embedded in a Rich Text field be resized on output?

I see how to use Image Transforms when the image tag is its own field but don't see a way to handle images within Rich Text fields or force a size on upload. I need to have the image dimensions ...
user avatar
  • 107
2 votes
1 answer
248 views

Best way to access getPrev and getNext asset fields

I am trying to access the previous and the next blog entries from my current post. Here is what I am doing {% set params = craft.entries.section('blog').order('postDate asc') %} {% set prevEntry ...
user avatar
  • 283
25 votes
1 answer
4k views

Generating pending image transforms stuck in process

In the CMS the progress indicator for tasks is stuck and not completing its jobs. What can I do to resolve this?
user avatar
  • 2,717
18 votes
2 answers
3k views

How do I force Craft to regenerate assets transform?

I had to add an image size in the assets transforms; all my pics were previously uploaded, but when I use getUrl('headIpad'), it makes urls like this: http://host.com/cpresources/transforms/4/ ...
user avatar
  • 181
9 votes
3 answers
5k views

How do image focal points work in Craft 3?

How do image focal points work in Craft 3? I see the dot in the CP, but I'm unable to set the focus.
user avatar
10 votes
1 answer
1k views

Change the size of a users profile photo?

I have a website where I am pulling a list of staff members from the Craft users. You can add individual fields to the users element, but it seems the image for the photo is incredibly small is size ...
user avatar
3 votes
1 answer
1k views

Generate PDF preview images automatically?

Is it possible to auto generate PDF preview images with Craft transforms? This popular Q/A at Stack Overflow shows a PHP solution making use of ImageMagick and GhostScript. Is installing these plugins ...
user avatar
  • 35.9k
3 votes
2 answers
2k views

Image Transforms - Image not processed until second page refresh

I'm new to Craft, and am not sure whether I've got something weird happening or if what I'm experiencing is expected behavior. I notice that when I add new entries containing image assets that get ...
user avatar
  • 135
2 votes
1 answer
2k views

Image Transform Internal Server Error (500 code) after Craft CMS update

I just updated an "older" Craft site (version 2.4.2702) to the newest update (version 2.6.2958). But now all my image thumbnails in the back-end are missing and if I upload any new assets, the ...
user avatar
  • 1,456
2 votes
2 answers
1k views

Applying an image transform returns a 404 cpresources URL

EDIT 3: Started using imager and no longer have the problem. It's not a real answer to the problem but solves the problem. This is the situation that has me pulling my hairs... I've looked at other ...
user avatar
  • 701
1 vote
1 answer
151 views

User-selected Image Transform

I've set up four custom image transforms on the page and would like the content editor to be able to select which size they want the image to be from a drodown field preconfigured with the ...
user avatar
1 vote
1 answer
1k views

Possible memory leak - GeneratePendingTransforms/ImageMagick

Wondering if anyone else has had issues with memory and a large amount of image transforms. I seems like perhaps memory is not being freed up between transforms. When GeneratePendingTransforms is ...
user avatar
  • 3,061
1 vote
1 answer
803 views

Any way to manually generate a transform on an asset source?

I imported all of the posts from a WordPress blog, using a regular expression to update the image URLs to their new location in a Craft Asset Source. However, many of the original photos are straight ...
user avatar
0 votes
1 answer
83 views

Pulling images from other sections with image transform

I would like to display images from various sections, in this case the home page. I am still coming to terms with Twig/Craft's criteria models and the transform makes it confusing. {% for image in ...
user avatar
  • 598
6 votes
1 answer
647 views

Cache/ColdCache & checking for ungenerated image transforms

This issue is very similar to the following issue, but this goes a little bit further. Cache tag won’t cache in a template I have a page which is made up of hundreds of lazy loaded images similarly ...
user avatar
6 votes
3 answers
992 views

apply transform to image uploaded into Redactor?

Is it possible to allow the selection of an image transform on an image that's been uploaded into a Redactor field?
user avatar
  • 1,793
6 votes
1 answer
531 views

Is 'real crop' a possibility?

Ok, this is the first time I need this, but here's my question: If crop is selected for a transition, what you get is a scaleAndCrop. Is there a way to do a 'real' crop, so no resizing before ...
user avatar
  • 6,288
3 votes
1 answer
470 views

Errors with Craft 2.3, Imagine and Imagick

Does anyone else have the same issue? Post the recent Craft 2.3 update all image transforms on my server (about 6 craft sites now) are throwing errors on new transforms. Specifically write errors ...
user avatar
3 votes
2 answers
364 views

Images much larger on server and page than the local version

I am trying to bring image file sizes down as much as possible, but the images on the server turn out to be quite a bit larger than the same images I have saved locally. For example, I have one local ...
user avatar
  • 674
2 votes
2 answers
394 views

Using Focuspoint with eager loading

I'm using eager loading for retrieving some images for my gallery: {% set employments = craft.entries({ section: 'employments', with: ['photo] }) %} This works fine and I can see all images on my ...
user avatar
  • 287
1 vote
1 answer
546 views

Assets Transform returns "Image cannot be found."

I have two assets sources, Slideshow and Products. I have six Image Transforms. On the home page I'm using a structure channel to play a simple slideshow and I'm using 3 transforms and all is working ...
user avatar
1 vote
1 answer
530 views

inline image transforms

Is it possible to set an inline image transform's settings from the output of a Matrix block field? For example {% set transform = { mode: 'block.imageMode', width: block.imageWidth, position:...
user avatar
  • 1,793
1 vote
2 answers
811 views

Get a defined image-transform's width and height in front-end template

Is it possible to retrieve a control panel defined imagetransform’s dimensions in a front-end template without having to retrieve an asset? Because when there is no asset provided, I can't seem to ...
user avatar
  • 157
1 vote
0 answers
286 views

Specify number of loops for animated GIF (ImageMagick)? [closed]

I'm experimenting with Craft 2.6, and am having a bit of difficulty with animated GIFs. The original animated GIF files I'm working with are set up to only loop once, but when I upload them into Craft ...
user avatar