Lviv
Account created on 3 April 2009, over 16 years ago
#

Merge Requests

More

Recent comments

🇺🇦Ukraine Taran2L Lviv

so, it does not support HEIF for processing, only for getting the image dimensions - and the code to do that is the same as avif:

		case IMAGE_FILETYPE_AVIF:
			result = php_handle_avif(stream);
			break;
		case IMAGE_FILETYPE_HEIF:
			if (!php_stream_rewind(stream)) {
				result = php_handle_avif(stream);
			}
			break;

and the reason for that is (I believe): both standards are basically use the same container format ... technically AVIF is an AV1 encoded image in HEIF container, while HEIC is an HEVC encoded image in HEIF container. Very confusing actually :D

🇺🇦Ukraine Taran2L Lviv

The problem is that HEIF image can ... pretend not not be HEIF, and ... be an AVIF

See https://github.com/nokiatech/heif/issues/74 for details

Our test image is like example C034.heic:

0x0000001C  // 28-bytes: size of 'ftyp' box.
'ftyp'      // boxtype
'mif1'      // major_brand
0x00000000  // minor_version
'mif1'      // compatible_brands[0]
'avid'      // compatible_brands[1]
'miaf'      // compatible_brands[2]

so it has mif1 and avif, but no hei* ... but PHP detects mif1 and decide that tis is an heir image which it's not true

🇺🇦Ukraine Taran2L Lviv

I think PHP has broken AVIF detection by introducing HEIF/HEIC support here https://github.com/php/php-src/commit/dfac2da7fba930570fcda99205cfcf53db...

🇺🇦Ukraine Taran2L Lviv

This affects multilingual sites only with a domain per language setup (and not a path prefix)

This has not been fixed!

🇺🇦Ukraine Taran2L Lviv

taran2l changed the visibility of the branch 3540531-test-on-php-85 to hidden.

🇺🇦Ukraine Taran2L Lviv

So, the GD issue with rotate was indeed related to the default interpolation method change (should core now keep the BC and set it explicitly?)

The AVIF issues is mystery, as it fails on loading the image rather than processing. Is AVIF part of the docker image?

And due to new deprecations (PDO constants) most of the tests are red

🇺🇦Ukraine Taran2L Lviv

taran2l changed the visibility of the branch 3540531-fix-toolkitgdtest-for to active.

🇺🇦Ukraine Taran2L Lviv

taran2l changed the visibility of the branch 3540531-fix-toolkitgdtest-for to hidden.

🇺🇦Ukraine Taran2L Lviv

So, it seems that the default interpolation algorithm has been changed, see https://github.com/php/php-src/pull/17375/files#diff-a6d1ba8e66261eacec5...

That probably means that we need to adjust test to that

🇺🇦Ukraine Taran2L Lviv

Seems like rotation is affected either by our code or by how PHP8.5 handles it, as all rotate to 5 degrees tests are broken (file format is not relevant, it happens for all of them)

See https://git.drupalcode.org/issue/drupal-3540531/-/jobs/6225263#L2188

The other part is AVIF, I assume Docker image does not have AVIF support at all (or it's broken in PHP itself)

🇺🇦Ukraine Taran2L Lviv

So, my idea was to recreate the file itself (maybe it has encoding issues), but that didn't work ...

🇺🇦Ukraine Taran2L Lviv

taran2l made their first commit to this issue’s fork.

🇺🇦Ukraine Taran2L Lviv

hi @chizh273, there are more changes in the Drupal.nl private repo commit related to this issue, please transfer those over, see https://github.com/lembergsolutions/drupal.nl/commit/b1f22377d7718d98853...

🇺🇦Ukraine Taran2L Lviv

taran2l made their first commit to this issue’s fork.

🇺🇦Ukraine Taran2L Lviv

taran2l made their first commit to this issue’s fork.

🇺🇦Ukraine Taran2L Lviv

taran2l created an issue.

🇺🇦Ukraine Taran2L Lviv

taran2l made their first commit to this issue’s fork.

🇺🇦Ukraine Taran2L Lviv

that one looks good to me

🇺🇦Ukraine Taran2L Lviv

Per great suggestion by @danielveza, I have converted the test to Functional

Hope this can go in finally

🇺🇦Ukraine Taran2L Lviv

@cmlara thanks for acting on this so fast!

🇺🇦Ukraine Taran2L Lviv

As I mentioned I've went ahead and changed scope a bit.

  • I've simplified version constraints
  • Enabled testing with previous major version (so 10.x is being tested)
  • Add support for PHPStan 2.0 (which generates a lot of issues, probably a separate issue needed to resolve or ignore those)
  • 11.2 support should can be handled separately, maybe here 📌 Copy core 11.1.x ExtensionMimeTypeGuesser to s3fs Active

PS I would suggest dropping support of D8 and D9 altogether, as well as PHP7 .. it's not being tested anyway, so is it still working ?

🇺🇦Ukraine Taran2L Lviv

Limiting the scope to 10.5 per @cmlara suggestion

🇺🇦Ukraine Taran2L Lviv

taran2l made their first commit to this issue’s fork.

🇺🇦Ukraine Taran2L Lviv

Implemented @luke.leber suggestion, please review. This should be ready to go in now

🇺🇦Ukraine Taran2L Lviv

@catch, in #80 @tim.plunkett has self-assigned this issue and no progress for over a year ... is anyone has a better idea on how to overcome this issue without dependency on the route system?

🇺🇦Ukraine Taran2L Lviv

Per @smustgrave suggestion I've made messages translatable, but this causes unexpected fatal errors in a few tests (I assume sometimes string_translation service is not ready yet/not available, but redirect already happens)

So, I've reverted those changes, so messages are as they are (i.e. not translatable)

However, I've one concern: UrlHelper is a simple class that does not depend on the container at all, and we are adding hook invocation to it.

🇺🇦Ukraine Taran2L Lviv

A few tests are still failing, will take a look later

🇺🇦Ukraine Taran2L Lviv

taran2l made their first commit to this issue’s fork.

🇺🇦Ukraine Taran2L Lviv

taran2l made their first commit to this issue’s fork.

🇺🇦Ukraine Taran2L Lviv

Went ahead and fixed this .... still supporting 9.5, it's up to you if you want to go like that

🇺🇦Ukraine Taran2L Lviv

taran2l made their first commit to this issue’s fork.

🇺🇦Ukraine Taran2L Lviv

thanks for the fast turnaround!

🇺🇦Ukraine Taran2L Lviv

taran2l changed the visibility of the branch 3482121-error-uploading-svg to hidden.

🇺🇦Ukraine Taran2L Lviv

hi @jwilson3

this pipeline shows that it works now with D11 -> https://git.drupalcode.org/issue/svg_image_field-3482121/-/pipelines/403938

I'm removing gitlab CI staff from this one, as there is another one for that already 📌 Make CI green again Active

🇺🇦Ukraine Taran2L Lviv

taran2l made their first commit to this issue’s fork.

🇺🇦Ukraine Taran2L Lviv

taran2l made their first commit to this issue’s fork.

🇺🇦Ukraine Taran2L Lviv

hi @dblanken @seanb

I've added FieldableEntityInterface back, the original change is doing a good refactoring, but it out of scope for this issue imo and makes it harder to understand and review (plus it's harder to combine patches)

🇺🇦Ukraine Taran2L Lviv

the conversion to OOP hooks broke this MR, corresponding code should be moved to the class files, I can take a look later this week

🇺🇦Ukraine Taran2L Lviv

taran2l created an issue.

🇺🇦Ukraine Taran2L Lviv

I've removed all refactoring to make everything a little bit easier to review and added a BC layer for the service constructor arguments change

🇺🇦Ukraine Taran2L Lviv

taran2l changed the visibility of the branch 8.x-1.x to hidden.

🇺🇦Ukraine Taran2L Lviv

With a post update hook it works as expected. Please review

🇺🇦Ukraine Taran2L Lviv

No, sorry, it does not work like that

🇺🇦Ukraine Taran2L Lviv

taran2l made their first commit to this issue’s fork.

Production build 0.71.5 2024