Questions tagged [assets]

Files managed by Craft, stored in physical folders or (with Craft Pro) on Amazon S3, Rackspace Cloud, and Google Cloud.

See Craft's Assets Documentation.

852 questions
17
votes
3 answers

What are the advantages/disadvantages of the various cloud storage solutions for assets?

When setting up a new assets source, Craft allows you to natively connect to one of these cloud storage solutions (assuming you're using the Craft Pro edition): Amazon S3 Google Cloud Storage Rackspace Cloud Files I know that the answer may be…
Lindsey D
  • 23,974
  • 5
  • 53
  • 110
14
votes
2 answers

Is it possible to move an entire asset source?

S3 is seemingly costing us a lot. While it has its benefits, I think we could do with moving images from s3 to the server we are running the site from. How difficult/impossible of a task would that be?
Seán O'Grady
  • 1,582
  • 1
  • 14
  • 25
10
votes
1 answer

How can I access the file extension of an asset?

Migrated from a Slack #help channel question Jason Mayo [09:53 16/6/15] Is there anyway to output what file type an assets file is? E.g. if its a Jpeg, SVG or Gif etc.
darylknight
  • 3,290
  • 18
  • 42
9
votes
3 answers

Can I output SVG code from an asset?

Is there any way to output the actual source code from an SVG asset in Craft? Rather than linking to it, I would like to embed the code in the page. I tried a twig include, but I cannot include files outside the templates folder. Thanks!
mjr
  • 1,405
  • 13
  • 21
9
votes
2 answers

Is it possible to replace uploaded assets?

I have a site that uses several PDF forms that update from time to time. Instead of adding a new asset, I would rather replace the existing one. I couldn't see how to do that from within the Craft admin. I suppose it's possible to do via FTP, but…
mjr
  • 1,405
  • 13
  • 21
8
votes
1 answer

GIF Animations NOT Appearing

I having a problem when trying to upload gif animations. It seems that the animation element doesn't work after they have been uploaded. I looked at the Craft changelog and it mentioned something about support for gifs through ImageMagick. The site…
Daryl Campbell
  • 285
  • 3
  • 9
7
votes
1 answer

Image transforms getting applied even when image is smaller than the transform's width

I have a detail transform setup and here's my template code: {% if block.type == 'image' %} {% for asset in block.image %} {{ asset.title }}
Mark Busnelli Jr
  • 926
  • 7
  • 18
7
votes
7 answers

Is there an easy way to download the assets directory to a local install?

I'm trying to speed up the process of synchronizing my production site down to my local install. Currently, it is: Back up database, wipe local database, import database backup. It's not perfect, but it is pretty fast. But synchronizing the assets…
Matt Stauffer
  • 599
  • 1
  • 4
  • 15
7
votes
3 answers

Dealing with missing images

How Craft reacts to missing images is one of the very few places where I find Craft less than ideal. TL:DR; Is there a way to make missing images not become a fatal error? How do you find elements that are referencing the missing image? Long…
Matt Wilcox
  • 3,199
  • 1
  • 14
  • 28
7
votes
3 answers

How do you require specific dimensions when uploading an image?

I think the transform feature is great, although in my case I need to request that certain images be uploaded at specific dimensions to an assets field. (i.e. 500 x 300 pixels). These dimensions will also need to be required on the front-end Guest…
Angela
  • 569
  • 2
  • 12
6
votes
2 answers

How to set up Craft to use Google Cloud Storage?

I've been clattering around the google developers console for a while, and i just can't get it to work with Craft! I figured it'd be simple (and it may well be!) considering in Craft it just asks for two bits of data, "Access Key ID" and "Secret…
Dan Owen
  • 496
  • 2
  • 12
6
votes
1 answer

How to get asset URL from field in template

I'm new to Craft and having a very hard time calling the URL from a field I created called imagePrimary I've read this extensively but still no luck. https://craftcms.com/docs/assets-fields {% include 'header.html' %} {% block content %} {% for…
Jeremy P. Beasley
  • 303
  • 1
  • 3
  • 6
6
votes
1 answer

Getting a "500 Internal Server Error" when uploading an image asset

Just giving Craft CMS a test drive. Setup a local site using MAMP Pro. Got the basic site up and running ok, admin as well. Then i wanted to try out image assets, so I created an Asset Source for images, local folder. Created my "images" folder…
bhu Boue vidya
  • 457
  • 3
  • 11
5
votes
3 answers

Extending Assets with oEmbed video references

Disclaimer: I'm new to Craft, making the jump from WordPress and looking for implementation advice to a specific requirement. In addition to images, I would like to be able to manage oEmbed video references (mostly Vimeo URLs, and any associated…
thv20
  • 153
  • 2
5
votes
2 answers

Temporary Uploads - disable?

When browsing the assets, there is a "Temporary Uploads" folder. What is it for? Can I disable/hide it?
obs
  • 509
  • 4
  • 11
1
2 3
9 10