Announcement

  •  » Requests
  •  » image srcset, picture element and cache ..

#1 2020-07-06 11:01:44

lavinya
Member
2020-07-06
2

image srcset, picture element and cache ..

Hi all..

firstly thank you for piwigo software. Very very good. a lot of effort was spent. thanks again.


1- Please add picture or only srcset element.

These codes work on all known modern browsers. in old web browsers; the following code can be used.

// Picture element HTML5 shiv
document.createElement( "picture" );
</script>
<script src="../static/js/picturefill.min.js" async></script>

(I installed and examined the piwigo software. partially supports the responsive image event with javascript. I tested this on all known mobile browsers and desktop web browsers. I looked at what they looked like. I checked which photo the javascript code took based on which screen. as a result I saw that they were not working exactly right. Also, for example, a mobile browser with a 640 screen should normally use 640 and below photos. but in my tests I saw that it uses much larger photos.)


<!-- `img` element -->
<img src=foo alt=bar>

<!-- `img` element, `srcset` attribute -->
<img srcset="foo-320w.jpg 320w, foo-480w.jpg 480w, foo-800w.jpg 800w" sizes="(max-width: 320px) 280px, (max-width: 480px) 440px, 800px" src="foo-800w.jpg" alt=bar>

<!-- `picture` and `source` elements, `srcset` attributes -->
<picture>
  <source media="(max-width: 799px)" srcset=foo-480w.jpg>
  <source media="(min-width: 800px)" srcset=foo-800w.jpg>
  <img src=foo-800w.jpg alt=bar>
</picture>

https://developer.mozilla.org/en-US/doc … ive_images

https://developer.mozilla.org/en-US/doc … nt/picture

https://html.spec.whatwg.org/multipage/ … re-element


2- Please add apcu or memcached support.
This is both up to date. The best cache mechanism I have tested. speeds up web sites. With this option, the pages will be much faster. It already takes a lot of time while uploading the website photo.
https://pecl.php.net/package/APCu
https://www.php.net/manual/tr/book.apcu.php
https://memcached.org/
https://www.php.net/manual/tr/book.memcached.php

3-full cdn support. I saw piwigo plugins. but old. The biggest problem with photo sites is the late loading of the pages.

4-We enter the title when uploading pictures. The photo is in the process of uploading. for example: July 6 sunset view. Can the url address of the photo be automatic, based on the title? (not the name of the photo's file) eg; 6-july-sunset.jpeg

5-in terms of unique content, in each photo page title and description to distinguish photos with the same title, same description; "photo id no" can be added. To prevent duplicate content.


It happened a lot. I'm sorry.
Regards, good day.

Offline

 

#2 2020-07-07 12:13:39

Zentalquabula
Member
2014-05-10
217

Re: image srcset, picture element and cache ..

Opcache is already automatically used, everything is compiled. ACPu is obsolete.

Furthermore, PHP 8.0 JIT will blow everything else away anyway. Piwigo team take notice, we need to be on board this train.

lavinya wrote:

2- Please add apcu or memcached support.

Offline

 

#3 2020-07-07 13:05:25

lavinya
Member
2020-07-06
2

Re: image srcset, picture element and cache ..

Zentalquabula wrote:

Opcache is already automatically used, everything is compiled. ACPu is obsolete.

Furthermore, PHP 8.0 JIT will blow everything else away anyway. Piwigo team take notice, we need to be on board this train.

lavinya wrote:

2- Please add apcu or memcached support.

Thanks for reply.

Offline

 
  •  » Requests
  •  » image srcset, picture element and cache ..

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact