Questions tagged [image]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
2answers
1k views

Getting image for product in Cart Screen

Really struggling with this (perhaps my brain is tired), but how would I get the image of a product for each entry in the cart screen in Craft Commerce?
1
vote
0answers
147 views

Image Transform not passing correct URL

So Right now I am working on https://munisense.com/sound, and since a week or so the Image Transform functionality seems to be working in another way (ever since the last mandatory update). The ...
1
vote
0answers
65 views

Control Panel, Landscape / Portrait Images [closed]

How can i achieve that portrait images in Control Panel are shown as portrait images. Now they all are stretched to fit the width of the parent container. This behaviour is only in "Big View" of ...
2
votes
1answer
419 views

Assets Images not being found

When importing local user assets to a development server with sftp (including a database import), some of the assets are missing (it gives the impression to be random). Even after updated the indexes. ...
3
votes
1answer
417 views

Using the Redactor rich text field, how can I dynamically wrap my images with a fancyBox link (with attributes as parameters)?

I'm using fancyBox (from fancyApps, http://fancyapps.com/fancybox/), and I need to wrap my images added within the Redactor rich text field with a link that had an href to the image source + some ...
2
votes
1answer
555 views

Images are broken when I upload them

I have just started using craft today and I have hit a bit of a bump with Images. I created and asset for Work and set it up to point to assets/images/work/ I was able to upload the image but when I ...
3
votes
1answer
111 views

Migrating Content from ExpressionEngine that used Matrix Image haystack Technique

So I'm taking the plunge from ExpressionEngine to Craft! I have a ton of entries I need to move over, though - and I used the "matrix image haystack" technique for my blog posts to inject the images ...
1
vote
1answer
1k views

Is it possible to create a new asset from an image URL?

I've created several entries from a feed from the eBay API, but I would like to add images to the entry too! I've managed to get an array of URLs, which I would like to import into an assets field ...
2
votes
1answer
328 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 ...
1
vote
1answer
4k views

Output image in template [duplicate]

I am new to Craft CMS. I am building my first industrial design portfolio site and am facing a brick wall.. The problem is that I have three image handlers that I set up in field. thumbnail, ...
1
vote
2answers
1k views

Is there any way to prevent Craft from doing anything with uploaded GIF assets?

I'm having an issue where Craft seems to change (significantly slowing down) the framerate of animated GIF assets on upload (this doesn't seem to be an image transform problem: if I add the file as an ...
2
votes
1answer
199 views

Upload Image Custom Field

Is there any "Upload Image" custom field in craft so that I will be able to make my images editable. Thanks for the answer.
4
votes
3answers
606 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. ...
5
votes
2answers
2k views

Image alignment and size in Redactor 2

Redactor I had a feature that allowed editing of image alignment (via the image popup) and size (by dragging the square bounding box), is it possible to enable this functionality in Redactor II? Is ...
3
votes
2answers
251 views

Using Image Transform as another custom field

I've created a section with a thumbnail image and also a dropdown to allow the user to select the transformation to apply to that image. I've pre-created all the asset transformations ready and this ...
0
votes
1answer
100 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-...
3
votes
1answer
2k views

Image upload failed- file not writable

Trying to upload images and get the following error Upload failed for "filename". The error message was "Error uploading the file: The folder "/var/www/html/imgs/logos/" is not writable"
0
votes
1answer
504 views

Upload any size image into carousel

I wanted to create a php which allow admin to upload their pictures in any resolution and image file type, but it has to display into a bootstrap carousel with fixed size. Does anyone has the similar ...
3
votes
4answers
6k views

Assets (images) return a 404 on the front-end

I have the following issue which I can't seem to wrap my head around. All images assets uploaded to Craft return a 404 not found on the front-end. Everything works fine in the admin CP though (...
6
votes
1answer
407 views

Any workarounds for image resizing in Craft 2.5 Redactor II?

Since imageResizable was deprecated for some apparent reason which I have no idea why they would do that. Does anyone know of a workaround or a plugin/config setting to enable this again?
0
votes
1answer
360 views

Image and italics issues in Rich Text editor since 2.5 update

In addition to the lack of image resizing and the odd extra spacing, the latest Redactor implementation also lacks support for aligning images left or right. I've also discovered any text that was ...
0
votes
1answer
158 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 ...
4
votes
3answers
453 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 ...
9
votes
2answers
5k views

Looping through images in a Asset field type

Sorry, this is kind of a newbie question, but I can't figure out how to loop trough all images in one image asset field supporting multiple images. The only way I have been able to output anything ...
1
vote
1answer
670 views

SQLSTATE[23000]: Column 'targetId' cannot be null

I'm getting the following error whenever I try to post a new entry to one of my channels in Craft: 2015/10/26 14:42:36 [error] [system.db.CDbCommand] CDbCommand::execute() failed: SQLSTATE[23000]: ...
2
votes
1answer
1k views

Importing images from external url and saving to entry using plugin

I'm looking for the correct way to import an image from a url and save it to an entry and in the correct subfolder (uploads/images/{id}) I've created a resource pointing to uploads/images and the ...
1
vote
1answer
321 views

URL Encode only file name

is there any built-in way to encode malicious file name characters when getting an asset URL through assetHandle.getUrl('transformationName')? My system contains files with names such as /assets/...
1
vote
2answers
368 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 ...
1
vote
1answer
58 views

Asset routing issue in combination with slug and date

Normally I add images to a post through a field for it, but now I thought I'd just use the uploader in the text/newspost field. However, this gives me the following problem. When on index.htm for the ...
0
votes
0answers
134 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 ...
3
votes
2answers
282 views

Is there a way to create a “sticky” asset

I have a list of images that are loaded directly from the content of a specific asset folder. {% for image in craft.assets.find({ folderId: 18, limit: 240, order: filename }) %} What I want to ...
3
votes
2answers
304 views

Output a default asset if one hasn't been specified

I've looked at and tried a couple of solutions on here but struggling to apply them to my circumstance. Below is my current code. I would like a 'default' asset (image) to be used if one hasn't been ...
0
votes
1answer
207 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 ...
3
votes
2answers
498 views

Find specific image from global image set?

I am using a global set to store image assets used across the site. I am not sure how to reference a specific image. I know how to get the image if its just one, using : {{ design.imgs | length ? ...
4
votes
2answers
587 views

Global Image Variables?

I have setup a global set for images i use across the site. I have one for seo - where I have images for a twitter card and Facebook image in my seo settings. There is only one image for each field ( ...
5
votes
1answer
1k views

Images lose quality when I upload to Craft

The images I upload to Craft lose their quality :( Without applying any transformation, the original file is blurred and has a smaller size. I read this on another question: Currently the images ...
1
vote
0answers
440 views

Image not showing up in Redactor text editor

When i try to add an image in a bit of text, it does not show up. I get the assets model and can choose an image, but the image itself seems broken in the text. I also see this error in the craft.log:...
3
votes
2answers
311 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
0answers
123 views

Importing Images Via CLI

I am transferring a site from CakePhp to Craft CMS. The old site has a ton of images which I need to import into the new site. I know i can drop the images in the right folder and do an "Update Asets ...
2
votes
1answer
727 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 ...
3
votes
2answers
640 views

HighRes image crop tool (not Aviary plugin)

Is there an alternative to the Aviary plugin (https://github.com/fruitstudios/AviaryImageEditor)? I only need to be able to offer the client a visual interface for cropping (in 1 aspect ratio only). ...
0
votes
2answers
562 views

Adding alt tag to image in a rich text field via its Edit button, within a matrix - breaks code link to the image [closed]

Craft 2.4. Unusual bug. Adding an alt tag to an image within a rich text field via its Edit button, that's in a matrix, works just fine the first time the entry is saved. However, re-saving the entry ...
2
votes
3answers
2k views

Load an asset at random each page load

I have a single that has 5 banner images. I would like to load a different image each time the page loads. I want to do this with twig not JS, is this possible if so could somone point me in the right ...
1
vote
2answers
131 views

Enable the user to upload multiple background Images that come from a matirx loop

I am trying to enable the user to have mutliple full width css background images, my loop works going through the matrix and grabbing the images but the trouble is they all have the same css class mid-...
0
votes
1answer
304 views

Inline image transform using Matrix field for image quality?

Hope I'm not posting incorrectly here but don't have enough reputation yet (really don't understand that system at all) to be able to comment on another post here on the exchange. Original Post - ...
1
vote
1answer
60 views

Is it possible to always show Assets folders as opened?

When adding an image from an Assets field or uploading one to the Assets section (or anywhere there is an Assets field for that matter) if you have subfolders then it currently shows the main folder ...
2
votes
1answer
296 views

Possibility to change where Image Transform folders are stored?

When using Inline Transforms in a template and also when the image transform is set in the Image Transforms section of the control panel then say my images folder is located at : /images And say I ...
2
votes
1answer
1k views

403 Forbidden Assets

I can't for the life of me figure out what's going on. When assets are added, they upload fine but when I add them to entries or try to view them in the browser, they won't display and show a 403 ...
2
votes
2answers
116 views

Tagging and Associating Photos with Entry Type

We have hundreds of photos on our theater website from past performances. In order to sustainably manage the relationship between cast members and which photos they were in, we wanted to explore ...
0
votes
1answer
73 views

logo uploaded through backend doesn't come through (on my environment)

I've got a logo uploaded through the backend, I've got the file locally & can see it on the craft login screen and the backend. Colleague can see it fine on the front end on a template, but I ...