Questions tagged [image-transforms]
Craft's native, non-destructive image manipulations.
211
questions
3
votes
1
answer
516
views
Image Transforms: Is there a way to detect portrait or landscape?
I'm looking to setup an image transform via the control panel but I only want to resize the image (scale - not crop or fit). The trouble is that I don't know whether the uploaded image will be a ...
1
vote
1
answer
293
views
Force an image transform to images inserted into Redactor
I know this essentially does the trick, however I was hoping I could apply a custom transform to all image assets if one hasn't been defined by the user.
The problem I have is trying to convey the ...
2
votes
1
answer
400
views
PHP transformed image?
I’m using Craft to add CMS functionality to an e-commerce website via craft/app/bootstrap.php
Trying to pull a 'timeline' structure with a featuredImage Asset Field.
This code works and pulls the ...
2
votes
1
answer
247
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 ...
2
votes
1
answer
192
views
Is it possible to force Craft to recheck available sever modules?
One of our servers hosting a Craft site has recently had ImageMagick installed on it, as we noticed that transformed animated GIFs weren't animating.
The 'Requirement Report' at /admin/utils/...
5
votes
2
answers
703
views
Image transform is turning my jpegs dark
I'm experiencing a strange effect where an image transform is causing my images to turn very dark when compared to their originals. I have ImageMagick and gd installed. The images are all sRGB. Some ...
2
votes
1
answer
516
views
Pass hardcoded path to getUrl()
I am migrating a static HTML site to Craft, and trying to apply image transforms to specific images without running them through a Craft field.
In other words, I have the image path hardcoded in the ...
1
vote
1
answer
179
views
Image Transform in template 'Auto' errors
The docs state:
format can be set to 'jpg', 'gif', 'png', or 'Auto'.
*Why is it 'Auto' not 'auto'?!
https://craftcms.com/docs/image-transforms#possible-values
I'm using a variable to define the ...
0
votes
1
answer
449
views
Issues with picture and image transforms
I'm having some issues with when applying image transforms. Hopefully it's something obvious I'm over looking. The code is as follows:
<picture>
<source media="(min-width: 401px)" ...
1
vote
1
answer
690
views
Ensuring Image transforms use https
I'm trying to get rid mix content warnings for https connection. The SSL certificate is installed and working fine but my image transforms are being requested over http hence the warning messages.
...
0
votes
1
answer
101
views
image transforms issue with CMYK images [closed]
The builtin craft image resizer tool appears to be having issues with CMYK source images, we're using Craft 2.5 (latest version)
Original source image
http://2b45fe03c2dbd491035c-...
1
vote
1
answer
530
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 ...
4
votes
1
answer
681
views
How to output transforms for retina images from one upload?
I have a slide show that shows logos of different dimensions working well in HTML/CSS - the image output looks like below. I'd like to only upload one retina/hdpi image once for the entry where the ...
1
vote
1
answer
556
views
Image Transform Quality settings
This is a simple question but I haven't been able to find the answer. Does the Image Transform Quality setting "Auto" mean that no compression will be applied to the transform?
3
votes
2
answers
2k
views
Access Image Transforms for S3 images via Element API
I'm building a small Craft site to function as a content backend, exposing all of the content via the ElementAPI.
One field I'm retrieving and displaying in the API is the URL on Amazon S3 for an ...
0
votes
1
answer
310
views
Image transform in inline background css not being generated
In my backend I have a radio button field with 2 options for the client:
Normal and cover. When selecting normal, the uploaded image is put into an tag in the HTML and an image transform is applied. ...
0
votes
1
answer
349
views
GUI Crop image field - Plugin request
I'm just wondering here if something like this is possible. On a website I'm working on for a photographer, he's in need of carefully selecting focal points on his images.
I'm aware of the focal ...
2
votes
1
answer
1k
views
Plugin to create an image transformation for an external image (non-Assets field)
In reference to this post Can I apply an image transformation to an arbitrary image (non-Assets field)? does anyone have an example of the markup used to create the plugin to do this?
I need to ...
1
vote
1
answer
326
views
Applying image transforms to remote images?
Is there any way to apply an image transform (either CP-defined or template-defined) to a variable which represents the URL of a remote image? Naturally it would need to be cached locally, but since ...
0
votes
2
answers
1k
views
Image transforms return cpresources URL in Craft Pro 2.5.2754
Despite having tried the tips from Image transforms returning cpresources url, I am still having issues with image-transforms.
I am running Craft Pro 2.5.2754
asset-source details as follows:
...
0
votes
1
answer
159
views
Craft 2.5 option to embed image with transform missing [closed]
I know Craft 2.5 uses Redactor II so I assume this problem relates to this, but it would be good to get this confirmed.
Setting aside the fact you need to update the configs, I have noticed the ...
2
votes
2
answers
411
views
Image Transform as a Field
I was just checking out the AP insights case study:
I came across the LiveView Editor screenshot. I see an inline Image Transform Crop field. What is the method to add this crop field ?
4
votes
3
answers
467
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 ...
0
votes
1
answer
332
views
Transform: Image {file} cannot be found with
Why do i get an error
throw new Exception(Craft::t('Image “{file}” cannot be found.', array('file' => $file->filename)));
for
{% set myImage = entry.pr_foto.first %}
{% set params = { width: 300, ...
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 ...
2
votes
1
answer
841
views
Image transform with either width or height
I'm looking to create an image transformation where either the height is (e.g.) 180px, or the width is 180px depending on whether the image is portrait or landscape.
So, if the image is landscape the ...
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 ...
3
votes
2
answers
362
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 ...
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">
...
1
vote
1
answer
1k
views
Full url to image transform
I'm trying to setup a page where the html will be copied into Mailchimp for a newsletter. The images need to have a full path url. How would I construct the code to provide this? So instead of "/...
1
vote
1
answer
366
views
Image Transforms not stretching image
i´m implementing a image gallery and want to show the thumbnails ( no problem here ) with a transform applied, and i want to implement a image transform on the large image that opens on a lightbox. ...
2
votes
1
answer
3k
views
How does Craft know when to generate an Image Transform
I created an image transform called teamImage. My template code is below.
I want this transform to be created when I upload an image within a Team entry.
Team has it's own asset folder.
My ...
0
votes
1
answer
589
views
Image Transforms - disable scaling up [duplicate]
I have image transforms set up and working well for my site, however I have an issue that seems to be a possible feature request because it is not documented or on this Stack Exchange.
If a user ...
0
votes
2
answers
98
views
Disable image cleansing for public facing form uploads
We want the public uploads to remain in raw state. Is it possible to disable image cleansing for entries created through public facing form? (Image cleansing to continue working for uploads through ...
2
votes
2
answers
560
views
How to check if an Image Transform exists?
Is there an elegant way to check if an image transform exists?
{% if craft.imageTransformExists('thumb') %}
<img src="{{asset.getUrl(thumb)}}" alt="Image">
{% else %}
This image transform ...
1
vote
1
answer
125
views
Is there a way to create a new image transform 'onAfterInstall()' of a plugin?
As the title suggests, I would like my plugin to generate a new image transform automatically (with a few settings) when the plugin is installed.
The purpose is to avoid my plugin from crashing if a ...
2
votes
1
answer
1k
views
Uploading animated GIF outputs only first frame
I've updated everything to the latest version and the result of uploading an animated GIF is just the first frame of the animated GIF.
Any ideas on why animated GIFs aren't working? Is there a way to ...
1
vote
1
answer
103
views
How can I server Craft transform assets statically (not through Craft/PHP)
I’m using Craft as a backend for an iOS app and theres thousands of asset requests.
Having to go through php instead of straight through Apache is causing too much of a bottleneck.
I want to use ...
1
vote
2
answers
417
views
How can I use images from my live Craft Site when developing locally
I'd like to sync the database of a live site to my local site for development, but don't want to download all the images and files. Is there an .htaccess that could look for the files locally, and on ...
0
votes
0
answers
139
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 ...
0
votes
1
answer
229
views
Asset transform messing with color
I have a client with very stringent concerns over acurate color in thier images.
They have noticed that image resized from Craft have some dramatic color discrepancies, which I have verified. It's ...
1
vote
1
answer
278
views
Avoiding initial load for image transform
I'm using the element API to get the url of an asset from angular with:
'image' => $entry->playerImage->first()->getUrl("square"),
Problem is until i visit that image in the browser the ...
3
votes
1
answer
334
views
Gitignore pattern to remove image transforms
Not sure on the gitignore pattern I need to add to ignore craft's image transforms it automatically generates. Any ideas?
1
vote
0
answers
89
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, ...
3
votes
2
answers
325
views
Image Transforms adding white to edges of image
I have my image transforms set to crop centre-centre with quality 100, but for some reason the images that are rendered have a high change of having 1 or 2 pixels of white added to at least one set of ...
1
vote
1
answer
2k
views
Image transforms not working
I have setup an asset pool for all files our customer wants to upload using {basePath} and {baseUrl} variables which are defined in the configuration file.
Uploading files works
Selecting files to ...
2
votes
1
answer
777
views
How to add dynamic watermarks to images in Craft/Twig
I'm wondering if something is possible in Twig/Craft CMS that I used to do in ExpressionEngine and CE Image.
I want to output company logo images, but as they're all different shapes and sizes, I ...
2
votes
3
answers
536
views
Image transformation of tif image does not work
I use craft transformations for resizing images. The transformation of jpg files works as exepted, but the transformation of a tif image does not work. Imagick is installed and in the backend it ...
1
vote
1
answer
2k
views
getUrl() not working
I have the following code in the “main.twig” template:
<head>
{% block head %}
<meta property="og:image" content="{% block pageImage %}{% endblock %}" />
{% endblock %}
&...
0
votes
1
answer
136
views
Why does asset creation not work for hidden images?
Im creating a gallery for Fancybox and only wish to show the first image. The rest are hidden in a container and only referenced so that Fancybox can call on these latter. I've tried two approaches: ...