Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Image insertion #5

Closed
dbu opened this issue Nov 2, 2011 · 4 comments
Closed

Image insertion #5

dbu opened this issue Nov 2, 2011 · 4 comments

Comments

@dbu
Copy link

dbu commented Nov 2, 2011

inserting images with drag and drop was developped in the cmf sandbox[1], mostly inside the Liip fork of hallo. at Liip we want to work on bringing the changes back into upstream hallo and into create. expect some pull requests.

[1] https://github.com/symfony-cmf/cmf-sandbox/

@bergie
Copy link
Owner

bergie commented Nov 2, 2011

Great!

The older Create implementation had drag-and-drop image uploading support, but that was tightly coupled with Midgard and so taken out:
https://github.com/midgardproject/midgardmvc_ui_create/blob/master/static/js/image.js

The way I see image (and file attachment) handling in Create, there should be three approaches supported:

  • Drag-and-drop image/file to an editable area
  • The "insert image" functionality of the editor (see hallo UI concept)
  • Image placeholders where clicking enables adding image (for example, listing of persons could have a placeholder for a photo)

We should allow users to upload images from their own system, but preferably also to browse and use images already in the CMS (or some other back-end service, like Flickr).

@feri
Copy link

feri commented Nov 4, 2011

After a brief head banging with bergie we thought the new image uploading support could be really smart about the context, or the place where the image was dropped. So what if 'Create' would send the dimensions of the container along with the image itself to the server. In this case the server backend would be able to produce a variant of the image that fits nicely in the container and return the URL of this image.
If the user would prefer a different size, then an image manipulation plugin could be used to resize the image. This info would be again sent to the server etc etc. Opinions?

@bergie
Copy link
Owner

bergie commented Nov 8, 2011

@dbu I just saw a demo of your image handling. Very good concept! I think that fits well in the scope of what we're trying to do with Create and Hallo. Something similar would fit well with other "insert" tasks as well, like adding links, people, whatever.

On top of that we will need direct drag-and-drop (from user's desktop file manager), and placeholders, as @feri said above

@dbu
Copy link
Author

dbu commented Jan 10, 2012

this is now part of hallo: bergie/hallo#36

@dbu dbu closed this as completed Jan 10, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants