First, great thanks for this extension.
Strangely I get some ugly artefacts after scaling and cropping of highly sharped images.
(For cropping/scaling result see attachment.)
I tried both im and gf for magickToUse without success.
As described above the issue only appeares for special images with high sharpness.
Any ideas how to solve this issue? Many thanks in advance...
T3 V6.1.8, k23_imagecrop V1.5.1
#3 Updated by Marc R. over 6 years ago
I also tested with 100% jpg quality in install tool. Unfortunately both, the preview and the resulting image are showing these artifacts.
In the attachment you'll find the k23-scaled/cropped version of the image as it would be show in frontend.
#4 Updated by Hendrik Reimers over 6 years ago
- Status changed from Needs Feedback to Rejected
This is strange, but i think that's a general problem inside TYPO3 or by the used PHP/Imagick/GM functions or configuration, because my ext. is using these functions and quality is set to 100 percent.
So i don't think that i could change something in the extension. If you find a solution or have an idea to do it on the extension side, we could reopen the ticket.
sorry and best
#6 Updated by Hendrik Reimers over 6 years ago
Please take a look at our messages above. You've said that these artefacts in the preview window AND in the cropped image. If i missunderstood you, i'm sorry!
As you can see also above the preview pane is scaling the full image and like you said in an html image tag like <img src="full_sized_image.jpg" width="10" height="10" /> so the browser engine is used to generate the downscaled preview. In this case the browser engine to it's best to dynamicly process the image processing. But nobodys perfect so there are these artefacts.
so... it's not a bug it's a feature ;-)
this is not a jquery or server-side problem. it's a problem on the client (browser) side. an alternative maybe could to render the preview with the <canvas> elements. but this is just an idea and not an solution i think. and i haven't much time to extend the jcrop features.
thanks at all for your interesting at my extension... feel free to post another feature or bug requests.
#7 Updated by Marc R. over 6 years ago
sorry for the confusing explanation - try my best now;-)
With Typo3 (server-)side scaling and cropping I mean the standard Typo3 functions (http://docs.typo3.org/typo3cms/TyposcriptReference/Functions/Imgresource/Index.html) which I'm using outside of k23_imagecrop, for example in some Fluid Templates.
Within k23_imagecrop artefacts are shown in preview as well as in the resulting image.
As a workaround I now removed the resize = 1 from module.tx_k23imagecrop.settings.presets and do the scaling solely with Fluid. I Think I can live with that as filesize of the cropped image doesn't really matter for me.
#11 Updated by Hendrik Reimers over 6 years ago
maybe i've found something... the default imaging functions of typo3 are using the buggy imagecropy... php functions. it's better to use imagecopyRESAMPLED() php function.
it seems that only the typoscript (GIFBUILDER) Parser uses the other php functions or imagemagick/graphicsmagick functions for better quality.
but it's very difficult to switch to the Gifbuilder like functions and could be a hard work. at the moment i don't know when to modify these functionality.