Comments (4)
Hello,
Are you using the .js or .dzi that is generated by the package?
I plan to not make the output configurable and therefore the naming less strict for the XML .dzi file. The filename is also used as part of a javascript callback in the .js and needs to be validated.
After doing some digging this morning I can allow '_' and '$' in the javascript function name and checking all possible incorrect names is a 11,236 character long regex: http://stackoverflow.com/questions/2008279/validate-a-javascript-function-name
Thanks.
from deepzoom.
Hi Jeremy,
I think you got me wrong. You are check the file and folder names for there characters.
from deepzoom.
The file and folder names are set by the image filename if they are not explicitly sent.
Example:
// folder, file are optional and will default to filename
$response = $deepzoom->makeTiles('KISS.jpg');
Response:
{
status: "ok",
data: {
JSONP: "KISS/KISS.js",
DZI: "KISS/KISS.dzi",
_files: "KISS/KISS_files"
},
message: "Everything is okay!"
}
Therefore, I am checking the filename for characters that would invalidate the JSONP. I am working on a fix... You are correct that I don't need the same restrictions for the folder name.
Thanks again.
from deepzoom.
Filename and Folder Name are now evaluated separately: 8e45923
from deepzoom.
Related Issues (9)
- Mention ImageMagick dependency in the ReadMe HOT 1
- License ..? HOT 1
- Ready to share? HOT 5
- Version for php 7.4 and league/flysystem HOT 1
- Install HOT 2
- How to plug this plug-in - what is needed additionally? HOT 3
- no decode delegate for this image format `SVS' HOT 3
- Call to undefined method Illuminate\Events\Dispatcher::fire() HOT 1
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 deepzoom.