Questions tagged [image-transforms]

Craft's native, non-destructive image manipulations.

27 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3 votes
0 answers
161 views

Image transforms directory not being created

I've upgraded to El Capitan from Yosemite, created several Image Transforms in the CP (see pic) but they don't seem to be creating the folders in the uploads dir. I've checked folder permissions for ...
user avatar
1 vote
0 answers
65 views

Image transform returns error

I'm trying to optimise page speeds for my website. One thing I'm looking into is optimising image file sizes, but Image Transform in CraftCMS doesn't seem to work. Before: {% set asset = entry....
user avatar
  • 11
1 vote
0 answers
42 views

CraftCMS Image Transform returning NULL on asset.url when stored on AWS S3 Bucket

So i'm using Craft as a headless CMS with a React frontend. When querying assets on a S3 bucket and applying a transform to them in my GraphQL query the URL response is NULL. This isn't the case when ...
user avatar
1 vote
0 answers
27 views

Limiting image transform totals in queue?

In order to serve webp images where possible, and different sizes for different screens etc, I created a bunch of image transforms over the weekend - forgetting just how many images we have in the ...
user avatar
1 vote
0 answers
93 views

FortRabbit - performance - image transforms

Anybody else have problems with image transforms on FortRabbit? They sent me this article as some background - https://blog.fortrabbit.com/imagemagick-issues I was using the light level of hosting (...
user avatar
1 vote
0 answers
207 views

Redactor inserts reference tags into IMG when using image transforms, but tag not being processed by parseRefs

Been working with Craft for about a year, but today for the first time I had to modify the Redactor config to place images inside a body field. I added 'image' to my buttons array and everything ...
user avatar
1 vote
0 answers
138 views

Disable SVG previews for asset field?

A client of mine uploads multiple, complex SVGs (2MB and larger) to an asset field. Unfortunately, Craft CMS isn't able to automatically generate thumbnail images (with a reduced filesize, not just ...
user avatar
1 vote
0 answers
308 views

Responsive images using Imager when original asset isn't large enough

Anyone here using the Imager plugin and creating responsive images using srcset and sizes? Any ideas on how to avoid creating multiple versions of the same image if the original asset uploaded is ...
user avatar
  • 1,834
1 vote
0 answers
76 views

Why does getUrl fail when using transforms on a translatable asset?

I have a project with the following code: {% if entry.filmPoster | length %} <img src="{{ entry.filmPoster.first().getUrl('filmPoster') }}" alt=""> {% elseif entry.locale('en_gb')....
user avatar
  • 3,084
1 vote
0 answers
126 views

Laravel Homestead image transforms 404

I am running Craft locally using default/update Laravel Homestead/Vagrant box. Image Transforms are returning the CP resources URL 404 error outlined in this related question: Image transforms ...
user avatar
  • 339
1 vote
0 answers
153 views

Image Transform not passing correct URL

So Right now I am working on https://munisense.com/sound, and since a week or so the Image Transform functionality seems to be working in another way (ever since the last mandatory update). The ...
user avatar
1 vote
0 answers
129 views

How to troubleshoot Inline Image Transform when there is no error logged?

Having some odd issues in 2.5 with image transforms (apparently). They are defined in the template, and saved to a Rackspace Cloud Files container. Often, we are getting a 500 Internal Server Error ...
user avatar
  • 312
1 vote
0 answers
46 views

ID for transformed asset

Does craft save a temporary ID for an asset transform? If so, how do you access it. The ID would be used in a plugin on form submit. {% for entry in imageLibrary %} <form method="post"> ...
user avatar
  • 367
1 vote
0 answers
90 views

Render image transforms on the staging server

Are normal workflow involves developing the site locally but making all the database level changes (fields and data) on the sever. The trick has always been assets. We don't bother syncing assets, ...
user avatar
1 vote
0 answers
347 views

Image transform in a multi language site gives wrong getUrl()

I have a multi language site with /nl and /en in my url. mysite.dev/nl mysite.dev/en This is my configuration on general.php 'mysite.dev' => array( 'devMode' => true, '...
user avatar
0 votes
0 answers
6 views

Transformed JPGs have larger file size than original

Question Why is it that sometimes a transformed JPG is larger than its original when it is transformed using Craft image transforms even though in my general.php file I set upscaleImages to false? ...
user avatar
  • 21
0 votes
0 answers
7 views

How to force a default transform on existing content within a Redactor field

There isn't much documentation out there about how to apply image transforms to images in a Redactor field. I found this: Apply transform to image uploaded into Redactor? And it's useful, since I can ...
user avatar
0 votes
0 answers
27 views

AVIF Transform doesn’t work

I’m local testing in my macOS, but AVIF transform doesn't work. I’m sure that libavif has been installed, and I can see that AVIF Support is enabled in the PHP info of my Craft CMS admin panel. When I ...
user avatar
  • 13
0 votes
0 answers
31 views

Lozad doesn't swap images on staging site

I inherited some lozad.js lazy loading code that broke when I pushed to the staging server. Code swaps out the thumbnail image for the high quality version. The ones in the view on load aren't getting ...
user avatar
  • 65
0 votes
0 answers
26 views

What's the recommended approach for applying effects on images and saving them in the respective volumes?

I'm creating a plugin in Craft CMS and it has a feature where you can apply certain image effects and after you are done, you can save it in the configured Asset volume. I know that ImagerX also does ...
user avatar
  • 23
0 votes
0 answers
24 views

Craft messes up Color Profiles on Upload

It's known that Craft CMS sometimes messes up color profiles when using image transforms. Up until recently, adding 'preserveImageColorProfiles' => true to your general.php fixed this issue. But ...
user avatar
  • 21
0 votes
0 answers
33 views

Why do image Transformations never finish rendering regardless if I use GD2 or ImageMagick?

I'm running Craft 2 with PHP 5.6.40 on a Windows 2019 Server under IIS (x64, non-thread-safe, FastCGI). PHP -m doesn't show any issues with my extensions, regardless if I use GD2 or ImageMagick. But ...
user avatar
  • 101
0 votes
0 answers
441 views

Image Transform change causes 500 Internal Server Error

I had an image transform set on an entry that was working as expected. I updated the code, and it didn't work, so I reverted back to the old transform. It was literally going from src="{{ image....
user avatar
  • 419
0 votes
0 answers
94 views

Apply image transform after image is placed on page

I have an overview (i.e. list with around 150 items). Each of those items has an appropriate "teaser image". When a user is hovering a list item the appropriate teaser image fades in, on mouse out it ...
user avatar
0 votes
0 answers
116 views

Imager Effects not working

Usually the effects work fine for me, are there are server requirements to get them working that I have missed? or is the template code below incorrect? {% for block in entry.clientLogos %} {% ...
user avatar
  • 671
0 votes
0 answers
506 views

GIFs aren't being transformed

I know that others have had issues with transforms and GIFs, but I wanted to post a question as I am running pretty up-to-date versions of everything, which to my understand should mean transforming ...
user avatar
  • 674
0 votes
0 answers
140 views

Resize User Photo

I know about getPhotoUrl(size) but this always gives me a square. Is there any way of scaling/cropping the user photo? Let's say I want the photo 100x50, would that be possible? By looking at the code ...
user avatar