Skip to content

Focal Point not being respected #12234

Closed

Description

@Danil0v3s

Describe the Bug

Upon moving focal point and saving the media, resulting image sizes are not updated. The source image is also being compressed even though there's no compression setting set for the main upload, only the for the sizes.

Link to the code that reproduces this issue

https://github.com/Danil0v3s/focal-point-issue

Reproduction Steps

  1. Be on version 3.35.1, using custom URL and S3
  2. Use this upload schema
	disableLocalStorage: true,
	mimeTypes: ['image/*'],
	adminThumbnail: 'thumbnail',
	imageSizes: [
		{
			name: 'thumbnail',
			height: 1080,
			formatOptions: {
				format: 'webp',
				options: {
					quality: 90
				}
			},
		},
		{
			name: 'mobile',
			width: 1440,
			height: 1920,
			formatOptions: {
				format: 'webp',
				options: {
					quality: 90
				}
			},
		},
	]
	},
  1. Upload any image
  2. Check imageSizes and main image size in KBs
  3. Edit image and move focal point
  4. Save and check imageSizes
  5. Check imageSizes and main image size KBs

Actual Results:

  1. Main image size is reduced
  2. imageSizes custom crop is not updated

Which area(s) are affected? (Select all that apply)

area: core

Environment Info

Binaries:
  Node: 23.6.0
  npm: 10.9.2
  Yarn: 4.6.0
  pnpm: N/A
Relevant Packages:
  payload: 3.35.1
  next: 15.3.0
  @payloadcms/db-mongodb: 3.35.1
  @payloadcms/email-nodemailer: 3.35.1
  @payloadcms/graphql: 3.35.1
  @payloadcms/next/utilities: 3.35.1
  @payloadcms/payload-cloud: 3.35.1
  @payloadcms/plugin-cloud-storage: 3.35.1
  @payloadcms/richtext-lexical: 3.35.1
  @payloadcms/storage-s3: 3.35.1
  @payloadcms/translations: 3.35.1
  @payloadcms/ui/shared: 3.35.1
  react: 19.1.0
  react-dom: 19.1.0
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 24.4.0: Fri Apr 11 18:32:05 PDT 2025; root:xnu-11417.101.15~117/RELEASE_ARM64_T8132
  Available memory (MB): 16384
  Available CPU cores: 10

Activity

  1. added
    status: needs-triage
    validate-reproduction
    on Apr 27, 2025
  2. added and removed
    validate-reproduction
    on Apr 27, 2025
  3. Danil0v3s commented on Apr 27, 2025

    @Danil0v3s
    ContributorAuthor

    The issue seem to be connected with the generateFileURL on the S3 adapter. After removing it I can successfully update the image sizes

    https://streamable.com/1cgxno

  4. self-assigned this
    on Apr 28, 2025
  5. removed
    status: needs-triage
    on Apr 28, 2025
  6. JessRynkar commented on Jan 20, 2026

    @JessRynkar
    Member

    Hi! Apologies for the long delay in getting a response here, are you still experiencing this on the latest version v3.72.0?

  7. that0n3guy commented on Jan 23, 2026

    @that0n3guy

    @JessRynkar I'm seeing the same issue on 3.72 and 3.73.

    The server just does this over and over...

     GET /api/media/file/Screenshot%202026-01-23%20160523.png 200 in 206ms
     GET /api/media/file/Screenshot%202026-01-23%20160523.png 200 in 221ms
     GET /api/media/file/Screenshot%202026-01-23%20160523.png 200 in 208ms
     GET /api/media/file/Screenshot%202026-01-23%20160523.png 200 in 208ms
     GET /api/media/file/Screenshot%202026-01-23%20160523.png 200 in 226ms
    

    All I did was change focal point and hit save.

    no errors in console.

    Tested with b2 and r2.

  8. slavanossar commented on Jan 28, 2026

    @slavanossar
    Contributor

    I'm also experiencing issues with focal point adjustment, both when uploading for the first time or adjusting after. The page just hangs and the app memory grows until it triggers a max memory restart or the request times out.

    Using the latest versions of payload and the S3 plugin

  9. JessRynkar commented on Jan 29, 2026

    @JessRynkar
    Member

    This will be fixed once we merge and release the PR here.

  10. github-actions commented on Jan 30, 2026

    @github-actions
    Contributor

    🚀 This is included in version v3.74.0

  11. github-actions commented on Feb 7, 2026

    @github-actions
    Contributor

    This issue has been automatically locked.
    Please open a new issue if this issue persists with any additional detail.

  12. locked as resolved and limited conversation to collaborators on Feb 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions