Opened 7 years ago
Last modified 7 years ago
#46835 new enhancement
unnecessary image size created
| Reported by: | ctrlaltdelete | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Media | Version: | 5.1 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
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.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)

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
Enhancementrather than aDefectsince it is not creating any roadblock in WordPress functionality.