Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 31 2019 14:43
    MikaelEliasson opened #723
  • Jan 31 2019 11:02
    JimBobSquarePants commented #664
  • Jan 31 2019 10:59
    JimBobSquarePants commented #709
  • Jan 31 2019 10:59

    JimBobSquarePants on autorotate

    (compare)

  • Jan 31 2019 10:58
    JimBobSquarePants closed #709
  • Jan 31 2019 10:58

    JimBobSquarePants on develop

    Clone autorotated image. Fix #7… Merge pull request #722 from Ji… (compare)

  • Jan 31 2019 10:58
    JimBobSquarePants closed #722
  • Jan 31 2019 10:45
    JimBobSquarePants labeled #722
  • Jan 31 2019 10:45
    JimBobSquarePants opened #722
  • Jan 31 2019 10:44

    JimBobSquarePants on autorotate

    Clone autorotated image. Fix #7… (compare)

  • Jan 31 2019 10:20
    JimBobSquarePants commented #709
  • Jan 31 2019 09:54

    JimBobSquarePants on postprocessor-png-fixes

    (compare)

  • Jan 31 2019 09:52

    JimBobSquarePants on AmazonS3Cache

    (compare)

  • Jan 31 2019 09:52

    JimBobSquarePants on develop

    Cleanup and add AmazonS3Cache t… Fix build script Merge branch 'develop' into Fea… and 3 more (compare)

  • Jan 31 2019 09:52
    JimBobSquarePants closed #700
  • Jan 30 2019 17:15
    AndyFelton commented #700
  • Jan 30 2019 16:31
  • Jan 30 2019 08:27
  • Jan 29 2019 15:06
    alexsandr-sml starred JimBobSquarePants/ImageProcessor
  • Jan 29 2019 11:28
    lars-erik commented on 1a8e712
James Jackson-South
@JimBobSquarePants
Ah fantastic, thanks for the update!
Ivan
@inbush
Hi everyone
does it work fine on net core 3.1?
James Jackson-South
@JimBobSquarePants
No. It’s not supported on NET Core. You should use ImageSharp instead
Ivan
@inbush
thanks
cant find ImageSharp in NuGet
available via console
thanks
James Jackson-South
@JimBobSquarePants
You need to use the pre release option
cstarner
@cstarner
Does this library work with Xamarin?
jason-booth
@jason-booth
Anyone have suggestions for proper cache config settings in a scaled environment? We have three web servers all using the same VirtualCachePath (ie they are all pointing to the same shared drive location). It caches and serves images fine but we are getting sporadic app pool crashes that originate in ImageProcessor.Web.Caching.ImageCacheBase.CacheTrimmer. Sometimes the error is that a path can't be found and other times that a path is access denied. All three of the servers have the trimCache=true in cache.cofnig. I am wondering if we are basically getting conflicts where two servers try to trim cache at the same time. So, one server has deleted or is in the process of deleting a directory and then server 2 tries the same directory.
Would love to hear any thoughts. Thanks!
James Jackson-South
@JimBobSquarePants
@jason-booth Turn off the trimmer. The IO is not robust enough for multiple servers. You can cache something like 12.96 million items anyway so shouldn't be a concern.
jason-booth
@jason-booth
Can do and thanks for the quick response!
jason-booth
@jason-booth
@JimBobSquarePants Would it make sense to leave trim cache on on just one site to keep the cache size down or wold that still leave us open to issues?
James Jackson-South
@JimBobSquarePants

@jason-booth I think there's still the possibility of IO access exceptions. I would remove trimming across all for now.

If you have the opportunity though it would be great if you could raise an issue in the repository and if possible we could make it more robust.

jason-booth
@jason-booth
@JimBobSquarePants will do for sure, thanks again!
James Jackson-South
@JimBobSquarePants

@jason-booth Thanks! Happy to help!

@cstarner I've never tested the library against Xamarin and the methods I use for loading native binaries (WebP format) will not work cross platform.

xMANIGHTx
@xMANIGHTx

First of all congrats for your wonderful piece of software! I'm trying to integrate it in my custom made CMS. Since I'm on .NET Web Forms I used ImageProcessor Web instead of Image Sharp. Everything is working great.
Im trying to pass configuration settings dinamycally (in application start or maybe on each begin request). Is it possible por example to change the prefix of LocalFileImageService on the fly and not just in security.config? Or to add whitelist remote urls dynamically for RemoteImageService in the same way?

One last note the EntropyCrop is great stuff for autocropping... It would be great to have it as a resize option as well... when creating thumbnails is most common to resize them and crop them for the actual thumb format, just like it's already possible with resize mode=crop. It would be great to add entropycrop as mode so that it automatically spots the main point of interest in a picture as the crop center. This would be a winner. Take care!

xMANIGHTx
@xMANIGHTx
For anyone interested, I solved searching this chat and found a user had the same requirements for his CMS. Thanks to @JimBobSquarePants for his answer to that user, I've been able to solve with this line of code in Application Start event (Web Forms here)
ImageProcessorConfiguration.Instance.ImageServices.Item(0).Prefix = "whateveryouwant"
This allowed me to change the prefix to tell Image Processor Web that file had to be manipulated, with dynamic paths I have to invalidate client cached images like "/randomcharspath/imageprocessorprefix/imagefolder/actualimage.png" so that way I was able to add "randomcharspath/imageprocessorprefis" as a prefix for Image Processor in Application Start.
For all of us poor mortals still using Web Forms your software is godsend. Thanks again (going to support you with subscription, keep up the development!!)
James Jackson-South
@JimBobSquarePants
Glad it was all helpful for you and that you figured everything out!!
kristianstruct
@kristianstruct
Hello! When processing certain tiff images, i receive following error: https://imgur.com/a/BM4vjWl. The error occurs on one production environment and not on another. For the same image. Same version of image processor is used. Do you have an idea of what could be the issue? One of the images that cannot be converted is this:
https://drive.google.com/file/d/1EHEAb_EOMyg7zzzaWnA0Q4FPhq7_YXZM/view?usp=sharing
Update: This tif cannot be converted on any server
Jon R. Humphrey
@jonrandahl
Kristian, just popping up to ask if the servers are having issue with any other images or formats? Also, are you able to edit/open that specific image manually outside of the server?
I.e. what’s so special about that one image?
kristianstruct
@kristianstruct
Hi, Digging deeper into this i do not think the issue is server related. This specific image will not convert on any servers i have access to.
I cannot idenfify the reason for that. All i can see is that when ImageProcessor calls System.Drawing.Image.Save(), i get the A generic error occurred in GDI+. exception
James Jackson-South
@JimBobSquarePants

Are you saying you cannot process that image on your local machine also or just in the server?

That error message is probably one of the worst “features” of GDI since it tells us so little. Often though it’s caused by out of memory exceptions in turn caused by a lack of contiguous memory. (Not space)

Are your apps running in 64bit mode?

kristianstruct
@kristianstruct
I cannot process the image on either local machine or server. Unfortunately i cannot edit the original message.
I think the issue is related the exif data, as it actually converts when i set ImageFactory(preserveExifData: false))
kristianstruct
@kristianstruct
So it looks like there is som exif data included that is not supported by the jpeg plugin. I can convert the same image to png with no issues
kristianstruct
@kristianstruct
And the image do get converted when i use the imageprocessor.web meta plugin, but only if the queries are in the right Order:
?meta=false&format=jpg -> This image converts
?format=jpg&meta=false -> This throws the gdi+ exception
James Jackson-South
@JimBobSquarePants
Interesting! Can you please raise an issue in the repository and I’ll have a look
kristianstruct
@kristianstruct
Sure, I have just created an issue. Thanks for digging into this
Milo Khoo
@milo.khoo_gitlab
Hey guys! Quick question, for ImageProcessor Web, can we conditionally process image? Eg. I have the quality parameter parsed in to every single image url returned, but it only process image that are larger than a specificed size
James Jackson-South
@JimBobSquarePants
No. Once a command is received it will always be processed.
mitraganesh
@mitraganesh
Hey guys! I have experience a new issue like
ImageProcessor.Common.Exceptions.ImageProcessingException: ProcessImageAsync 485 : Image processing for /torque/2019/summer/files/assets/flash/pages/page0008_s.png?uni=f713702a15951425d4c5be4d1d50d2aa has been cancelled by an event
already validate "uni" but exception write to the server log file
Ruin
@Toyz_gitlab
Is it possible to use the ImageProcessor.Webp on linux
James Jackson-South
@JimBobSquarePants
No. ImageProcessor is not supported on any platform other than Windows and does not support NET Core/ NetStandard.
Alok Sharma
@aloksharma1
hello is their a netcore version available of this library, which can be used same as this one based on url setup ?
James Jackson-South
@JimBobSquarePants
Apostol Apostolov
@asapostolov

I have a software that stores images in AzureBlobStorage.

I'm trying to figure out how to configure ImageProcessor.Web to serve the images from the AzureBlobStorage, but I cannot find information about that anywhere. Moreover, the files in Azure are protected, so ideally ImageProcessor should access them (having the credentials), cache them and serve them.

I'm not sure if what I'm asking is possible. There is AzureBlobCache plugin, but that's a different case as I understand - just for caching and CDN purposes, whiteout the ability to serve images from Azure.

Apostol Apostolov
@asapostolov
I'm using the full .NET 4.7.2 so I cannot use ImageSharp similar to this issue SixLabors/ImageSharp.Web#39
James Jackson-South
@JimBobSquarePants
The AzureBlobCache plugin also contains a configurable AzureImageService
<service prefix="media/" name="AzureImageService" type="ImageProcessor.Web.Plugins.AzureBlobCache.AzureImageService, ImageProcessor.Web.Plugins.AzureBlobCache">
      <settings>
        <setting key="StorageAccount" value="UseDevelopmentStorage=true" />
        <setting key="Container" value="media" />
        <setting key="AccessType" value="Container" />
      </settings>
    </service>
5 replies
Atilla İlhan KARTAL
@atillailhankartal
Hi @JimBobSquarePants I added .Net 5 Support your library with ImageProcessorCore project. I checked your all TestCase passed. How can I send this codes to you.
James Jackson-South
@JimBobSquarePants
ImageProcessorCore is not a thing.
For cross platform 2D Graphics you should use ImageSharp
Edi
@edgarJakob
Hi @JimBobSquarePants.
I am running Umbraco version 8.11.1 and trying to process images from a remote url in my website.
I added some whitelist urls in the Security.Config.
I have written a post at our.umbraco.com https://our.umbraco.com/forum/using-umbraco-and-getting-started//105558-image-processor-whitelist-not-working
Can you help?
James Jackson-South
@JimBobSquarePants
Your request is wrong. You’re not using the remote.axd prefix. Without that you’re directly requesting an external resource which the middleware cannot possibly capture.