Questions tagged [image]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
36 views

Image Editor: Remove "focal point" and "custom"

Is there a way to remove "focal point" and "custom" options from the image editor? Custom ratios are documented here: https://craftcms.com/docs/4.x/config/general.html#image-...
Marc 's user avatar
  • 75
1 vote
1 answer
83 views

Generate an Image from Title

I would like to generate image automatically on entry save, using the entry Title and a specified image as a background. I was thinking to use the Preparse Field plugin, but it seems like it's not ...
Michal Bulla's user avatar
0 votes
0 answers
37 views

Import Image on Matrixblock via GraphQL Mutation

I'm trying to create an Entry via a GraphQL mutation. The whole Entry consists of one Matrix(handle: siteimportmatrix ) with one Block(handle: importblock ) which has 4 fields one of the fields is an ...
Maximilian Enzinger's user avatar
2 votes
1 answer
71 views

Invalid broken image path

I’ve converted an old site with 15+ years of posts over to Craft from WP. There were a lot of missing images, I’ve handled this with the broken image path setting in the config/general.php. However, I’...
mitrol's user avatar
  • 252
1 vote
1 answer
29 views

showing a set of images with offset

I have an unusual layout that requires formatting images 3 different ways for each 3 images. Then I need to repeat that set - if more images exist. I have a clunky way to start it now but wondered if ...
glider's user avatar
  • 647
1 vote
1 answer
144 views

Upload Image in Craft CMS on Server

When I upload image in server I get : stream_copy_to_stream(): Argument #2 ($to) must be of type resource, bool given
user13498's user avatar
0 votes
1 answer
87 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? ...
fr-haus's user avatar
  • 58
1 vote
1 answer
51 views

Craft 2 Looping Through Assets Limit 100

In Craft 2, I am looping through Image Assets, but the loop stops after 100 images. I currently have around 140 images, but only the first 100 appear. Is this a built in limit in Craft 2? Thanks {% ...
buck1112's user avatar
  • 390
1 vote
1 answer
518 views

Why am I getting, 'Unable to write stream to' error when uploading asset?

I set up Fortrabbit object storage but when I go to upload an image in 'add asset' I get this error in a pop up; Unable to write stream to 'fileName' When I try to upload it with 'upload asset' the ...
Zack Reid's user avatar
0 votes
1 answer
54 views

How to change image used for www.domain.com

How do I change the image for www.domainname.com (www.affordablemallorca.com)? I am not a coder and need simple instructions to avoid high fees associated with servicing this domain. Thank you.
Memphis's user avatar
0 votes
0 answers
90 views

How to save the selected assets in custom module

I am trying to create a custom module where I have created an asset uploader field. Images are getting uploaded with that field but not saved. class Settings extends Model { // Public Properties ...
Eira's user avatar
  • 1
1 vote
1 answer
101 views

Eager-Loading Cart images

The cart of Craft Commerce can't really be cached so I try to increase performance by loading product images in the cart via eager-loading. All tutorials tell me to use the .with(['variantThumb']). ...
KSPR's user avatar
  • 3,776
1 vote
1 answer
50 views

Images uploading corrupt

Can anyone suggest why my images are uploading either blank (PNGs) or look like static (JPGS)? Example here - https://cookproperty.co.nz/admin/resources/assetthumbs/904/200?d=1636447193 I don't ...
Tim's user avatar
  • 29
1 vote
2 answers
496 views

Generating srcset in a similar way to WordPress

I come from a WordPress background, so I'm attempting to create responsive images the way I'm accustomed to with WordPress. Perhaps that's the wrong approach, I'm not sure. In WordPress I would ...
MrCarrot's user avatar
  • 121
1 vote
1 answer
22 views

Creating a channel (or entries) using a similar channel

I am currently trying to make a channel called "classmates" similar to a channel that is called "News". I have this working beautifully, but I am not sure how to set a different ...
craft newbie's user avatar
1 vote
1 answer
103 views

Getting all images urls and help with numbers field

I have two problems with CraftCMS :( First one - I want to make images gallery and now using something like this: {% set image = entry.car_photos[0] %} {% if image %}<div class="...
Lukas Snarskis's user avatar
1 vote
1 answer
432 views

Using NextJS image component with CraftCMS

NextJS has a really nice image component. To implement this I need to create a custom serialiser to get the image sizes from Craft . I can define a custom loader, however I'm not sure how feasible ...
Callum's user avatar
  • 193
1 vote
1 answer
161 views

Server down (timeout) when optimize bundle of image (Image Optimize Plugin)

I try to use the Image Optimize plugin to optimize the image with default Craft Transform. There are lots of images to be optimized at the same time, I keep having the issue of server down. Here is ...
Lee's user avatar
  • 139
2 votes
1 answer
272 views

Import local image with FeedMe assumes wrong folderId

I am importing Entries from Google Spreadsheets and I have a column in my spreadsheet containing the filename of an image already existing in Craft. The import itself works, but images are not found / ...
Matthias Redl-Mann's user avatar
1 vote
1 answer
41 views

'png_compression_level should be an integer from 0 to 9' upon uploading image

First time we see this: client tried to upload a specific PNG file (that a first sight looks ok) and Craft CMS returned the error 'png_compression_level should be an integer from 0 to 9'
Tim Bertens's user avatar
1 vote
1 answer
44 views

Stop image upload if moderation fails using EVENT_BEFORE_HANDLE_FILE

I have a frontend form where images can be uploaded. I am handling the image moderation within EVENT_BEFORE_HANDLE_FILE on the Asset class. I am setting session errors for any moderation issues ...
zizther's user avatar
  • 449
1 vote
2 answers
99 views

{{ entry.image.first().url }} won't show image

I am on my first Craft CMS test site. Have some problems showing a simple image. <img src="{{ entry.hero.first().url }}" title="{{ hero.title }}"> I get the title but can't ...
Fritko's user avatar
  • 11
1 vote
1 answer
60 views

Asset file permissions issue hyperlane

I am having trouble setting up image volumes correctly in Hyperlane. My best guess is that is has something to do with permissions but I have not been able to find a solution. This is how I have set ...
Stig Melón-Bratvold's user avatar
1 vote
1 answer
125 views

Is there a way to add custom aspect ratios in the image editor?

We'd like to add a custom aspect ratio to the list of aspect aspect ratios in the image editor so our client doesn't have to look it up to remember each time. Is this possible?
David Jones's user avatar
0 votes
0 answers
110 views

Craft CMS image src error

Good morning, I have inherited a Craft CMS site from a previous developer, and am running into issues when looking to add images to the site. Following instructions I grabbed the copy of the SQL ...
Thomas Martin's user avatar
1 vote
1 answer
2k views

Uploading Lottie animation files with images

For anyone who doesn't know what Lottie is, it is a video player created by the AirBnB team that lets you play vector animation exported from Adobe After Effects. It exports as json-files that you can ...
Stig Melón-Bratvold's user avatar
0 votes
0 answers
38 views

Non-destructive image cropping plug-in

I am looking for a user-friendly, non-destructive way define an image crop when editing an entry with an asset field. Should be able to visually define an image crop Should be able to change the crop ...
ilantica's user avatar
1 vote
0 answers
224 views

404 Error for assets where "Base URL" and "File system path" are different

I am new to Craft 3 and I have seen similar questions asked many but never answered. I want to store my images in a directory that is not public, yet I want them to be served correctly by Craft. The ...
Marco Camurri's user avatar
0 votes
0 answers
137 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 ...
Christoph Berger's user avatar
1 vote
1 answer
349 views

how to output all images in an entry's loop

Unfortunately I'm still very new to Craft, but I have a question to which I haven't found an answer here or in the Docs or the ones I found don't seem to work in my case. I want to output all the ...
Matthias's user avatar
0 votes
0 answers
36 views

Images won‘t display in an entry loop

Unfortunately I'm still very new to Craft, but I have a question to which I haven't found an answer here or in the Docs or the ones I found don't seem to work: Why doesn't this entry-loop output a ...
Matthias's user avatar
1 vote
1 answer
373 views

How do you output the Image Caption on an asset?

When you double-click an asset you can set the Image Caption: How do you structure the query to output this Image Caption "field?"
atc's user avatar
  • 53
1 vote
2 answers
338 views

Thumbnails broken in CP after migrating images to AWS S3

I migrated my images over to AWS S3 using the Amazon S3 plugin; however, now I'm seeing that the thumbnails in the CP are broken, and a brokenimage is displayed. The full size images display fine in ...
BBaysinger's user avatar
2 votes
2 answers
999 views

How do I add Alt Image Tags to my photos?

I am trying to figure out how to add alt image tags to my photos. I was under the impression that the "file name" served as the alt image tag in Craft CMS, but no such alt tags are populating...and ...
jason's user avatar
  • 21
4 votes
1 answer
284 views

Craft 3 Image quality is terrible after asset upload from admin panel

After I upload an asset (png), the image loses quality. I changed the defaultImageQuality from its default value of 82 to 100 but didn't make a difference. I can't add these assets via FTP as I need ...
Lara Hilal's user avatar
1 vote
1 answer
753 views

Images not showing on the site [closed]

Our website has been live for more than a year with no issues, but today it seems the images have disappeared and are showing as a '?' Any ideas why this might be?
rebecca's user avatar
  • 11
0 votes
0 answers
26 views

Craft 3 Image doesn't change after save when editing from matrix

when I edit an image in the image matrix block and save the asset, the changes doesn't affect the image thumbnail preview. The thumbnail preview changes only If I save the page. Video of the issue. ...
Michal Bulla's user avatar
1 vote
1 answer
392 views

'Unable to find component class 'FocusPoint_FocusPoint' - Craft CMS 3 Migrating from Focus Point Fields

I am migrating from Craft 2 to Craft 3 where images have Focus Point fields. I've followed Dan Hoerr's FocalPoint Migration (migration guide) And the php migrate script seems to have run successfully,...
Advk's user avatar
  • 33
0 votes
0 answers
404 views

Assets uploaded image quality is terrible

When I upload a JPG image through Assets, the image quality is terrible. I dont mean a slight difference for web optimisation, but I mean REALLY bad! See screenshot. Can't find any helpful about ...
Laurence Cope's user avatar
1 vote
1 answer
241 views

Custom Clickable Image

I've been using Craft CMS for a while, but haven't seen any way to get the following done: Looking to create a page with a large image on it. The image would be overlayed with buttons that pop-out a ...
K M's user avatar
  • 11
1 vote
1 answer
67 views

Is there a way to reset the focal point in Craft?

As the question states. Is it possible to reset the focal point in the CMS? I cannot see any obvious setting? If not could this perhaps be a feature request for a reset focal point button?
Terry Upton's user avatar
  • 1,884
1 vote
1 answer
168 views

Select Transform Feature with Asset Field

If you insert an image in a Rich Text field you get an option to apply a transform, but that is not true when using an Asset field to choose an image, which seems strange. Is there any way to ...
Roi Agneta's user avatar
  • 1,413
1 vote
1 answer
168 views

Sideloading an image from a function in a plugin

I need to be able to side load an image and attach to an entry. My image is coming from an external url... such as http://someplace.com/image.jpg - i can store this in a temporary file so its locally ...
Chris Darby's user avatar
1 vote
1 answer
259 views

How can I fix Image Exception error when uploading image via front-end form while Preparse plugin enabled?

I'm not sure if the issue is with Craft 3, the Preparse plugin, or me, so I'm posting here first. I have a front-end form that includes an Assets field used to upload images. The entry type contains ...
Andrea DeMers's user avatar
1 vote
1 answer
172 views

Update field setting value using getFieldByHandle

I need to update the limit setting for Images allowed to be empty, so as to allow for no limit. How do I go about updating the 'limit' setting? $fieldsService = Craft::$app->getFields(); $field = $...
Hector's user avatar
  • 187
1 vote
1 answer
1k views

Is there a way to allow users to control alignment of images in the Redactor plugin using Craft 3

I'm looking to let editors determine the alignment of images in a Redactor field. I wasn't sure if it worked out of the box with Craft 3 (I'm using 3.0.9). I did find this plugin: https://github....
mooreds's user avatar
  • 181
2 votes
1 answer
485 views

Focal point: more control?

I originally had this setting in twig for gallery thumbnails: {% set square150 = { mode: 'crop', width: 150, height: 150, quality: 75 position: 'center-center' } %} <img width=...
Urs's user avatar
  • 639
2 votes
1 answer
926 views

Eager loading on entry not reducing queries

Using this snippet returns me 38 queries on my homepage without the Eager Beaver plugin. {% do craft.app.elements.eagerLoadElements( className(entry), [entry], ['headerImage', 'image1', '...
Thaoms's user avatar
  • 93
1 vote
0 answers
61 views

Redactor image default filter

Is it possible to define a default filter for an image inserted in Redactor text ? Filter twig for front or config ? Thanks
Patrick Faramaz's user avatar
1 vote
1 answer
225 views

Is there any way to replace the asset programatically?

In the CP, when we upload an image with a same name, craft will ask if we wanna keep both or replace. So in plugin, is there any way to do the replace?
yu xia's user avatar
  • 397