Questions tagged [image]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
144 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
889 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
400 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
180 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
445 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
53 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
1k 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
457 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
71 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
86 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
447 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
1k 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
63 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
69 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
390 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 '...
1
vote
1answer
550 views

Craft 3: Image transformation - grayscale

Are there any image manipulation options in Craft 3? Like grayscale or so? (what imager does for Craft 2: https://imager.vaersaagod.no/?img=5&demo=basic-image-adjustments)
1
vote
1answer
213 views

Craft 3 Plugin: Saved image asset has no width / height

In my Craft 3 Plugin I am saving an image (YouTube poster) to an asset volume like this: $asset = new Asset(); $asset->title = $url; $asset->tempFilePath = $tmpPath; // temp path for image in /...
1
vote
1answer
136 views

Images from tumblr post

I successfully imported my tumblr blog with the amazing Feedme plugin over the rss feed of the blog. The plugin creates posts and feeds the "title", "date", "tag" and of course the "content" inside my ...
1
vote
1answer
129 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 ...
1
vote
1answer
134 views

Can't Upload JPEGs to live site (PEL error)

I'm unable to upload any jpg/jpeg files to the server, it just comes up with an alert saying "upload failed". After checking the PHP error logs for Craft I found this error message is being created ...
1
vote
1answer
1k views

Can't upload GIF files

I have the same error in here. Craft info says i have installed the ImageMagick extension successfully and even use ‘imageDriver’ => ‘imagick’ in config file. But still cant upload GIF files.
2
votes
1answer
269 views

Asset upload fails with progress bar at full, but images in tempuploads folder

I can’t for the life of me get images to upload. Neither on my local server or on the live server. The progress bar goes to the end, and then … nothing. From what I can see online, I’m not the only ...
2
votes
1answer
387 views

Get an image from a random entry

I have a section with an text field and an image field. the asset field may sometimes be left blank. in this case, in my template, i want to grab the image from another random entry. This is the code ...
2
votes
1answer
83 views

PNG-8 upload to S3 hangs

We're having trouble uploading PNG-8s. PNG-24s and JPGs work fine, but after selecting a PNG-8 to upload, the progress bar appears and fills to max in a couple of seconds, but then hangs indefinitely. ...
1
vote
1answer
147 views

How to darken an image using the Imager plugin

I'd like to 'darken' an image using the Imager plugin. How would I go about doing this? I'll explain the exact effect I'm after in Photoshop terms: I have an image on one layer, then I create a new ...
0
votes
1answer
122 views

Uploading local asset hangs and produces jQuery console error

So I have created an Assets field and am using it in one of my Entries. However, when I try to upload an image, it just keeps loading. I am getting the following console error: Any ideas why? Thanks!
2
votes
2answers
1k views

Asset Uploading via Assets Field Broken, please help

*Update: Installed MAMP Pro, reinstalled Craft, asset upload is working now. Not exactly a fix, but seemed like the simplest route of action due to my unfamiliarity with PHP. Thanks to those who ...
0
votes
1answer
181 views

Auto add Images to entry after ftp to server

I have a potential client (car dealership) where in their existing 12 year old site they daily upload an Excel file to add/update/delete vehicles in stock. One file for new vehicles and one for used. ...
1
vote
1answer
139 views

What other properties are in the “entry.image” object?

So this may be a stupid question, but I've sort of never wrapped my head around it. When fetching an image from an entry -- even if there's only one associated with the field -- you can't just do: {% ...
2
votes
1answer
1k views

Image transforms not working properly

I have 2 basic JSON files, the only difference between the files is the product.type('') In my general.php I have turned on 'generateTransformsBeforePageLoad' => true, The first JSON file (200 ...
2
votes
1answer
94 views

Matrix field containing asset field blocks entry editing

I am new to Craft CMS and am testing it. I encountered a problem. I have a matrix field, containing an asset field. When I add this matrix field to the page field layout, then visit single entry, ...
2
votes
2answers
377 views

Using Focuspoint with eager loading

I'm using eager loading for retrieving some images for my gallery: {% set employments = craft.entries({ section: 'employments', with: ['photo] }) %} This works fine and I can see all images on my ...
1
vote
1answer
102 views

Bulk upload images, generating a seperate page for each image

Building a photography website for a client, need a way to bulk upload images, much like using the assets field. I want these to be grouped into different sets by entry or category. So that I can ...
1
vote
1answer
2k views

Image Upload “Failed to load resource: the server responded with a status of 500 (Internal Server Error)”

I'm getting my nerves on this because I can't find what's stopping from uploading. I simply choose a file, the loading show and get itself complete, but it simply stops at the 100%. I ran into my ...
1
vote
1answer
127 views

How to retrieve the mode of an image transformation from its name?

I work on a portfolio with a large number of images with very high sizes and a lot of images transforms. The server on which this site is hosted reach these limits (images generations process are ...
0
votes
1answer
761 views

404 Error showing for Asset Images

In the backend, I could upload an image. I see it loads fine in the backend admin CP. But it goes to a 404 error on the front end. File System Path: /home/devserv1/colorcomputergames.com/assets/...
2
votes
1answer
343 views

Images containing EXIF orientation tag are not rotated on upload

The Craft CMS instance where I noticed this is running version 2.6, but I updated it last month from version 2.2. While we did not notice any problem, according to the client, they were able to ...
0
votes
0answers
487 views

Error uploading images on admin panel ( Failed to load resource: net::ERR_EMPTY_RESPONSE )

I have a problem uploading images on the CP. Small images success, but one with a 2Mb site fails with the error below. File was renamed to only ASCII chars, but problem still occures. PHP settings: ...
0
votes
0answers
87 views

Why can I view images assets if the asset link is broken?

I just uploaded my site to a live server. My image assets all show a grayed-out broken image icon. I assume this is because the image assets settings are not set to the correct new path. If so, ...
1
vote
2answers
44 views

Photo demographic targeting in Craft?

We will be creating a website for a large clinical trial. The catch is that this trial will have study sites in many different areas of the world. We want to appeal to use user depending on their ...
1
vote
1answer
134 views

Adding images directly to public folder

I have over 9000 photos that I need to add to my site however using the upload feature in assets is taking an extremely long time. I have tried to just simply add the images to the correct folder in ...
3
votes
0answers
148 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 ...
4
votes
1answer
752 views

Redactor image caption not saved and formatting lost

In Craft CMS 2.6.2945, I've added the "image" button in the Redactor config. In the editor, I've added an image and added a caption (by clicking the inserted image). When the image is saved, the ...
0
votes
1answer
110 views

Richtext Redactor Field - Standard Layout does not show image button

When i use a "Default" Richtext field - the image button displays and works. When i change Default to "Standard" (the out of the box one) the image button does not display. All instructions suggest ...
0
votes
1answer
335 views

Uploaded .gif only loops once instead of infinitely [closed]

Having a problem where uploading an infinitely looping gif only loops once. I've tested it with and without image transforms and get the same issue. I know there there was an issue previously stated ...
1
vote
2answers
579 views

I am unable to correctly return the url of an uploaded asset

I'm a newcomer to Craft from the far-off lands of WordPress. I hope my stay is long and fruitful, but at the moment that prospect is in danger. The problem I'm having must be embarrassingly simple, ...
5
votes
1answer
4k 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
661 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 / ...
0
votes
1answer
68 views

Craft\Exception on saving entries having images

I have created a new entry in which user can also add images(already uploaded or new upload) I can save entry successfully if I don't add any images to it. When I add any image and try to save the ...
1
vote
1answer
449 views

Can't view image assets in web browser (403 error) after uploaded in Craft CMS Dashboard

Can't view image assets in web browser (403 error) after uploaded in Craft CMS Dashboard. I've checked permissions according to previous thread: 403 Forbidden Assets Help please!