GithubHelp home page GithubHelp logo

Custom zoom step about artiledimageview HOT 9 OPEN

dblock avatar dblock commented on June 2, 2024
Custom zoom step

from artiledimageview.

Comments (9)

bibinjacobpulickal avatar bibinjacobpulickal commented on June 2, 2024

Please take a look into this repository that I've created. It uses this library. I've added a webp decoder extension. The images are being returned. But the issue is,
I need the image to start from lowest zoom level and zoom into 4x zoom levels. ie., 4x comes after 1x, 16x comes after 4x. So, if resolution of image at 1x is 25x25, next level would be 100x100, then 400x400 so on.. Could you please help me??

from artiledimageview.

dblock avatar dblock commented on June 2, 2024

Not sure I have a lot of time to play with this. Is the zoom not working? What's the actual problem? What do you expect and what are you seeing?

Is the performance problem because of JPEG and that's why you're adding webp support?

Unrelated, what is the code that you had to add to support webp? Maybe PR that into this project with some tests and documentation so that we can turn that into something maintainable and in exchange you can get some help on your feature :)

from artiledimageview.

bibinjacobpulickal avatar bibinjacobpulickal commented on June 2, 2024

Performance issue is not because of webp, I've tested. Problems that I face are:

  1. When I run this project I see, that the view is loaded at maximum zoom level. I want the image to be at minimum zoom level at the beginning. i tried setting zoomscale but it doesn't work.
  2. Tiled images are only available at alternate zoom levels. Usual transition is 1x,2x,4x,8x... but i require 1x,4x,16x...
  3. Also is it possible to set a tile layer image as background image for scroll view (maybe, rendering a layer with just a handful of tiles)?

from artiledimageview.

bibinjacobpulickal avatar bibinjacobpulickal commented on June 2, 2024

I added the webpdecoder framework provided by google here is the link.Also, added a small extension to UIImage for convenience. You could take a look on my repository. I use webp format for images because they are really low in size. 512x512 can stored in 4-10kb hence, the network load is less. Also, webp format has a lossless compression unlike jpg.

from artiledimageview.

dblock avatar dblock commented on June 2, 2024

There're 3 separate issues here. You should turn this issue into one of them and open separate issues for everything else.

Unfortunately nobody here has time to integrate your webp support or to spend a lot of time debugging your app, however you can help us by making pull requests even for small things, I encourage you to do so.

from artiledimageview.

bibinjacobpulickal avatar bibinjacobpulickal commented on June 2, 2024

Okay, the major issue that I face is, converting the zoom step from 2x to 4x.

from artiledimageview.

bibinjacobpulickal avatar bibinjacobpulickal commented on June 2, 2024

I've been trying to skip level 12 between 11 and 13 in your Armory2014 sample project. But, I can't get it to work. Could you help me with this?

from artiledimageview.

dblock avatar dblock commented on June 2, 2024

Unfortunately I don't have any time to do this quickly, no promises, sorry.

from artiledimageview.

bibinjacobpulickal avatar bibinjacobpulickal commented on June 2, 2024

Just in case you get some time, please have a look I made a project with this repository. The issue is performance is very poor (rendering speed, initial rendering time is very high). He has made a Custom Tile Provider maybe you could understand the logic used. I tried using the same. But, it's not working yet.

from artiledimageview.

Related Issues (10)

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.