Resource icon

AddOn Image Optimizer [Paid] 1.2.0

No permission to buy ($29.00)

truonglv

Staff member
Tech Support
#41
I do not quite understand how the plugin works. I installed 50 images at a time. The last time the plugin only handle 11, has stopped and shows next run in 10 minutes. Also I do not understand, I wrote in the PM, why in the first column image_proxy? This is due to proxying the images?

It seems to me that 50GB of my attachments plugin will convert a very long time.

View attachment 2134 View attachment 2135
Did you see the option: "Time between optimizing"? And the option "Items per processing". If you have a huge attachments so it is take somedays to complete it but don't worry. It is running under background.
 

truonglv

Staff member
Tech Support
#47
How do I go about creating the required binaries? Previously had GFN Optimizer working with jpeg optim but not sure what needs to be done here. Feel free to PM me.
Upload that file to addon directory. In this case it's should be: library/Nobita/ImageOptimizer/
Then run this command:
Code:
chmod +x io_setup.sh
And this command.
Code:
./io_setup.sh
 
#48
I'm getting the following errors:

Code:
+=========================+
+  Image Optimizer Setup  +
+=========================+


Checking requirements...
    - git: installed in /usr/bin/git
    - autoconf: installed in /usr/bin/autoconf
    - automake: installed in /usr/bin/automake
Done Check.


Cloning into '/home/arborist/public_html/forum/library/Nobita/ImageOptimizer/temp/pngquant'...
remote: Counting objects: 4389, done.
remote: Compressing objects: 100% (28/28), done.
remote: Total 4389 (delta 15), reused 27 (delta 11), pack-reused 4350
Receiving objects: 100% (4389/4389), 1.69 MiB | 12.71 MiB/s, done.
Resolving deltas: 100% (2899/2899), done.

  Compiler: gcc
     Debug: no
       SSE: yes
    OpenMP: no
Submodule 'lib' (https://github.com/ImageOptim/libimagequant.git) registered for path 'lib'
Cloning into '/home/arborist/public_html/forum/library/Nobita/ImageOptimizer/temp/pngquant/lib'...
Submodule path 'lib': checked out '0c269adeb019004b3e7e3c4962bbc8901e64edd8'
imagequant: build static
    libpng: shared (1.5.13)
      zlib: shared (1.2.7)
     lcms2: no

gcc -fno-math-errno -funroll-loops -fomit-frame-pointer -Wall -std=c99 -I. -O3 -DNDEBUG -DUSE_SSE=1 -msse -mfpmath=sse -W                                     no-unknown-pragmas -I./lib -I/usr/include/libpng15     -fexcess-precision=fast   -c -o pngquant.o pngquant.c
gcc -fno-math-errno -funroll-loops -fomit-frame-pointer -Wall -std=c99 -I. -O3 -DNDEBUG -DUSE_SSE=1 -msse -mfpmath=sse -W                                     no-unknown-pragmas -I./lib -I/usr/include/libpng15     -fexcess-precision=fast   -c -o pngquant_opts.o pngquant_opts.c
gcc -fno-math-errno -funroll-loops -fomit-frame-pointer -Wall -std=c99 -I. -O3 -DNDEBUG -DUSE_SSE=1 -msse -mfpmath=sse -W                                     no-unknown-pragmas -I./lib -I/usr/include/libpng15     -fexcess-precision=fast   -c -o rwpng.o rwpng.c
( cd './lib'; ./configure '--quiet' '--prefix=/home/arborist/public_html/forum/library/Nobita/ImageOptimizer/temp'  )
make -C './lib' static
make[1]: Entering directory `/home/arborist/public_html/forum/library/Nobita/ImageOptimizer/temp/pngquant/lib'
gcc -fno-math-errno -funroll-loops -fomit-frame-pointer -Wall -std=c99 -I. -O3 -DNDEBUG -DUSE_SSE=1 -msse -mfpmath=sse -W                                     no-unknown-pragmas -fexcess-precision=fast   -c -o pam.o pam.c
gcc -fno-math-errno -funroll-loops -fomit-frame-pointer -Wall -std=c99 -I. -O3 -DNDEBUG -DUSE_SSE=1 -msse -mfpmath=sse -W                                     no-unknown-pragmas -fexcess-precision=fast   -c -o mediancut.o mediancut.c
gcc -fno-math-errno -funroll-loops -fomit-frame-pointer -Wall -std=c99 -I. -O3 -DNDEBUG -DUSE_SSE=1 -msse -mfpmath=sse -W                                     no-unknown-pragmas -fexcess-precision=fast   -c -o blur.o blur.c
gcc -fno-math-errno -funroll-loops -fomit-frame-pointer -Wall -std=c99 -I. -O3 -DNDEBUG -DUSE_SSE=1 -msse -mfpmath=sse -W                                     no-unknown-pragmas -fexcess-precision=fast   -c -o mempool.o mempool.c
gcc -fno-math-errno -funroll-loops -fomit-frame-pointer -Wall -std=c99 -I. -O3 -DNDEBUG -DUSE_SSE=1 -msse -mfpmath=sse -W                                     no-unknown-pragmas -fexcess-precision=fast   -c -o kmeans.o kmeans.c
gcc -fno-math-errno -funroll-loops -fomit-frame-pointer -Wall -std=c99 -I. -O3 -DNDEBUG -DUSE_SSE=1 -msse -mfpmath=sse -W                                     no-unknown-pragmas -fexcess-precision=fast   -c -o nearest.o nearest.c
gcc -fno-math-errno -funroll-loops -fomit-frame-pointer -Wall -std=c99 -I. -O3 -DNDEBUG -DUSE_SSE=1 -msse -mfpmath=sse -W                                     no-unknown-pragmas -fexcess-precision=fast   -c -o libimagequant.o libimagequant.c
ar rv libimagequant.a pam.o mediancut.o blur.o mempool.o kmeans.o nearest.o libimagequant.o
ar: creating libimagequant.a
a - pam.o
a - mediancut.o
a - blur.o
a - mempool.o
a - kmeans.o
a - nearest.o
a - libimagequant.o
make[1]: Leaving directory `/home/arborist/public_html/forum/library/Nobita/ImageOptimizer/temp/pngquant/lib'
gcc pngquant.o pngquant_opts.o rwpng.o -fno-math-errno -funroll-loops -fomit-frame-pointer -Wall -std=c99 -I. -O3 -DNDEBU                                     G -DUSE_SSE=1 -msse -mfpmath=sse -Wno-unknown-pragmas -I./lib -I/usr/include/libpng15     -fexcess-precision=fast ./lib/l                                     ibimagequant.a -lpng15   -lz   -lm -o pngquant
mkdir -p '/home/arborist/public_html/forum/library/Nobita/ImageOptimizer/temp/bin'
mkdir -p '/home/arborist/public_html/forum/library/Nobita/ImageOptimizer/temp/share/man/man1'
install -m 0755 -p 'pngquant' '/home/arborist/public_html/forum/library/Nobita/ImageOptimizer/temp/bin/pngquant'
install -m 0644 -p 'pngquant.1' '/home/arborist/public_html/forum/library/Nobita/ImageOptimizer/temp/share/man/man1/'


Copy File: cp /home/arborist/public_html/forum/library/Nobita/ImageOptimizer/temp/bin/pngquant /home/arborist/public_html                                     /forum/library/Nobita/ImageOptimizer/pngquant
Cloning into '/home/arborist/public_html/forum/library/Nobita/ImageOptimizer/temp/jpegoptim'...
remote: Counting objects: 562, done.
remote: Compressing objects: 100% (11/11), done.
remote: Total 562 (delta 4), reused 10 (delta 3), pack-reused 548
Receiving objects: 100% (562/562), 338.51 KiB | 4.23 MiB/s, done.
Resolving deltas: 100% (349/349), done.
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for a BSD-compatible install... /bin/install -c
checking whether make sets $(MAKE)... yes
checking for jpeg_read_header in -ljpeg... yes
checking for floor in -lm... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for unistd.h... (cached) yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking for string.h... (cached) yes
checking libgen.h usability... yes
checking libgen.h presence... yes
checking for libgen.h... yes
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... yes
checking size of long... 8
checking size of int... 4
checking for getopt_long... yes
checking for mkstemps... yes
checking for labs... yes
checking for broken jmorecfg.h (METHODDEF)... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
gcc  -g -O2  -DHAVE_CONFIG_H   -c -o jpegoptim.o jpegoptim.c
jpegoptim.c: In function ‘main’:
jpegoptim.c:831:15: error: expected ‘)’ before ‘tmpfd’
      if ((int tmpfd = mkstemps(tmpfilename,4)) < 0)
               ^
jpegoptim.c:831:48: error: expected expression before ‘<’ token
      if ((int tmpfd = mkstemps(tmpfilename,4)) < 0)
                                                ^
jpegoptim.c:833:26: error: ‘tmpfd’ undeclared (first use in this function)
      if ((outfile=fdopen(tmpfd,"wb"))==NULL)
                          ^
jpegoptim.c:833:26: note: each undeclared identifier is reported only once for each function it appears in
make: *** [jpegoptim.o] Error 1
for i in jpegoptim ; do [ -x $i ] && strip $i ; done
make: *** [strip] Error 1
gcc  -g -O2  -DHAVE_CONFIG_H   -c -o jpegoptim.o jpegoptim.c
jpegoptim.c: In function ‘main’:
jpegoptim.c:831:15: error: expected ‘)’ before ‘tmpfd’
      if ((int tmpfd = mkstemps(tmpfilename,4)) < 0)
               ^
jpegoptim.c:831:48: error: expected expression before ‘<’ token
      if ((int tmpfd = mkstemps(tmpfilename,4)) < 0)
                                                ^
jpegoptim.c:833:26: error: ‘tmpfd’ undeclared (first use in this function)
      if ((outfile=fdopen(tmpfd,"wb"))==NULL)
                          ^
jpegoptim.c:833:26: note: each undeclared identifier is reported only once for each function it appears in
make: *** [jpegoptim.o] Error 1


Copy File: cp /home/arborist/public_html/forum/library/Nobita/ImageOptimizer/temp/bin/jpegoptim /home/arborist/public_htm                                     l/forum/library/Nobita/ImageOptimizer/jpegoptim
cp: cannot stat ‘/home/arborist/public_html/forum/library/Nobita/ImageOptimizer/temp/bin/jpegoptim’: No such file or dire                                     ctory
** Failed to install jpegoptim **
 
#50
Hi. I'm getting the following error:
Code:
Copy File: cp /home/changed_domain/public_html/forums/library/Nobita/ImageOptimizer/temp/bin/pngquant /home/changed_domain/public_html/forums/library/Nobita/ImageOptimizer/pngquant
cp: cannot stat '/home/changed_domain/public_html/forums/library/Nobita/ImageOptimizer/temp/bin/pngquant': No such file or directory
** Failed to install pngquant **
 

truonglv

Staff member
Tech Support
#51
Hi. I'm getting the following error:
Code:
Copy File: cp /home/changed_domain/public_html/forums/library/Nobita/ImageOptimizer/temp/bin/pngquant /home/changed_domain/public_html/forums/library/Nobita/ImageOptimizer/pngquant
cp: cannot stat '/home/changed_domain/public_html/forums/library/Nobita/ImageOptimizer/temp/bin/pngquant': No such file or directory
** Failed to install pngquant **
Seem have some trouble while installing pngquant. Does your server installed git?
 

truonglv

Staff member
Tech Support
#53
I'm getting the following errors:

Code:
+=========================+
+  Image Optimizer Setup  +
+=========================+


Checking requirements...
    - git: installed in /usr/bin/git
    - autoconf: installed in /usr/bin/autoconf
    - automake: installed in /usr/bin/automake
Done Check.


Cloning into '/home/arborist/public_html/forum/library/Nobita/ImageOptimizer/temp/pngquant'...
remote: Counting objects: 4389, done.
remote: Compressing objects: 100% (28/28), done.
remote: Total 4389 (delta 15), reused 27 (delta 11), pack-reused 4350
Receiving objects: 100% (4389/4389), 1.69 MiB | 12.71 MiB/s, done.
Resolving deltas: 100% (2899/2899), done.

  Compiler: gcc
     Debug: no
       SSE: yes
    OpenMP: no
Submodule 'lib' (https://github.com/ImageOptim/libimagequant.git) registered for path 'lib'
Cloning into '/home/arborist/public_html/forum/library/Nobita/ImageOptimizer/temp/pngquant/lib'...
Submodule path 'lib': checked out '0c269adeb019004b3e7e3c4962bbc8901e64edd8'
imagequant: build static
    libpng: shared (1.5.13)
      zlib: shared (1.2.7)
     lcms2: no

gcc -fno-math-errno -funroll-loops -fomit-frame-pointer -Wall -std=c99 -I. -O3 -DNDEBUG -DUSE_SSE=1 -msse -mfpmath=sse -W                                     no-unknown-pragmas -I./lib -I/usr/include/libpng15     -fexcess-precision=fast   -c -o pngquant.o pngquant.c
gcc -fno-math-errno -funroll-loops -fomit-frame-pointer -Wall -std=c99 -I. -O3 -DNDEBUG -DUSE_SSE=1 -msse -mfpmath=sse -W                                     no-unknown-pragmas -I./lib -I/usr/include/libpng15     -fexcess-precision=fast   -c -o pngquant_opts.o pngquant_opts.c
gcc -fno-math-errno -funroll-loops -fomit-frame-pointer -Wall -std=c99 -I. -O3 -DNDEBUG -DUSE_SSE=1 -msse -mfpmath=sse -W                                     no-unknown-pragmas -I./lib -I/usr/include/libpng15     -fexcess-precision=fast   -c -o rwpng.o rwpng.c
( cd './lib'; ./configure '--quiet' '--prefix=/home/arborist/public_html/forum/library/Nobita/ImageOptimizer/temp'  )
make -C './lib' static
make[1]: Entering directory `/home/arborist/public_html/forum/library/Nobita/ImageOptimizer/temp/pngquant/lib'
gcc -fno-math-errno -funroll-loops -fomit-frame-pointer -Wall -std=c99 -I. -O3 -DNDEBUG -DUSE_SSE=1 -msse -mfpmath=sse -W                                     no-unknown-pragmas -fexcess-precision=fast   -c -o pam.o pam.c
gcc -fno-math-errno -funroll-loops -fomit-frame-pointer -Wall -std=c99 -I. -O3 -DNDEBUG -DUSE_SSE=1 -msse -mfpmath=sse -W                                     no-unknown-pragmas -fexcess-precision=fast   -c -o mediancut.o mediancut.c
gcc -fno-math-errno -funroll-loops -fomit-frame-pointer -Wall -std=c99 -I. -O3 -DNDEBUG -DUSE_SSE=1 -msse -mfpmath=sse -W                                     no-unknown-pragmas -fexcess-precision=fast   -c -o blur.o blur.c
gcc -fno-math-errno -funroll-loops -fomit-frame-pointer -Wall -std=c99 -I. -O3 -DNDEBUG -DUSE_SSE=1 -msse -mfpmath=sse -W                                     no-unknown-pragmas -fexcess-precision=fast   -c -o mempool.o mempool.c
gcc -fno-math-errno -funroll-loops -fomit-frame-pointer -Wall -std=c99 -I. -O3 -DNDEBUG -DUSE_SSE=1 -msse -mfpmath=sse -W                                     no-unknown-pragmas -fexcess-precision=fast   -c -o kmeans.o kmeans.c
gcc -fno-math-errno -funroll-loops -fomit-frame-pointer -Wall -std=c99 -I. -O3 -DNDEBUG -DUSE_SSE=1 -msse -mfpmath=sse -W                                     no-unknown-pragmas -fexcess-precision=fast   -c -o nearest.o nearest.c
gcc -fno-math-errno -funroll-loops -fomit-frame-pointer -Wall -std=c99 -I. -O3 -DNDEBUG -DUSE_SSE=1 -msse -mfpmath=sse -W                                     no-unknown-pragmas -fexcess-precision=fast   -c -o libimagequant.o libimagequant.c
ar rv libimagequant.a pam.o mediancut.o blur.o mempool.o kmeans.o nearest.o libimagequant.o
ar: creating libimagequant.a
a - pam.o
a - mediancut.o
a - blur.o
a - mempool.o
a - kmeans.o
a - nearest.o
a - libimagequant.o
make[1]: Leaving directory `/home/arborist/public_html/forum/library/Nobita/ImageOptimizer/temp/pngquant/lib'
gcc pngquant.o pngquant_opts.o rwpng.o -fno-math-errno -funroll-loops -fomit-frame-pointer -Wall -std=c99 -I. -O3 -DNDEBU                                     G -DUSE_SSE=1 -msse -mfpmath=sse -Wno-unknown-pragmas -I./lib -I/usr/include/libpng15     -fexcess-precision=fast ./lib/l                                     ibimagequant.a -lpng15   -lz   -lm -o pngquant
mkdir -p '/home/arborist/public_html/forum/library/Nobita/ImageOptimizer/temp/bin'
mkdir -p '/home/arborist/public_html/forum/library/Nobita/ImageOptimizer/temp/share/man/man1'
install -m 0755 -p 'pngquant' '/home/arborist/public_html/forum/library/Nobita/ImageOptimizer/temp/bin/pngquant'
install -m 0644 -p 'pngquant.1' '/home/arborist/public_html/forum/library/Nobita/ImageOptimizer/temp/share/man/man1/'


Copy File: cp /home/arborist/public_html/forum/library/Nobita/ImageOptimizer/temp/bin/pngquant /home/arborist/public_html                                     /forum/library/Nobita/ImageOptimizer/pngquant
Cloning into '/home/arborist/public_html/forum/library/Nobita/ImageOptimizer/temp/jpegoptim'...
remote: Counting objects: 562, done.
remote: Compressing objects: 100% (11/11), done.
remote: Total 562 (delta 4), reused 10 (delta 3), pack-reused 548
Receiving objects: 100% (562/562), 338.51 KiB | 4.23 MiB/s, done.
Resolving deltas: 100% (349/349), done.
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for a BSD-compatible install... /bin/install -c
checking whether make sets $(MAKE)... yes
checking for jpeg_read_header in -ljpeg... yes
checking for floor in -lm... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for unistd.h... (cached) yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking for string.h... (cached) yes
checking libgen.h usability... yes
checking libgen.h presence... yes
checking for libgen.h... yes
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... yes
checking size of long... 8
checking size of int... 4
checking for getopt_long... yes
checking for mkstemps... yes
checking for labs... yes
checking for broken jmorecfg.h (METHODDEF)... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
gcc  -g -O2  -DHAVE_CONFIG_H   -c -o jpegoptim.o jpegoptim.c
jpegoptim.c: In function ‘main’:
jpegoptim.c:831:15: error: expected ‘)’ before ‘tmpfd’
      if ((int tmpfd = mkstemps(tmpfilename,4)) < 0)
               ^
jpegoptim.c:831:48: error: expected expression before ‘<’ token
      if ((int tmpfd = mkstemps(tmpfilename,4)) < 0)
                                                ^
jpegoptim.c:833:26: error: ‘tmpfd’ undeclared (first use in this function)
      if ((outfile=fdopen(tmpfd,"wb"))==NULL)
                          ^
jpegoptim.c:833:26: note: each undeclared identifier is reported only once for each function it appears in
make: *** [jpegoptim.o] Error 1
for i in jpegoptim ; do [ -x $i ] && strip $i ; done
make: *** [strip] Error 1
gcc  -g -O2  -DHAVE_CONFIG_H   -c -o jpegoptim.o jpegoptim.c
jpegoptim.c: In function ‘main’:
jpegoptim.c:831:15: error: expected ‘)’ before ‘tmpfd’
      if ((int tmpfd = mkstemps(tmpfilename,4)) < 0)
               ^
jpegoptim.c:831:48: error: expected expression before ‘<’ token
      if ((int tmpfd = mkstemps(tmpfilename,4)) < 0)
                                                ^
jpegoptim.c:833:26: error: ‘tmpfd’ undeclared (first use in this function)
      if ((outfile=fdopen(tmpfd,"wb"))==NULL)
                          ^
jpegoptim.c:833:26: note: each undeclared identifier is reported only once for each function it appears in
make: *** [jpegoptim.o] Error 1


Copy File: cp /home/arborist/public_html/forum/library/Nobita/ImageOptimizer/temp/bin/jpegoptim /home/arborist/public_htm                                     l/forum/library/Nobita/ImageOptimizer/jpegoptim
cp: cannot stat ‘/home/arborist/public_html/forum/library/Nobita/ImageOptimizer/temp/bin/jpegoptim’: No such file or dire                                     ctory
** Failed to install jpegoptim **
Does you still get this error?
 
#54
sorry but an installation guide?
Anyway, I installed the addon started io_setup.sh giving the correct privileges.
Does not work.
this is the error:
public / library / Nobita / ImageOptimizer / libs / bin / jpegoptim) not exists. - library / Nobita / ImageOptimizer / ImageHandler / Abstract.php
it does not find the libraries and the directory: LIBS / BIN does not exist,
 

truonglv

Staff member
Tech Support
#55
sorry but an installation guide?
Anyway, I installed the addon started io_setup.sh giving the correct privileges.
Does not work.
this is the error:
public / library / Nobita / ImageOptimizer / libs / bin / jpegoptim) not exists. - library / Nobita / ImageOptimizer / ImageHandler / Abstract.php
it does not find the libraries and the directory: LIBS / BIN does not exist,
If you using VPS run the following command.
Code:
cd /xenforo_path/library/Nobita/ImageOptimizer
Code:
./io_setup.sh
 
#56
grabilla.g76616.png certainly a dedicated, but I have already launched that script.
I did not understand if I should direct that jpegoptim is here: / usr / bin / jpegoptim
or here: root / library / Nobita / ImageOptimizer / jpegoptim
 

truonglv

Staff member
Tech Support
#57
certainly a dedicated, but I have already launched that script.
I did not understand if I should direct that jpegoptim is here: / usr / bin / jpegoptim
or here: root / library / Nobita / ImageOptimizer / jpegoptim
Whatever on your system. But if you run the file without errors, all binaries file will be listed in: library/Nobita/ImageOptimizer
 
Top