Skip to main content

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" ...
FrankFlitton's 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 ...
cmal's 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 ...
Brandon Kelly's user avatar
8 votes
1 answer
692 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 ...
Mark Huot's 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 ...
Brett Burwell's 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 ...
erwinheiser's user avatar
4 votes
2 answers
318 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 ...
Niall Thompson's user avatar
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 ...
smartpill's user avatar
  • 107
4 votes
3 answers
488 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 ...
iDzine's user avatar
  • 113
2 votes
1 answer
263 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 ...
hvs's user avatar
  • 283
25 votes
1 answer
5k 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?
a-am's user avatar
  • 2,857
19 votes
2 answers
4k 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/ ...
Kateriine's user avatar
  • 191
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 ...
Jason McCallister's user avatar
9 votes
3 answers
6k 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.
Kantesh Hotchandani's user avatar
6 votes
1 answer
548 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 ...
Paul's user avatar
  • 6,338
6 votes
1 answer
724 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 ...
Johan Douma's user avatar
6 votes
3 answers
1k 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?
Steven Grant's user avatar
  • 1,855
3 votes
2 answers
395 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 ...
Katrin's user avatar
  • 674
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 ...
Ed Hebert's user avatar
  • 145
3 votes
1 answer
480 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 ...
Tom Carwardine's 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 ...
carlcs's user avatar
  • 36.3k
2 votes
1 answer
881 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 ...
Eli Van Zoeren's user avatar
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 ...
mrsmn's user avatar
  • 731
2 votes
2 answers
417 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 ...
Mr. Sam's user avatar
  • 287
1 vote
0 answers
306 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 ...
Sherri Alexander's 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 ...
Tim Kelty's user avatar
  • 3,081
1 vote
1 answer
657 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 ...
Dimitrios Vogiatzis's user avatar
1 vote
1 answer
181 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 ...
John Johnson's user avatar
1 vote
2 answers
978 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 ...
mdmngz's user avatar
  • 157
1 vote
1 answer
566 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:...
Steven Grant's user avatar
  • 1,855
0 votes
1 answer
88 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 ...
Nutmeg's user avatar
  • 598