We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [image]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
2answers
33 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 ...
2
votes
1answer
37 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 ...
2
votes
1answer
56 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 ...
1
vote
1answer
41 views

Images not showing on the site

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?
0
votes
0answers
32 views

Image Transform resolution DPI

This may be a very odd thing to do, but it's the only way to not get blurry/pixelated photos in Outlook Signature. I have built a page that displays all 120 Craft CMS users as Outlook signatures ...
0
votes
0answers
12 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. ...
0
votes
0answers
25 views

Use Imgix with Redactor?

I am using this plugin to use Imgix to transform my images: {% set image = entry.featuredImage.one() %} {% set transform = craft.app.config.general.imgix.small %} {% set imgixTransform = ...
1
vote
1answer
86 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,...
0
votes
0answers
72 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 ...
1
vote
1answer
55 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 ...
1
vote
1answer
33 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?
1
vote
1answer
54 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 ...
1
vote
1answer
55 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 ...
1
vote
1answer
50 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 ...
1
vote
1answer
88 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 = $...
1
vote
1answer
231 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....
2
votes
1answer
172 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=...
2
votes
1answer
203 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', '...
1
vote
0answers
33 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
1
vote
1answer
41 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?
2
votes
1answer
168 views

Problem pulling Tweets with media using Dukt's Twitter API plugin

{% set tweets = craft.twitter.get('statuses/user_timeline', { tweet_mode:'extended' }) %} {% for tweet in tweets %} <li> {% if tweet.extended_entities.media is defined %} {% ...
1
vote
1answer
23 views

How to create a border + border colour field on an image

My first question here... maybe one of a few! I've inherited a Craft project recently and don't have much experience with it. I want to allow admin to set a border (and border color) whenever they ...
1
vote
1answer
54 views

How to display a featured image in the list of entries

I created a field which uploads an image, and I want it to display it for each of my entries inside my for loop. What's the code I should use to do it?
1
vote
1answer
300 views

Commerce PDF error: Image not found or type unknown

In the order template, this error shows up in the generated PDFs when adding standard JPG images. We're running Commerce 1.2.x on PHP70. It could be related to this dompdf issue, but how do we fix ...
1
vote
3answers
89 views

Flip PDF embed inside templates

I have some 'Flip PDF' generated folders that I need only logged in users to be able to access. If I put them in templates I get the problem that the .jpg images 500. Is there a way of allowing .jpg ...
1
vote
1answer
208 views

Image quality get low in Craft 3 after applying image transform

As of now I am using Craft's image transform to render images according to the size. If this still appears low quality even Image Transform setting with qulity "Maximum".
1
vote
2answers
150 views

How can I get the image picker on the WYSIWYG editor?

I am running on the latest version of Craft (Craft CMS 2.6.3015). I have a blog entry, which has a Rich Text editor for the body field. However, I do not have an image or file upload field in the ...
1
vote
1answer
325 views

block.image.one() shows more than one image

I'm sure I'm doing something wrong here, but I'm at a loss as to what. I'm using Craft 3. My travel entry has 7 fields, one of those being a matrix field. My matrix has two blocks, postText and ...
0
votes
1answer
101 views

Serialization of 'Closure' is not allowed when upload image [duplicate]

I built up a form at the frontend to allow users to upload their avatars,my code looks like below <form method="post" accept-charset="UTF-8" enctype="multipart/form-data"> {{ csrfInput() }} ...
1
vote
1answer
44 views

Random transforms

We are using a masonry grid, with 3 image sizes (different heights). The images are (one of) the banner image(s) from the news entries. We played around with this, however this doesn't work as we need ...
3
votes
2answers
3k views

Craft 3 image asset getUrl() not showing

I came across an interesting issue. I'm using Craft CMS 3.0.0-RC14 and non of my image paths are showing but the title and the file name does. {% set image = nav.navLogo.one() %} {{image.title}} // ...
0
votes
1answer
44 views

Images missing, service unavailable

Folks: When users visit the site only some of the images on the page show. Checking Chrome dev tools shows that the missing images are failing with "server unavailable" errors. The image is there if ...
1
vote
1answer
292 views

Asset Field: Select a folder instead of all images

Is there a way to pick a folder from an asset field? The goal is to render a dynamic gallery from an asset folder (which is on S3) instead of selecting all images inside a folder by hand. Use case: ...
1
vote
2answers
636 views

How can I create a zip file containing all assets from an entry gallery?

I'm trying to create a download button which will allow the user to quickly download all assets in an entries image gallery. I've started by adding each image url into an array stored in a data attr ...
1
vote
1answer
124 views

Default Upload Location needs matrix field and entry info… How?

I have a towns entry with a matrix field: townAlbums. This matrix field has just one block type: photoAlbum. This one block type has two basic text fields (the important one being albumName and one ...
1
vote
1answer
68 views

How can I reference images in a rich text field?

I need to reference an image in a rich text field separately to the text. So I can't just use {{entry.body}} I need to be able to do {{entry.body.image}} or something comparable. How can I do ...
1
vote
1answer
502 views

Display a specific image from assets

I'm trying to grab a specific image to display that is located in assets. I tried using {% set image = craft.assets.filename('image_filename.jpg') %} but I get the error "An unknown image object was ...
1
vote
1answer
288 views

Can't output an image

just getting start with Craft, and I can't figure out why my images won't output. Any time I try to output even the path to the url of my image, I get an internal error: Craft\AssetFileModel and its ...
3
votes
1answer
140 views

How to find and replace an <img src> tag?

I have <img src="/path/file-to-be-replaced.png"> in a Single-Line Text Type in a Table Field Type which is inside a matrix. Now I want to replace all of them through Find and replace option. But ...
1
vote
2answers
253 views

Change/update the default user profile photo/thumbnail folder location

I'm having a hell of a time tracking where i can change/update the default user profile photo/thumbnail folder location. I keep reading and have tested that you can create a new volume for assets. My ...
2
votes
1answer
43 views

Find entries with at least 1 image

How can I find entries with at least 1 image? {% set category = craft.categories.group('storyCategories').slug(catSlug).first() %} {% set params = { section : 'stories', order : 'postDate desc', ...
1
vote
1answer
675 views

How can I insert images into a Redactor rich text field in a front-end form?

I want to allow registered users to insert (i.e. upload) images into a Redactor rich text field in a front-end form. I dowloaded the Image Manager plugin from Imperavi (https://imperavi.com/redactor/...
2
votes
1answer
332 views

Rotate image according to EXIF orientation not working from a plugin

I am using a front-end form to upload images and store them as assets on an amazon S3 bucket. My server has imagick installed an uses it and in my config I have "rotateImagesOnUploadByExifData" set ...
1
vote
1answer
61 views

Assets have old URL

I've just changed my local development environment from using .local domains to .localhost (no more DNS trouble on MacOS, yay!). So I set Crafts siteUrl to .localhost, and while Craft serves pages ...
0
votes
2answers
71 views

Image does not be shown

Good mornig I am having a problem with my bannerImage. First off i show you how i did it and what the problem is. In the first picture you can see, how i get the image. This method works fine for 3 ...
1
vote
1answer
286 views

Checking for duplicates in array

I'm trying to remove duplicate image objects from an array, but can't figure out why it won't find it: {% for image in product.productGallery %} {% set productGalleryArray = productGalleryArray|...
1
vote
1answer
782 views

Dynamic background image

I'm super new to Craft and was wondering if someone could help. I'm trying to set up a hero banner. So there will be a full-width image, on top of this will be the heading text and a CTA button. I'd ...
0
votes
1answer
54 views

Images Uploaded in CMS not showing on mobile [desktop is fine]

Just want uploaded images for entries to show for desktop AND mobile {% set assets = entry.galleryImage %} {% if assets | length %} {% for asset in assets %} {% if asset.kind == 'video' %} ...
0
votes
1answer
64 views

Image from Another Entry

Is it possible to pull an image from another entry? It seems like it would be simple. I've read a lot of posts and documentation, and feel like I'm close... {% set entries = craft.entries.slug('...
1
vote
1answer
299 views

How to display a specific image from Assets field

I have an Assets field with a set of images. What is the best way to find one image that has 'featured' checkbox checked? This is the code I put together to check which of the images is marked '...