Giter Site home page Giter Site logo

Comments (9)

Mecanik avatar Mecanik commented on May 26, 2024

Hi, sorry but I do not understand. Do you want to apply image resizing to the admin area as well?

from cloudflare-image-resizing.

abhishek-sharma8 avatar abhishek-sharma8 commented on May 26, 2024

Hi, yes. That is correct. I want to apply resizing to the admin area as well. Like thumbnails in the media library page (both list view and grid view) as well as product thumbnails in the Woocommerce products list page, etc.

from cloudflare-image-resizing.

Mecanik avatar Mecanik commented on May 26, 2024

In this case, you have to edit the plugin manually here:

(just comment out that line).

from cloudflare-image-resizing.

abhishek-sharma8 avatar abhishek-sharma8 commented on May 26, 2024

Unfortunately, it does not seem to work. The images are still loading from the server and not Cloudflare

from cloudflare-image-resizing.

wpsumo avatar wpsumo commented on May 26, 2024

@Mecanik I think he mean to rewrite in wp-admin not just allow rewrite when is_admin and is_logged_in @abhishek-sharma8 correct?

from cloudflare-image-resizing.

abhishek-sharma8 avatar abhishek-sharma8 commented on May 26, 2024

Yes, that is correct @wpsumo
To save space on the server when there are thousands of images, I'd like to only keep the original images on the server and no thumbnails. The thumbnail generation should be taken care of by this awesome plugin, which works great for the frontend. But the images are still served from the server on the backend.
This is what I am asking. The thumbnails for media files that I see in the media library (150x150 for list view and 300x300 for grid view), can they be served from Cloudflare as well? I did try a few filters but none of them worked.

from cloudflare-image-resizing.

Mecanik avatar Mecanik commented on May 26, 2024

Guys, I still don't understand your use case. Please explain a bit better.

from cloudflare-image-resizing.

wpsumo avatar wpsumo commented on May 26, 2024

I think he want to rewrite everything in wp-admin not sure the reason but maybe to offload the whole media library to cloudflare images? And not storing anything locally? Not sure either but that's what I understand.

Rewrite to offload make sense in one way but disabling resizing is overkill, in wp-admin as there is no point doing it there.

from cloudflare-image-resizing.

abhishek-sharma8 avatar abhishek-sharma8 commented on May 26, 2024

@Mecanik The thumbnails you see in wp-admin are loaded from the server, not Cloudflare. For example, if you go to the media library, (example.com/wp-admin/upload.php?mode=grid or example.com/wp-admin/upload.php), the thumbnails you see are loaded from the server (150x150 size or 300x300). Same is the case when you add media media through the post and also the product gallery in the product gallery page. I've attached images for these screens, where I want to use Cloudflare images. Hopefully, this explains it better.

@wpsumo, for a smaller site, yes it is an overkill. But I have multiple sites on the same server, with up to 30k images per site. I don't want to offload the images, I only want to keep the original images on the server and use Cloudflare images for generating thumbnails on-demand, including for the wp-admin pages. This will not just save me a lot of storage space but the backups will also be quicker.
This is working fine for the front end through this plugin, but backend images, which I am assuming have different filters/hooks, are not working.

I'll try doing it myself if I can, but since I am not a developer, I am less likely to succeed.

https://i.ibb.co/yqrkJmS/media-library.jpg
https://i.ibb.co/55dSVfB/media-library-1.jpg
https://i.ibb.co/55dSVfB/media-library-1.jpg
https://i.ibb.co/55dSVfB/media-library-1.jpg
https://i.ibb.co/XkDxSbN/add-media.jpg

from cloudflare-image-resizing.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.