Forum for discussing general topics related to Couch.
13 posts Page 1 of 2
I recently discovered Alibaba Image cloud hosting which I think is marvelous, I can simply upload images to my buckets, and then specify cropping, watermark, size etc using parameters on the image url.

examples:

Original:
Code: Select all
https://gir.oss-ap-southeast-2.aliyuncs.com/images/dining-reflections-pool.jpg

=
Image

Crop without resizing first:
Code: Select all
https://gir.oss-ap-southeast-2.aliyuncs.com/images/dining-reflections-pool.jpg?x-oss-process=image/quality,Q_45/crop,w_300,h_300,g_center

=
Image

Crop with resizing first:
Code: Select all
https://gir.oss-ap-southeast-2.aliyuncs.com/images/dining-reflections-pool.jpg?x-oss-process=image/quality,Q_45/resize,h_300/crop,w_300,h_300,g_center

=
Image

I would love to integrate a image upload function from within couch, so rather then it using the normal file uploader, it puts the image onto Alibaba and then saves the URL to that image in couch. I assume I'd have to go about this by creating a plugin?

Any ideas where to start, I have a talented coder to my assistance but he never used couch before :D
It is definitely plugin territory - and not a simple one at that.
I am sorry but I don't have any similar existing code to point you to for guidance.
KK wrote: It is definitely plugin territory - and not a simple one at that.
I am sorry but I don't have any similar existing code to point you to for guidance.


Thank you KK, if you don't have any ideas - then I think it might be a quite difficult task haha! At the moment, I just upload images to the Alibaba bucket using their open source desktop app, and then paste the URL into a couch text field. But yeah, would be much better being able to integrate it someohow.

Anyone esle has any ideas? :roll:
quickie wrote: Anyone esle has any ideas? :roll:

I believe it is not about ideas. :) I think you are trolling, because it is impossible to doubt @KK's skills.

Also reading behind the lines of @KK's quote - "..existing code to point you to for guidance." - I think he can surely create such a plugin, but wasn't encouraged to commit several days into the required effort. Perhaps, there is the next version of Couch in the pipeline or he's busy with festive preparations already. Whatever the reason, he gives you a chance to reconsider :)
trendoman wrote:
quickie wrote: Anyone esle has any ideas? :roll:

I believe it is not about ideas. :) I think you are trolling, because it is impossible to doubt @KK's skills.


Haha, i'm defiantly not trolling, I think I missunderstood the reply somewhat ! I'm sorry :D

I never had doubt in KK ;)

I'm surprised no one else have done this before though? Or similar. I've been browsing through the forum and can't really find anything.
Unfortunately, not everything people code or have it coded for them gets published in forums. So if there is nothing similar to what you need, think about workarounds or hire someone.
trendoman wrote: Unfortunately, not everything people code or have it coded for them gets published in forums. So if there is nothing similar to what you need, think about workarounds or hire someone.


Yeah I can imagine a lot of peoples couch work is getting lost, there would be great if there was a codepen-like sharing platform where people can share their code easy. Sure forum works, but not everyone seem to use it.

I have talented php/js programmer at my disposal, he just never used Couch before so I wanted to make sure we approach it in the smartest way, and not reinvent any wheels.
quickie wrote: I have talented php/js programmer at my disposal, he just never used Couch before so I wanted to make sure we approach it in the smartest way, and not reinvent any wheels.


No offence, but I have felt you said something really without much care - something like - I have a hammer at my disposal, but I never drilled any holes before, so I wanted to make sure I approach it in the smartest way and not reinvent any wheels.
trendoman wrote:
quickie wrote: I have talented php/js programmer at my disposal, he just never used Couch before so I wanted to make sure we approach it in the smartest way, and not reinvent any wheels.


No offence, but I have felt you said something really without much care - something like - I have a hammer at my disposal, but I never drilled any holes before, so I wanted to make sure I approach it in the smartest way and not reinvent any wheels.


Ehm..?

I'm merely doing so research before I get him do do the work, what's wrong with that... geez?

My logic:

A; Figure out if add-on like this already exist?
B: If not, does similar add-on already exist, if so - use as base and modify.
C: If non of above, figure out the best way to do this using Couch from scratch.

Happy holidays to you.
Happy holidays to you too.

I acknowledge, when the process is vague (at least to me), it is difficult to suggest something helpful. You know, you expect some kind of help in this topic - share as many details of the desired process as possible.

It seems to me you'd want to NOT create different files (keep in Cloud only single original uploaded file) and serve original images in the <img src> using the URL params. IS this process correct? Having assumed that, I imagine a 2 step process: (1) simple js-scripted dropzone as a field in Couch which sends images to Cloud with little or no Couch dependence & (2) have a text editable where you manually provide image parameters to be added to the generated source code. Clumsy but I'd like you to explain more about how you see it working.
13 posts Page 1 of 2