Cropping tool for Images - Page 2 - Forum

Forum Navigation
You need to log in to create posts and topics.

Cropping tool for Images

PreviousPage 2 of 2

@luishp

Answers both issues I raised in earlier post ... thanks ... this opens up easy development of games (and other recreational apps).

Hello

I like to know if it possible to save a png or a jpg file to the server. Not as base64 file.

And then to load to the fabric plugin.

At last I need to save as png or jpg from the fabric plugin not as base64.

I need to see the photo files to a folder at the server.

 

Is that possible?

@sakismor you should send the data as Base64 to the server and transform it there to an image file using a server side script.

Please take a look here for a sample PHP script:
https://stackoverflow.com/questions/15153776/convert-base64-string-to-an-image-file

I will probably add this functionality to neoPhp plugin.

Regards,

sakismor has reacted to this post.
sakismor

Thank you for your quick answer.

Is it possible someone to help me?

I really don't know how to do it.

@sakismor, please take a look here:
https://visualneo.com/forum/topic/neophp-plugin-3-4

I hope it helps.

I am really thank you for your update.

It works fine. And I am really sorry if sometimes I press you but I am trying to make a web app and everytime I found walls.

Best regards

@sakismor facing real projects and VisualNEO Web limits is the best way to improve it.
Thank you!

I try to put the crop image to a dialog container but It is not working.

Is it possible to check my sample?

Uploaded files:
  • You need to login to have access to uploads.

@sakismor for any reason the Wait command does not work inside a Dialog properly.
Please use SetTimeOut instead. Take a look at the attached fixed app.
Remember to take a look at the Console (F12) to have an idea about where the problem is.

Regards.

Uploaded files:
  • You need to login to have access to uploads.

Thank you.

I didn't know that I can see the error with the F12. Great tip!!!

One question.

Is it possible to crop an image and send it to FabricJS plugin?

I try some posibilities but I can't find a solution.

Thank you.

 

@sakismor this should do the job:

  1. Export image from neoCrop as Base64 using neoCropToBase64Jpg or neoCropToBase64Png.
  2. Load the image into FabricJS using fabLoadImage. Just use the variable where you have stored the Base64 encoded image instead of the URL.

Let me know if it works.

Regards.

Good morning

It is working very good with jpg . But when I am trying to work with png is not making.

I don't know if it is an error from the export.

And I have a question about an image that is png transparent. If I load it into the crop container and export it as png will be transparent?

Best regards

@sakismor please share a sample app showing the problem.
Thank you!

Please check the example. I need to be the cropped image png transaparent.

Uploaded files:
  • You need to login to have access to uploads.

Hi @sakismor you are right there was an error when saving to Base64 png.
Please download and install the attached plugin to fix it.

If I load it into the crop container and export it as png will be transparent?

Yes, transparent images will keep the transparency. In your sample app remember to change the "accept" File Input property to ".jpg,.png" so the user can select .png files too.

Regards.

Uploaded files:
  • You need to login to have access to uploads.
PreviousPage 2 of 2