Questions tagged [image]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
18 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?"
1
vote
2answers
47 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 ...
1
vote
2answers
1k 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 ...
2
votes
1answer
44 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 ...
0
votes
0answers
89 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
56 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
42 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?
2
votes
1answer
63 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 ...
0
votes
0answers
35 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
15 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
27 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
105 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,...
1
vote
2answers
469 views

Images Broken In Redactor

I have an issue that I really do not expect. When using the image function in the Redactor wysiwyg editor, images come up broken. In the editor, and in the rendered entry. All that is missing is a / ...
1
vote
1answer
34 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
57 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
57 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
53 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 ...
2
votes
1answer
361 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
95 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
263 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
183 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
226 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
37 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?
1
vote
1answer
220 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".
3
votes
0answers
137 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 ...
2
votes
1answer
181 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 ...
3
votes
1answer
145 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
1answer
57 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
313 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
91 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 ...
0
votes
1answer
45 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 ...
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}} // ...
4
votes
1answer
3k views

Image asset url is not being output

After going through the documentation I believe that this is the correct code to output the url for the asset field but its not working and I have no idea why. Please help! {% nav program in craft....
1
vote
2answers
158 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
346 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
110 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 ...
1
vote
2answers
747 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
321 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
1answer
136 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
76 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 ...
4
votes
3answers
530 views

Asset thumbs missing in control panel after Assets Source update

I've updated several Assets Sources on my production site. I've exported / imported the database from production into local - the new Assets Sources are in place but the asset thumbs are now missing. ...
1
vote
1answer
547 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
734 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/...
1
vote
1answer
302 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 ...
2
votes
1answer
46 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
2answers
275 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 ...
1
vote
1answer
102 views

Copy uploaded image in event assets.onSaveAsset

Is there a way to copy an uploaded image in the assets.onSaveAsset event? I want to make a copy of the original uploaded image (for internal purposes) and after that I want to add a copyright text on ...