Make WordPress Core

Opened 5 years ago

Last modified 5 years ago

#46835 new enhancement

unnecessary image size created

Reported by: ctrlaltdelete's profile ctrlaltdelete Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.1
Component: Media Keywords:
Focuses: Cc:


This is hard to explain. I have the medium size set to 640px wide.
If i upload an image that is exactly 640px wide. It creates an unnecessary copy of it that matches the original image in every sense.

The problem is that when i upload an image that's exactly 640px wide it makes a copy like so:

image.png (is 640x640 px)
image-640x640.png (is ALSO 640x640 px, so why create it?)

The medium (640px) size should only be created if the original image is Wider than that, not equal.

I hope i explained it well enough. Let me know if it needs clarification.

Change History (1)

#1 @subrataemfluence
5 years ago

  • Type changed from defect (bug) to enhancement

I believe this is to keep the original image intact and not rename it. Whatever sizes are defined, WordPress creates a thumbnail for each although the widths of the actual image and the thumbnail size are the same.

So, in my opinion, it is a good practice to have each sizes separate from the original image rather than skipping creating a specific size or renaming the original file.

Also, it sounds more logical to label it as an Enhancement rather than a Defect since it is not creating any roadblock in WordPress functionality.

Note: See TracTickets for help on using tickets.