Comments (7)
I'm using symfony framework. The symfony framework has a web GUI profiler with a performance tab that shows peak memory usage and some other related info.
from image.
Thanks for your report. This is already addressed in #1269
from image.
reading a 2 MB image using GD uses only 160 MB
Reading a 2 MB image with GD used 5.70 MB in a example I just created. How did you calculate these values?
from image.
the image i have used:
https://cdn.tizbam.ir/600dpi_Page_1.jpg
from image.
Thanks. The topic will be pursued further here.
from image.
One more note: The decoding process of Intervention Image involves more than just opening the image. The following tasks are performed:
- Extraction of EXIF data for appropriate formats
- Adjust the image rotation according to the EXIF data.
In your example image, the image rotation is set to 6
in the EXIF data. This means that the image is rotated once by 270 degrees to make so it is aligned correctly. This can take a lot of memory for large image sizes, especially with GD.
The examples from your code samples are therefore not 1:1 comparable.
from image.
thanks for your notes. I think any further processing must be optional and developers should be able to ignore them with a flag or some other way.
in my case, as you may guessed already, I want to do some OMR, and most of the work is done in another environment (python + opencv + ...). In php part of my environment, I only want to resize the picture if it's larger than 3000 pixels in any dimension and convert it to webp.
The Python part has some computer vision capabilities and can recognize the rotations. so exif rotation is a redundancy for me.
from image.
Related Issues (20)
- Image size increases if the uploaded image is compressed image HOT 1
- AVIF image support has been disabled HOT 1
- Add doc block @link tags to main methods HOT 1
- Class "Intervention\Image\ImageServiceProvider" not found in intervention/image 3.3 HOT 5
- Text stroke (outlines) HOT 3
- image pattern fill question HOT 1
- imagesetthickness() in DrawLineModifier has no effect in certain environments HOT 6
- drawLine width() not working with GD driver HOT 2
- Gif Allowed memory size exhausted HOT 2
- Add possibility to read/decode Image without animation
- 256MB exhausted on "read" a 5MB image HOT 2
- compress image file which is private in AWS s3 HOT 1
- How can use stroke? HOT 1
- imagecreatefrompng(): gd-png: libpng warning: iCCP: known incorrect sRGB profile HOT 1
- Arabic Or Persian Multi Line Text is reverse HOT 2
- Unable to mock final classes HOT 1
- How to encode data URI scheme? HOT 1
- Method to check what formats are supported HOT 2
- access the core format imagemagick without getCore(); HOT 2
- Add possibility to read Imagick or GDImage instance directly with ImageManager::read() HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from image.