Make WordPress Core

Opened 4 years ago

Closed 3 years ago

Last modified 2 years ago

#51826 closed enhancement (wontfix)

Re-Generate Media Library

Reported by: a223123131's profile a223123131 Owned by:
Milestone: Priority: normal
Severity: major Version:
Component: Media Keywords:
Focuses: Cc:

Description

When I upload a new image through FTP this does not appears in the media library and also the other file sizes are not generated.

Think there should be a new "button" to re-check the library and do this.

There are some cases where old images in folder 2018/11 for example are lost. When I try to restore them through FTP I can't get them in the library. When I upload them through WordPress they will uploaded in the current 2020/11 folder instead of the old folder where all the links are going to.

Change History (10)

This ticket was mentioned in Slack in #core-media by a223123131. View the logs.


4 years ago

#2 @SergeyBiryukov
4 years ago

  • Component changed from General to Media
  • Keywords close 2nd-opinion added

Hi there, welcome to WordPress Trac! Thanks for the ticket.

There are some cases where old images in folder 2018/11 for example are lost. When I try to restore them through FTP I can't get them in the library.

You can use the Add From Server plugin to import files uploaded via FTP into your media library.

This seems like plugin territory to me, though I'd like to know others' thoughts too. See also #18075 for a previous discussion.

When I upload them through WordPress they will uploaded in the current 2020/11 folder instead of the old folder where all the links are going to.

If you create a post with the date of 2018/11 and upload the images from that post, they should go to the 2018/11 directory. See [41964] / #10752 and #46554 for more details.

Last edited 4 years ago by SergeyBiryukov (previous) (diff)

#3 follow-up: @a223123131
4 years ago

  • Resolution set to invalid
  • Status changed from new to closed

Don't think it is plugin territory. Keeping the file directory and the media library in sync should be core of WP.

The "Add from Server" plugin shows why. I have allready tested this some days ago.

1) If I upload an image in WP this will be shown in the library and WP builds the defined other formats in the background

2) When I upload an image and add this through "add to server" there is just this image there with no other formats.

3) When I upload an image will all formats (original + 3 others) I will have shown 4 images in the library instead of just one.

Add to server isn't connected to the image size process of WP because that is WP core.

Last edited 4 years ago by a223123131 (previous) (diff)

#4 @a223123131
4 years ago

  • Resolution invalid deleted
  • Status changed from closed to reopened

#5 @peterwilsoncc
4 years ago

  • Keywords close 2nd-opinion removed
  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from reopened to closed

I share @SergeyBiryukov's opinion that this is plugin territory.

Adding a new workflow for uploading images via FTP would only provide benefit to very few users as most do not have access to FTP uploads.

Plugins do have access to the public function wp_create_image_subsizes() for creating different crop sizes defined in the theme and plugins.

The WP-CLI also provides support for ensuring the crops have been created for images in the library. There are also plugins available for doing the same thing.

For these reasons, I am going to close this ticket as wontfix.

#6 @a223123131
4 years ago

  • Resolution wontfix deleted
  • Status changed from closed to reopened

Ok, meanwhyle I hate what's going on here... shiftig everyting into plugins and focussing on things whcih are not important. The entire media library is a big shit from a handling perspective.

Shiftsing everything into plugins (which should be in core) brings the next big issue. Every plugin is overloaded with other not needed functions and loads a lot more css and js. Also every plugin update is a potentian risk of incompatibility.

If I look at Gutenberg it is the next big bad thing. Boring, not innovative and many standards missing.

Looks like WordPress is an open-source system with low innovation speed, high discussion rates here in the tickets and slack. A democratically system which doen't move forward like other systems.

It cost allways so much toime to do things ain Wordpress and cost also much time and nervers with all these discussions here. I stopp now all Gutenberg projects and transform to another system which is more robust, flexible and innovation in functions.

#7 @a223123131
4 years ago

  • Severity changed from normal to major

#8 in reply to: ↑ 3 @SergeyBiryukov
4 years ago

Replying to a223123131:

1) If I upload an image in WP this will be shown in the library and WP builds the defined other formats in the background

2) When I upload an image and add this through "add to server" there is just this image there with no other formats.

3) When I upload an image will all formats (original + 3 others) I will have shown 4 images in the library instead of just one.

You can use the Regenerate Thumbnails plugin to add the missing cropped sizes.

Shiftsing everything into plugins (which should be in core) brings the next big issue. Every plugin is overloaded with other not needed functions and loads a lot more css and js. Also every plugin update is a potentian risk of incompatibility.

I don't think this is the case for Add From Server or Regenerate Thumbnails, they both have a very specific purpose and you can remove them once they finish the job.

#9 @desrosj
3 years ago

  • Resolution set to wontfix
  • Status changed from reopened to closed

I'm going to close this one out again. I agree with the assessments already shared above by @SergeyBiryukov and @peterwilsoncc.

#10 @SergeyBiryukov
2 years ago

#56619 was marked as a duplicate.

Note: See TracTickets for help on using tickets.