Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 03 2018 19:29
    mklucz commented #8
  • Aug 30 2018 19:46
    srussking commented #8
  • Aug 17 2018 14:45
    ambs commented #12
  • Aug 17 2018 14:36
    VoidVolker commented #12
  • Aug 17 2018 14:10
    ambs commented #12
  • Aug 17 2018 14:05
    VoidVolker commented #12
  • Aug 17 2018 13:43
    ambs commented #12
  • Aug 17 2018 13:39
    VoidVolker commented #12
  • Aug 17 2018 13:35
    VoidVolker commented #12
  • Aug 17 2018 13:29
    ambs edited #12
  • Aug 17 2018 13:29
    ambs commented #12
  • Aug 17 2018 13:26
    VoidVolker commented #12
  • Jul 30 2018 21:20
    ambs edited #12
  • Jul 30 2018 15:20
    ambs opened #12
  • Mar 28 2018 17:44
    patricksurry opened #11
  • Mar 15 2018 09:37
    jcupitt commented #2
  • Mar 15 2018 09:37
    jcupitt commented #2
  • Mar 07 2018 14:29

    VoidVolker on master

    Fixes a typo in readme Merge pull request #10 from mfk… (compare)

  • Mar 07 2018 14:29
    VoidVolker closed #10
  • Mar 07 2018 14:29
    VoidVolker commented #10
VoidVolker
@VoidVolker
@iangilman i'm fixed DZI bugs )
also, I added OSD example code
Ian Gilman
@iangilman
Looking good...however in my test just now, both level 0 and level 1 were 1x1 pixel.
At any rate, the resulting image looks good on the screen
VoidVolker
@VoidVolker
at level 0 image must be 0x0?
Ian Gilman
@iangilman
No, at level 0 it should be 1x1 and level 1 should be 2x2 or 2x1 or 1x2
I compared it to the same image done with a different script, and all the numbers are close but not quite
VoidVolker
@VoidVolker
0-1, 1-2, 2-4, 3-8, 4-16, 5-32, 6-64, 7-128, 8-256?
Ian Gilman
@iangilman
More or less. Not those exact numbers every time of course.
With the image I'm using, I get 185x206 on level 8 with MagickSlicer and 186x208 with the other tool (unfortunately I don't recall what tool I originally used)
With the other tool level 0 is 1x1, level 1 is 2x2, level 2 is 3x4
Not sure if it makes a difference. Like I said, it looks fine on the screen.
VoidVolker
@VoidVolker
mmm
+- few pixels
Ian Gilman
@iangilman
Yup
VoidVolker
@VoidVolker
try perfect size image
power of 2
1x1 on level can be 1.2323x1.467576 in real )
Ian Gilman
@iangilman
That's probably it. I think you want to always ceil (rather than floor or round)
VoidVolker
@VoidVolker
I have 64 bit there percent calculator for size calculation, but it not using now
now there just simple int calculations from image size -> down
bash have only int numbers
to get float new few additional operations
Ian Gilman
@iangilman
Interesting
Just did an image that is 1024 square, and level 0 and level 1 are both 1x1
Still, accumulated rounding errors could account for that
VoidVolker
@VoidVolker
64bits calculator operate 1*10^18 numbers )
it give ~70-75 zoom levels
Ian Gilman
@iangilman
Regarding the rounding, do you recalculate from the top value or do you use the most recent value each time? i.e. is it 1024/2 and then 1024/4, or is it 1024/2 and then 512/2?
VoidVolker
@VoidVolker
need to look in )
one moment
yes, last one
Ian Gilman
@iangilman
You'll accumulate more rounding errors that way; the other way will have some rounding errors but not as much
Btw, can I try a pull request to add the execution flag?
VoidVolker
@VoidVolker
yes of couse )
what flag?
what it do?
Ian Gilman
@iangilman
On Mac, you can't just run any script, even if it ends in .sh
VoidVolker
@VoidVolker
hmmm
I think I need return to percents variant
Ian Gilman
@iangilman
so I have to chmod +x magick-slicer.sh every time I get the latest from you
VoidVolker
@VoidVolker
ah
ok
lets try
Ian Gilman
@iangilman
VoidVolker/MagickSlicer#3
Thanks :)
VoidVolker
@VoidVolker
test it
is it works?
Ian Gilman
@iangilman
Perfect :)
VoidVolker
@VoidVolker
nice )