I use this plugin for cropping image in my asp.net mvc 5 application. When I launch application in localhost every thing are right and I can crop image successfully. But I cant crop images on server. I don't get any error and image saved in original size. I also uploaded config folder at the root of website and my web config has default setting according to ImageProcessor.Web configuration.
I don't know what the problem is and what should I check.
Can anyone help me what's the problem?
I found that CloudFlare prevent Imageprocessor work as well as localhost.
When I disable cloudflare every thing was OK.
Related
In my Rails app my users can upload images via carrierwave and image magic. Works great.
Now I am trying to generate a PDF with the image so in my download.pdf.erb I have
<%= wicked_pdf_image_tag('https://s3.eu-central-1.amazonaws.com/bucketname/uploads/image/image/1/thumb_71fxg4BPTuL._SY450_.jpg') %>
In my browser I can access the URL and see the image but in my PDF file on production mode I only see a grey dot. On AWS the permission for the bucket and image are all public.
On my local server the PDF loads with the image.
Any ideas?
I solved and, although it's a workaround at might compromise the security of the app, here is what I did:
My app serves via HTTPS but still, removing the HTTPS from the S3 files solved the problem.
image_url.gsub('https','http')
I have project to upload image and view image on asp.net. everything work as i expected. i can upload image and saved to my folder then saved the folder to database, then from database i can show or view the image.
Unfortunately, after publishing to IIS and run the web UNDER IIS , image that i uploaded won't saved to folder and also the image that contains on my folder can't be viewed when running web under IIIS.
I tried to search in stackoverflow how to solve it and everyone said it's about permission i have tried option to set the security permission but nothing works
Folder settings:
Subfolder settings:
I suspect it could be perhaps a wrong path as your app is installed under the default web site... I often suggest to alwyAs start from the exact thing that happens to avoid guessing about issues.
Edit: the folder structure is really strange. It seems I have the default web site, created an application root under this web site but your main ScraBoy app volder is still under this folder ??? I believe I installed app one level below what you intended
I am having trouble with getting uploaded images to show on a Cloud 9 rails project. When I run rails and use the included test browser I simply get a blue question mark. Calling images via their url works.
I have checked the following for help and they were unable to assist me:
How to add a image to cloud9?
Here is the code so far:
https://jsbin.com/nuduco/edit?html,output
Here is the directory structure:
Folder directory
Cloud9 IDE loads page previews over https by default. Be sure the image is being loaded over https or else you'll get a cross-origin issue. Alternatively, you can pop the preview out into a new tab and then change the preview to http.
I'm using the imageresizer plugin from http://imageresizing.net/.
The website i'm working on (an asp.net mvc5 application) contains some static images located in the /content/images folder in the root of the website.
The second part of the images is coming from the database through an MVC-controller. The static images are being resized without any problems, but the images coming from the database aren't being resized using this very same plugin.
I've created a controller called 'ImagesController' and mapped the url like 'images/'.
So the url could be like this;
http://localhost:55062/images/47cff4e6-8932-48dc-8baf-f328e89f3f83
When I make a request to this url i'm seeing my image correctly (in it's original size ofcourse), so no problems so far. So I've decided to add a with and height, and for testing purposes I also want to allow upscaling. So i'm making a request to the following url;
http://localhost:55062/images/47cff4e6-8932-48dc-8baf-f328e89f3f83?width=100&height=100&scale=both
The original size of the image behind this url is 2000 x 1334 pixels. So resizing it down to 100 x 100 pixels doesn't seem a problem to me. However, i'm seeing the image in it's original size.
A random static image on the url below is being resized without any problem;
http://localhost:55062/images/47cff4e6-8932-48dc-8baf-f328e89f3f83
What could this possibly be? I've already tried adding an extension to the url with the guid and i've also added a handler to the web.config so that .jpg urls are being ran through the .net pipeline, but unfortunately this doesn't help either. I'm quite stuck on this issue for a few hours now, so hopefully somebody can help me out on this?
The imageresizing.net debugging info is shown here: http://notepad.cc/gaxafe38
Thanks to the suggestion from TiestonT I was able to solve the problem using the SqlReader plugin.
I have a silverlight 3 app using webservices, which uploads an image to server. Then, on server, I resize this image (using EmguCV) and I want to save this image on the server filesystem. The resulting image is created with the size (500px max in one dimension) and saved to 'C:\ ...". This is all working well when debugging in asp dev server. On iis this is not working properly. Probably, this has to do with permissions and web.config, but I can't find the answer. Any help would be great.
regards
When you run IIS, you are running as a different user that might not have permission. It depends on the version of IIS, but it's usually ASPNET. Information here on how to change it if you want.
http://www.bluevisionsoftware.com/WebSite/TipsAndTricksDetails.aspx?Name=AspNetAccount
If you are using impersonation, then it would be trying to write as the impersonated user.
If you leave it ASPNET (you probably should) -- then just give it permission to write to this directory.