Giter Site home page Giter Site logo

Comments (5)

jtojnar avatar jtojnar commented on July 17, 2024 1

Lightbox could be enabled with the resize option. The extension would then produce the following code:

[![example.png](https://flagrow.dev/assets/files/2017-04-03/18:17:190-example-200px.png)](https://flagrow.dev/assets/files/2017-04-03/18:17:190-example.png){.lightbox}

where {.lightbox} comes from Link attributes.

Simpler syntax could be also generated, for example

![example.png](file:2017-04-03/18:17:190-example.png)

But this would require syntax hooks or something.

from upload.

luceos avatar luceos commented on July 17, 2024

The drawback of adding the full size image to the page (albeit hidden) will be additional loading time and a tremendous hit on performance. I'm not too sure this will be something we would want. On the other hand, loading the full image only after the thumbnail has been clicked makes more sense.

I'm just a bit confused how to work with this in combination of the resize option in the extension configuration. The lightbox would be optional as well.

from upload.

mhanoglu avatar mhanoglu commented on July 17, 2024

For Complete image preview template template need to lightbox realy, requires unique number for each image.
And new tag for post title.
Thanks.

from upload.

tobyzerner avatar tobyzerner commented on July 17, 2024

I'm probably going to need to hack something together for this for a client - @luceos any direction you can give as to how you'd like to see this done?

from upload.

luceos avatar luceos commented on July 17, 2024

@tobscure I'm not too sure. Adding a new template to choose from will disable the Lightbox for previous uploads. Enabling it by default on all images will enable it for full width included images.

Perhaps this should be a global option and we add a class to the generated output by default on image related templates which do not include the image full width. In case the option is enabled we can show the lightbox. An alternative is doing some magic, screening the included image with jQuery for its width (height can be ignored I think) and whether it fits within the Post Body, if not we allow a lightbox effect.

from upload.

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.