Page 1 of 1

How do I create a new image?

Posted: Thu Oct 10, 2013 5:02 pm
by Benny Halperin

Just like creating new javascript and css?
I want to add an image to the app, and use it later e.g.

  • adding markup dynamically as in $("...").append("Image"),
  • or in css background: url("...")

How do I create a new image?

Posted: Thu Oct 10, 2013 5:18 pm
by maxkatz

Upload the image Image component.


How do I create a new image?

Posted: Thu Oct 10, 2013 5:24 pm
by Benny Halperin

Can you please demo/explain or direct me to a tutorial/doc?
not sure I understand

Thanks


How do I create a new image?

Posted: Thu Oct 10, 2013 5:27 pm
by maxkatz

Drag and drop the Image component.. in Properties you can upload the actual image.

To access the image by URL: http://docs.appery.io/javascript-api/...


How do I create a new image?

Posted: Thu Oct 10, 2013 5:55 pm
by Benny Halperin

I can see that, but it means I will have an image on the page in design and I don't want it. All I want is an image in the folder available if I need.

I also want to be independent of Appery API, and I can do that by having the img tag src attribute set to "files/views/assets/image/myimage.png".

All I'm missing (so I think) is a mechanism to add an image resource to the app, to be available under the image folder (sibling of js folder).


How do I create a new image?

Posted: Thu Oct 10, 2013 6:31 pm
by maxkatz

Once you upload the image, you can remove the Image component from the screen. We are adding an option to open the Media Manager and upload an image directly in the next release.

Yes, you can set the URL directly as well.


How do I create a new image?

Posted: Thu Oct 10, 2013 7:03 pm
by Benny Halperin

Exactly what I did... just thought there might be a "right" way.

Anyway so glad to hear that your road map includes adding media like images (and others too? e.g. videos).

I think then the project tree should have another folder called Images (like JavaScript and CSS) so I can see the uploaded media like any other asset.

One last thing: after I deleted the image from the page, the asset remained. But then to replace the image with another (a new version of the image, say), I need to go directly to the assets and delete the image, which is not recommended, and actually I'm not sure will work at all.

And a BIG thank you for the great support, great product, and road map.


How do I create a new image?

Posted: Thu Oct 10, 2013 8:04 pm
by Kateryna Grynko

Hi Benny,

You can upload any files to Appery.io Database, not as assets: http://docs.appery.io/tutorials/uploa...


How do I create a new image?

Posted: Thu Oct 10, 2013 8:19 pm
by maxkatz

Thanks for the feature suggestion.. I think it is a good idea to add images folder.