Comments (9)
Thanks for pointing this out!
Do you have an idea how to work around this on 32 bit systems?
from kirby-imageset.
a dirty hack would be to use abs() or use a "proper" hashing method ;) Why so complicated with hexdec and base 16?
from kirby-imageset.
The hash is actually encoded in base62 (like base64, but without "/" and "="). The sole reason for this is, that hashes are much shorter while keeping a good entropy. However, it cannot stay like this, so I’ll try to find a solution as soon as possible. This will probably take a few days, as my schedule does not leave much room for this week.
from kirby-imageset.
md5 is a hash which could be used (or a substring of it) and you are already making use of it but still I wonder why you do an extra hexdec and the other stuff...
from kirby-imageset.
md5 uses only a-f0-9 as characters. My hash function uses a-zA-Z0-9. The reason is just to get shorter hashes, which do not waste bytes and look more readable on the other hand.
I’ll make a branch with a fixed hash function soon, so you can test on your 32 bit system (setting up a VM would take to long just for this sole issue). If you can confirm that it works, I’ll integrate that into master. Does this sound good for you?
from kirby-imageset.
sounds great!
from kirby-imageset.
Hey @simonschaufi, I’m going on vacation for the rest of the week and couldn’t manage to fix that bug before. But be sure that I did not forget about it. Will take care of that when I’m back at the desk.
from kirby-imageset.
Hey @simonschaufi, I finally decided to use md5 hashes instead of base62, as there does not seem to be an easy soluation that’s available on all PHP installations. Updates code is in the repo (master branch), but not part of an official release yet, though tested it on my local (64 bit) machine and it worked fine. Please try if it also work for you, then I’ll tag it as an official release.
from kirby-imageset.
Great! Unfortunatelly my good old 32 bit windows gave up a few weeks ago with a hardware damage and so I can't test right now but from my point of view it should work.
from kirby-imageset.
Related Issues (20)
- Ignore GIF HOT 2
- Uncaught ReferenceError: el is not defined HOT 2
- Using ImageSet with Asset objects HOT 2
- Thumbnails blacking out during lazyload HOT 2
- How does js and css including work? HOT 1
- FocusCrop and Imageset HOT 1
- readme js file HOT 3
- JS Error in the console HOT 4
- lozad.js HOT 1
- Whitespace at bottom of images HOT 4
- Add `display:block` on `.imageset` to readme HOT 1
- hidden images render at smallest srcset size HOT 1
- Can I set default sizes in imageset.presets? HOT 1
- Integrating imageset.js in my workflow HOT 1
- Security vulnerability in build process HOT 2
- Placeholder is removed before image has lazyloaded
- Saturation issues HOT 3
- How to add an HTML attribute to the img tag HOT 2
- Ignore some images in (image: …) kirbytag HOT 6
- Future K3 compatibility? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kirby-imageset.