I want to genrate a thumbnails of image without save its differentlty
ImageResizer supports resizing images and it can output the thumbnail to a stream (for example a MemoryStream), so you don't have to save the image on disk. It has a very good support for ASP.NET and it can be installed using NuGet.
Related
Here I am using WordPress with the updated version.
I have faced an issue with image uploading. When we upload the SVG format images in the media library, it shows as an empty box view. It seems like an issue in storing the image. We are using the SVG support plugin to smooth upload for SVG images.
Note: Other formats like PNG, JPEG is working properly, when I uploaded them to the media library. Only facing issues in SVG format.
Please refer to the attached image for reference,
In my WordPress setup I use the TinyPNG plugin to compress uploaded images, which works very well when I used it with WordPress image sizes (add_image_size()). I now develop themes with Timber and use the resize function of TimberImage as it is much more convenient and does not generate every version for every image, which is never needed. The only problem is that resized image versions of the original compressed images are always bigger in file size than the original, especially for PNG files, because the resize function cannot save it with the same "compressed" algorithm. Does anyone have a solution to this problem other than moving back to add_image_size()?
I use symfony with ckeditor for my forms. I have setup the 'image upload' plugin, and it works fine, uploading images in the disk.
Later I installed the 'rotate image' plugin.
When I upload my images they are in the server:
when I first rotate, they become inline:
The problem is that the data:uri is stored now in my database, and takes much longer to update than simply storing a disk uri.
After I rotate, is it possible to keep my images as were, not convert them to data:image?
That's not a problem of CKEditor itself, but just the way that the "rotate image" plugin works.
You should report the problem to its author
Metadata is information about an image, and can be included in JPEG image files.
EXIF metadata is information about the image recorded directly from the camera – for example, the exposure time and the date the photo was taken.
WordPress preserves EXIF information in full size images loaded to your website. It will also extract the Exif data to make it available for plugin developers.
When WordPress uploads images, in addition to uploading the Full Size image it automatically creates several differently sized versions of the image. By default: a Large, Medium and Thumbnail version.
The problem is that Wordpress is stripping the EXIF data when resizing images. The resized images become "orphan".
An "orphan" work is a work to which copyright cannot be determined or a work where the determined copyright holder cannot be contacted.
In the era of responsive images, it cannot be that the solution to keep the EXIF data of an image is to use the image in full-size.
Question:
How to force Wordpress to keep EXIF data?
Digging further:
Is there a way to insert the EXIF data in resized images once they have been resized?
Is there a way to force wordpress to use another Image Processing System that is not stripping metadata from images?
How to force Wordpress to keep EXIF data?
Switch the image processing to imagick. Your server must have it installed though.
Either by using the plugin that does that,
https://wordpress.org/plugins/mhm-forceimagemagick/
or by adding the code in your theme:
add_filter( 'wp_image_editors', array( $this, 'allowedEditors' ) );
public function allowedEditors()
{
return array('WP_Image_Editor_Imagick');
}
Is there a way to insert the EXIF data in resized images once they have been resized?
You would have to create your own functional that extend the class-wp-image-editor-imagick and include them in your functions file.
https://github.com/WordPress/WordPress/blob/master/wp-includes/class-wp-image-editor-imagick.php
Is there a way to force wordpress to use another Image Processing System that is not stripping metadata from images?
Answered above.
I using plugins and trying find it in source code WordPress, but i can only change quality for thumbnails. I need 30-40% quality jpeg images instead 90% (default)
go to media upload. You can change size of image you upload.